3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ord(new stdClass);
Output for 8.0.0
Fatal error: Uncaught TypeError: ord(): Argument #1 ($character) must be of type string, stdClass given in /in/uGPeB:3 Stack trace: #0 /in/uGPeB(3): ord(Object(stdClass)) #1 {main} thrown in /in/uGPeB on line 3
Process exited with code 255.
Output for 5.5.0 - 5.5.36, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.24, 7.4.0 - 7.4.13
Warning: ord() expects parameter 1 to be string, object given in /in/uGPeB on line 3