3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = strtotime("now"); $b = (new DateTime())->getTimestamp(); echo $a; echo $b; echo $a - $b;
Output for 5.6.28, 7.0.14 - 7.1.0
140439141214043914120
Output for 7.0.6
146228615514622861550
Output for 7.0.5
145965281014596528100
Output for 7.0.4
145762456114576245610
Output for 7.0.3
145831839014583183900
Output for 7.0.2
145868598814586859880
Output for 7.0.1
145878749814587874980
Output for 7.0.0
145905011614590501160
Output for hhvm-3.12.0
145783192414578319240
Output for hhvm-3.10.0
145937018114593701810
Output for 5.6.21
146218237414621823740
Output for 5.6.20
146025389014602538900
Output for 5.6.19
145739340514573934050
Output for 5.6.18
145803015114580301510
Output for 5.6.17
145841850714584185070
Output for 5.6.16
145913937914591393790
Output for 5.6.15
145922884514592288450
Output for 5.6.14
145958148114595814810
Output for 5.6.13
146072006514607200650
Output for 5.6.12
146111757214611175720
Output for 5.6.11
146140028214614002820
Output for 5.6.10
146157998914615799890
Output for 5.6.9
146177125214617712520
Output for 5.6.8
146197549514619754950
Output for 5.5.35
146393039414639303940
Output for 5.5.34
146034832814603483280
Output for 5.5.33
145749064214574906420
Output for 5.5.32
145821629014582162900
Output for 5.5.31
145851516014585151600
Output for 5.5.30
145949488014594948800
Output for 5.5.29
146085827614608582760
Output for 5.5.28
146121547014612154700
Output for 5.5.27
146130880314613088030
Output for 5.5.26
146167602514616760250
Output for 5.5.25
146187332114618733210
Output for 5.5.24
146405766614640576660
Output for 5.4.45
144282878614428287860
Output for 5.4.44
144282878214428287820
Output for 5.4.43
144276733614427673360
Output for 5.4.42
144276730614427673060
Output for 5.4.41
144276726114427672610
Output for 5.4.40
144276722414427672240
Output for 5.4.39
144276719614427671960
Output for 5.4.38
142547484914254748490
Output for 5.4.35 - 5.4.37
142547484214254748420
Output for 5.4.34
142547484114254748410
Output for 5.4.32
141059929414105992940
Output for 5.4.31
141059929314105992930
Output for 5.4.28 - 5.4.30
140439141914043914190
Output for 5.4.20 - 5.4.27
140439142014043914200
Output for 5.4.14 - 5.4.19
140439142114043914210
Output for 5.4.6 - 5.4.13
140439142214043914220
Output for 5.4.0 - 5.4.5
140439142314043914230
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/G6pfT on line 4
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 in /in/G6pfT on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/G6pfT on line 4
Process exited with code 255.