3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('Y-m-d H:i:s.u'); echo (new \DateTime())->__toString();
based on pBJQn
Output for 7.3.0rc3
2017-07-11 15:55:24.004282 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.3.0beta1
2017-07-11 15:55:24.001903 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.3.0alpha1
2017-07-11 15:55:24.002984 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.2.6
2017-07-11 15:55:24.003548 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.2.0
2017-07-11 15:55:24.004805 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.1.20
2017-07-11 15:55:24.003280 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.1.10
2017-07-11 15:55:24.003442 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.1.7
2017-07-11 15:55:24.007519 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.1.6
2017-07-11 15:55:24.043442 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.1.5
2017-07-11 15:55:24.032473 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.1.4
2017-07-11 15:55:24.031702 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.3
2017-07-11 15:55:24.000000 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.1.2
2017-07-11 15:55:24.023751 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.1.1
2017-07-11 15:55:24.006912 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for 7.1.0
2017-07-11 15:55:24.005195 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main} thrown in /in/79Ibh on line 3
Process exited with code 255.
Output for hhvm-3.15.4
2017-07-11 15:55:24.000000 Fatal error: Uncaught Error: Call to undefined method DateTime::__toString() in /in/79Ibh:3 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
2017-07-11 15:55:24.000000 Fatal error: Call to undefined method DateTime::__toString() in /in/79Ibh on line 3
Process exited with code 255.