3v4l.org

run code in 300+ PHP versions simultaneously
<?php $option = 2; switch($option) { case "2 this is obviously not the right one"; echo "First option chosen"; break; case 2: echo "Second option chosen"; break; }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
148.34 ms | 2844 KiB | 10 Q