3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xd = new DateTime(); $x = gmp_add(10, 20); var_dump($$xd + $x);
based on jrQh8
Output for 7.1.0 - 7.3.1
Recoverable fatal error: Object of class DateTime could not be converted to string in /in/7gO81 on line 6
Process exited with code 255.
Output for 5.4.11 - 5.4.45, 5.5.17, 5.6.0 - 5.6.38, hhvm-3.10.1, 7.0.0 - 7.0.31
Catchable fatal error: Object of class DateTime could not be converted to string in /in/7gO81 on line 6
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Object of class DateTime could not be converted to string in /in/7gO81:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.11.1 - 3.21.3
Fatal error: Uncaught Error: Object of class DateTime could not be converted to string in /in/7gO81:6 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.3.21 - 5.3.29, 5.5.0 - 5.5.16, 5.5.18 - 5.5.38
Fatal error: Call to undefined function gmp_add() in /in/7gO81 on line 4
Process exited with code 255.