3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $option = "2"; echo int("2 blala"); switch($option) { case "2 this is obviously not the right one": echo "First option chosen"; break; case 2: echo "Second option chosen"; break; }
based on LqjYO
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function int() in /in/aHkj9:4 Stack trace: #0 {main} thrown in /in/aHkj9 on line 4
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function int() in /in/aHkj9 on line 4
Process exited with code 255.