3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "// File : /okcontent/js/Oryx/Cookies.js"; $str2 = "// File : /okcontent/js/twitter.js"; $str3 = "// File : /okcontent/js/Oryx/pups/Cookies.js"; $m = array(); $m2 = array(); $m3 = array(); $regex = preg_match("#File : /okcontent/js/(?:.*/)?(.*?)\.js#si, $str, $m); $regex = preg_match("#File : /okcontent/js/(?:.*/)?(.*?)\.js#si, $str2, $m2); $regex = preg_match("#File : /okcontent/js/(?:.*/)?(.*?)\.js#si", $str3, $m3); var_dump($m); var_dump($m2); var_dump($m3);
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '$regex' (T_VARIABLE) in /in/rqkMp on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/rqkMp on line 12
Process exited with code 255.