3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdclass(); $b = new class{}; $c = new ArrayObject(); $d = (object)[]; echo gettype($a); echo gettype($a); echo gettype($a); === $b=== $c === $d?"tôi là ai": "em là ai";
Output for 7.1.0 - 7.1.16, 7.2.0 - 7.2.4
Parse error: syntax error, unexpected '===' (T_IS_IDENTICAL), expecting end of file in /in/VqfOI on line 11
Process exited with code 255.

preferences:
174 ms | 1387 KiB | 29 Q