3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime)->getTimestamp();
Output for 5.6.28, 7.0.14 - 7.1.0
1414201682
Output for 7.0.6
1462264453
Output for 7.0.5
1459631963
Output for 7.0.4
1457600217
Output for 7.0.3
1458293849
Output for 7.0.2
1458660947
Output for 7.0.1
1458763811
Output for 7.0.0
1459028536
Output for 5.6.21
1462161198
Output for 5.6.20
1460233159
Output for 5.6.19
1457370312
Output for 5.6.18
1458004289
Output for 5.6.17
1458395441
Output for 5.6.16
1459118380
Output for 5.6.15
1459208088
Output for 5.6.14
1459562001
Output for 5.6.13
1460699291
Output for 5.6.12
1461094627
Output for 5.6.11
1461379120
Output for 5.6.10
1461558218
Output for 5.6.9
1461748975
Output for 5.6.8
1461951088
Output for 5.5.35
1463902881
Output for 5.5.34
1460328066
Output for 5.5.33
1457467252
Output for 5.5.32
1458182691
Output for 5.5.31
1458491738
Output for 5.5.30
1459474290
Output for 5.5.29
1460836534
Output for 5.5.28
1461192821
Output for 5.5.27
1461287464
Output for 5.5.26
1461653415
Output for 5.5.25
1461849313
Output for 5.5.24
1464035364
Output for 5.4.45
1441569840
Output for 5.4.44
1441569838
Output for 5.4.43
1441569834
Output for 5.4.42
1436453235
Output for 5.4.41
1436453233
Output for 5.4.39 - 5.4.40
1436453229
Output for 5.4.38
1436453227
Output for 5.4.36 - 5.4.37
1436453225
Output for 5.4.35
1436453224
Output for 5.4.31 - 5.4.34
1414201686
Output for 5.4.9 - 5.4.30
1414201687
Output for 5.4.0 - 5.4.8
1414201688
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/794jH 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/794jH on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/794jH on line 2
Process exited with code 255.