3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input_lines = "fasdf sadf asd $fdsf; asd $23; fsdafsd; $fdssfs"; preg_match_all("/asd (\$[a-z0-9]+);/", $input_lines, $output_array); print_r($output_array);
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: fdsf in /in/5HAcU on line 3 Notice: Undefined variable: fdssfs in /in/5HAcU on line 6 Array ( [0] => Array ( ) [1] => Array ( ) )
Output for 5.3.18 - 5.6.28
Notice: Undefined variable: fdsf in /in/5HAcU on line 6 Notice: Undefined variable: fdssfs in /in/5HAcU on line 6 Array ( [0] => Array ( ) [1] => Array ( ) )