3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class chi extends par implements int { } class par { } interface int { } $x = new chi; if ($x instanceof chi) { echo "chi\n"; } if ($x instanceof par) { echo "par\n"; } if ($x instanceof int) { echo "int\n"; }
Output for 7.1.20
Fatal error: Cannot use 'int' as class name as it is reserved in /in/KYL5V on line 13
Process exited with code 255.