3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $derp = ",test,derp,hurp,"; $arr = explode($derp); print_R($arr); $arr = array_map('trim', $arr); print_R($arr);
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: explode() expects at least 2 parameters, 1 given in /in/4OV61 on line 3 Warning: array_map(): Argument #2 should be an array in /in/4OV61 on line 5
Output for hhvm-3.10.0 - 3.12.0
Warning: explode() expects at least 2 parameters, 1 given in /in/4OV61 on line 3 Warning: array_map(): Argument #2 should be an array or collection
Output for 4.3.2 - 5.2.17
Warning: Wrong parameter count for explode() in /in/4OV61 on line 3 Warning: array_map(): Argument #2 should be an array in /in/4OV61 on line 5
Output for 4.3.0 - 4.3.1
Warning: Wrong parameter count for explode() in /in/4OV61 on line 3 Warning: array_map() [http://www.php.net/function.array-map]: Argument #2 should be an array in /in/4OV61 on line 5