3v4l.org

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