3v4l.org

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