PHP Sandbox

Test your PHP code with this code tester

You can test your PHP code here on many php versions.



Your script:



Script loaded from database. Saved on 08/22/2016 09:58am by shooktea

Clear code



<?php $array = array( 'foo' => true, 'bar' => false, ); echo in_array(null, $array); echo in_array(false, $array); echo in_array(765, $array); echo in_array(763, $array); echo in_array('egg', $array); echo in_array('hhh', $array); echo in_array(array(), $array);

Run on PHP version: 7.4.7 7.4.0 7.3.19 7.3.12 7.3.5 7.2.31 7.2.25 7.2.18 7.2.4 7.1.33 7.1.29 7.1.0 7.0.14 7.0.5 7.0.4 7.0.3 7.0.2 7.0.1 5.6.29 5.6.20 5.6.19 5.6.18 5.6.17 5.6.2 5.5.34 5.5.33 5.5.32 5.5.31 5.5.18 5.5.5 5.5.0.a6 5.5.0.a.5 5.5.0.a.2 5.4.34 5.4.21 5.4.13 5.4.12 5.4.11 5.4.10 5.4.9 5.4.8 5.4.7 5.4.6 5.4.5 5.4.4 5.4.3 5.4.2 5.4.1 5.4.0 5.3.29 5.3.27 5.3.23 5.3.22 5.3.21 5.3.20 5.3.19 5.3.18 5.3.17 5.3.16 5.3.15 5.3.14 5.3.13 5.3.12 5.3.11 5.3.10 5.3.2 5.3.1 5.3.0 5.2.17 5.2.16 5.1.6 5.1.5 5.0.5 5.0.4 4.4.9 Output: Textbox Raw





Notes

This script works with a whitelist of functions. All functions that do not require disk, system or network access are whitelisted, others blacklisted. Max execution time is set to 3 seconds.If you find a disabled function that should be whitelisted or if you run into other problems, please leave a comment