3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $parameterDto = new stdClass(); $parameterDto->date = new DateTime('2016-02-01'); $parameterDto->id = 1234; echo md5(serialize($parameterDto));
based on 8BcRd
Output for 5.4.30 - 5.4.45, 5.5.14 - 7.3.0rc4
5340478712b4119292c8a877adf553b2
Output for 5.3.0 - 5.4.29, 5.5.0 - 5.5.13
b7fd4887be1a22ec5ca3b14c948187cf
Output for 5.2.0 - 5.2.17
9ddba30282c9353585dd2775fe2da7c3
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/k3tnE on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/k3tnE on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/k3tnE on line 3