3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'evacuation'; $b = preg_split("/\/(\w+)", $a); echo array_pop($b);
based on cRMVv
Output for 5.3.0 - 7.2.0
Warning: preg_split(): No ending delimiter '/' found in /in/U5Gf9 on line 3 Warning: array_pop() expects parameter 1 to be array, boolean given in /in/U5Gf9 on line 4
Output for 4.3.11 - 5.2.17
Warning: preg_split(): No ending delimiter '/' found in /in/U5Gf9 on line 3 Warning: array_pop(): The argument should be an array in /in/U5Gf9 on line 4
Output for 4.3.2 - 4.3.10
Warning: No ending delimiter '/' found in /in/U5Gf9 on line 3 Warning: array_pop(): The argument should be an array in /in/U5Gf9 on line 4
Output for 4.3.0 - 4.3.1
Warning: No ending delimiter '/' found in /in/U5Gf9 on line 3 Warning: array_pop() [http://www.php.net/function.array-pop]: The argument should be an array in /in/U5Gf9 on line 4