3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = '0'; function isNonEmptyStr($var) { return is_string($var) && strlen($var) > 0; } var_dump(isNonEmptyString($var));
based on mkZ3F
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function isNonEmptyString() in /in/Z6DX4:9 Stack trace: #0 {main} thrown in /in/Z6DX4 on line 9
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function isNonEmptyString() in /in/Z6DX4 on line 9
Process exited with code 255.