3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new Datetime)->format('%s');
Output for 5.6.28, 7.0.20 - 7.2.0
%56
Output for 5.4.45, 7.0.6
%59
Output for 5.4.36 - 5.4.37, 5.6.8, 7.0.5
%05
Output for 5.4.12 - 5.4.15, 7.0.4
%13
Output for 5.5.28, 7.0.3
%38
Output for 5.6.21, 7.0.2
%43
Output for 7.0.1
%52
Output for 7.0.0
%27
Output for 5.6.20
%46
Output for 5.4.44, 5.6.12, 5.6.19
%00
Output for 5.6.18
%30
Output for 5.4.40 - 5.4.41, 5.6.17
%03
Output for 5.6.16
%36
Output for 5.5.33, 5.6.15
%34
Output for 5.6.14
%22
Output for 5.4.42 - 5.4.43, 5.5.31, 5.6.13
%02
Output for 5.6.11
%29
Output for 5.6.10
%51
Output for 5.5.25, 5.6.9
%49
Output for 5.5.32, 5.5.35
%25
Output for 5.5.34
%20
Output for 5.5.30
%47
Output for 5.5.29
%41
Output for 5.5.27
%21
Output for 5.5.26
%31
Output for 5.5.24
%23
Output for 5.4.38 - 5.4.39
%04
Output for 5.4.34 - 5.4.35
%06
Output for 5.4.31 - 5.4.32
%07
Output for 5.4.27 - 5.4.30
%08
Output for 5.4.25 - 5.4.26
%09
Output for 5.4.21 - 5.4.24
%10
Output for 5.4.19 - 5.4.20
%11
Output for 5.4.16 - 5.4.18
%12
Output for 5.4.9 - 5.4.11
%14
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/51GIW on line 3
Process exited with code 255.