3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = []; var_dump( is_a( $a, new DateTIme() ));
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught TypeError: is_a(): Argument #2 ($class) must be of type string, DateTime given in /in/rujes:5 Stack trace: #0 /in/rujes(5): is_a(Array, Object(DateTime)) #1 {main} thrown in /in/rujes on line 5
Process exited with code 255.

preferences:
105.63 ms | 402 KiB | 89 Q