3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('display_errors', true); ini_set('error_reporting', E_ALL); $a = 4; switch ($a) { case 1: echo __LINE__; break; default: case 2: echo __LINE__; break; default: case 3: echo __LINE__; break; } echo "\ndone\n";
Output for 7.0.0 - 7.0.2
Fatal error: Switch statements may only contain one default clause in /in/TYnqD on line 13
Process exited with code 255.
Output for 5.3.21 - 5.6.28
14 done