3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $attributes['action'] = 'order.php?param1=aaa&param2=bbb'; switch($attributes['action']) { case "list": echo 'List!'; break; case "listorder": echo 'Listorder!'; break; case (preg_match('~order\.php\?.*~', ) ? true : false): echo 'Regex works!'; break; default: echo 'Regex doesn\'t work((('; break; }
Output for 5.3.0 - 5.4.11
Parse error: syntax error, unexpected ')' in /in/1Nk8N on line 13
Process exited with code 255.