3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime())->format('u') . PHP_EOL;
based on sbpia
Output for 7.3.0rc6
000151
Output for 7.3.0rc4
003258
Output for 7.3.0rc3
002274
Output for 7.3.0beta1
003101
Output for 7.3.0alpha1
002928
Output for 7.2.6
001874
Output for 7.2.0
003121
Output for 7.1.20
003317
Output for 7.1.10
004851
Output for 7.1.7
004056
Output for 7.1.6
012855
Output for 7.1.5
011200
Output for 7.1.0
003968
Output for 5.4.0 - 7.0.20
000000
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/FqRKX on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/FqRKX on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/FqRKX on line 2
Process exited with code 255.