3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = date_timestamp_get(date_create()); print substr($str, -1, 6); print "\n" . $str;
based on npSBZ
Output for 5.6.28, 7.0.20 - 7.3.0alpha1
5 1432245305
Output for 7.0.6
1 1462254981
Output for 7.0.5
2 1459623242
Output for 7.0.4
7 1457590147
Output for 7.0.3
3 1458283233
Output for 7.0.2
1 1458649561
Output for 7.0.1
1 1458754111
Output for 7.0.0
4 1459019364
Output for 5.6.21
2 1462151722
Output for 5.6.20
6 1460223786
Output for 5.6.19
6 1457360056
Output for 5.6.18
4 1457992714
Output for 5.6.17
2 1458385152
Output for 5.6.16
6 1459108466
Output for 5.6.15
4 1459198074
Output for 5.6.14
0 1459552950
Output for 5.6.13
9 1460690269
Output for 5.6.12
0 1461084820
Output for 5.6.11
9 1461369149
Output for 5.6.10
7 1461548647
Output for 5.6.9
7 1461739277
Output for 5.6.8
6 1461940786
Output for 5.6.7
5 1464165315
Output for 5.5.35
1 1463893011
Output for 5.5.34
7 1460319017
Output for 5.5.33
2 1457456672
Output for 5.5.32
7 1458172167
Output for 5.5.31
6 1458481596
Output for 5.5.30
3 1459464963
Output for 5.5.29
2 1460827372
Output for 5.5.28
1 1461182351
Output for 5.5.27
8 1461277778
Output for 5.5.26
7 1461643797
Output for 5.5.25
7 1461838367
Output for 5.5.24
6 1464023306
Output for 5.4.45
7 1442874187
Output for 5.4.44
2 1442874182
Output for 5.4.43
7 1442874177
Output for 5.4.42
6 1435489496
Output for 5.4.37 - 5.4.41
5 1432245315
Output for 5.4.24 - 5.4.36
6 1432245316
Output for 5.4.13 - 5.4.23
7 1432245317
Output for 5.4.1 - 5.4.12
8 1432245318
Output for 5.3.21 - 5.4.0
9 1432245319
Output for 5.3.10 - 5.3.20
0 1432245320
Output for 5.3.0 - 5.3.9
1 1432245321
Output for 5.0.0 - 5.2.17
Fatal error: Call to undefined function date_timestamp_get() in /in/KpmK0 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_timestamp_get() in /in/KpmK0 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_timestamp_get() in /in/KpmK0 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_timestamp_get() in /in/KpmK0 on line 3