3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = trim("0x030"); if( str_split($input) == array(0,0,0,0) || strcmp($input, "0000") == 0 || strcmp($input, "000") == 0 || strcmp($input, "00") == 0 || strcmp($input, "0") == 0 || $input === 0 || preg_match("/^[\d]{1,}$/D", $input) )print("FAIL"); if($input == "0000") print("SUCCESS"); print(iconv($input)); ?>
based on ph4t7
Output for 5.3.17 - 5.5.34, 5.6.7 - 5.6.20, 5.6.28 - 7.0.5, 7.0.20 - 7.2.0
Warning: iconv() expects exactly 3 parameters, 1 given in /in/KKVUo on line 15
Output for 7.0.6
Fatal error: Uncaught Error: Call to undefined function iconv() in /in/KKVUo:15 Stack trace: #0 {main} thrown in /in/KKVUo on line 15
Process exited with code 255.
Output for 5.5.35, 5.6.21
Fatal error: Call to undefined function iconv() in /in/KKVUo on line 15
Process exited with code 255.