3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $userTimezone = new \DateTimeZone('Europe/Helsinki'); $time_start = new DateTime('2014-10-02', $userTimezone); echo $time_start->format('r') . "\n"; $time_start->modify('first day of this month'); echo $time_start->format('r') . "\n"; $time_start->setTimezone( new \DateTimeZone( 'UTC' ) ); $time_start->getTimestamp(); echo $time_start->format('r') . "\n";
based on vlfau

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.0rc40.0360.00798.97
7.3.0rc30.0350.00416.63
7.3.0beta10.0070.00412.82
7.3.0alpha10.0060.00312.93
7.2.60.0140.00716.90
7.2.00.0000.01419.66
7.1.200.0090.00615.84
7.1.100.0070.00418.36
7.1.70.0000.00717.37
7.1.60.0000.02319.32
7.1.50.0030.01917.14
7.1.00.0000.08022.44
7.0.200.0000.00716.88
7.0.140.0000.07322.15
7.0.60.0130.04019.92
7.0.50.0130.07317.85
7.0.40.0070.05720.25
7.0.30.0600.06320.04
7.0.20.0200.06020.16
7.0.10.0100.07720.33
7.0.00.0070.07320.30
5.6.280.0070.07021.09
5.6.210.0100.08020.61
5.6.200.0030.08018.19
5.6.190.0000.05020.77
5.6.180.0500.07320.39
5.6.170.0470.04720.52
5.6.160.0100.08320.49
5.6.150.0000.08318.16
5.6.140.0030.08318.11
5.6.130.0030.05718.21
5.6.120.0030.05720.87
5.6.110.0030.09021.09
5.6.100.0030.06320.97
5.6.90.0100.08721.00
5.6.80.0070.04720.38
5.5.350.0100.03720.33
5.5.340.0130.05318.02
5.5.330.0070.08320.15
5.5.320.0330.07720.27
5.5.310.0300.08020.20
5.5.300.0100.03717.93
5.5.290.0030.08718.00
5.5.280.0030.04020.77
5.5.270.0200.07320.88
5.5.260.0130.07320.86
5.5.250.0030.08720.47
5.5.240.0100.06720.15
5.4.450.0370.05719.25
5.4.440.0770.05319.49
5.4.430.1000.05319.60
5.4.420.1100.05319.23
5.4.410.1130.05319.11
5.4.400.0930.05319.24
5.4.390.1130.05019.32
5.4.380.0400.05318.53
5.4.370.0270.05318.61
5.4.360.0200.05718.61
5.4.350.0270.05718.46
5.4.340.0470.04318.50
5.4.320.0050.03712.46
5.4.310.0060.03912.45
5.4.300.0040.03812.46
5.4.290.0080.04612.45
5.4.280.0040.03912.35
5.4.270.0060.03512.35
5.4.260.0080.03712.35
5.4.250.0070.03612.35
5.4.240.0030.03912.35
5.4.230.0050.03812.34
5.4.220.0080.03412.34
5.4.210.0050.03612.34
5.4.200.0100.03312.34
5.4.190.0070.03512.34
5.4.180.0050.03612.34
5.4.170.0050.03612.35
5.4.160.0060.03512.35
5.4.150.0050.03612.34
5.4.140.0050.03812.03
5.4.130.0080.03312.01
5.4.120.0070.03411.97
5.4.110.0080.03311.96
5.4.100.0060.03411.96
5.4.90.0080.03411.97
5.4.80.0070.03711.97
5.4.70.0060.04111.96
5.4.60.0070.03311.96
5.4.50.0060.03411.96
5.4.40.0070.03911.95
5.4.30.0090.03611.95
5.4.20.0100.03011.95
5.4.10.0070.03411.95
5.4.00.0050.03711.44
5.3.290.0070.03912.80
5.3.280.0060.03712.71
5.3.270.0090.03912.72
5.3.260.0060.03912.72
5.3.250.0060.03712.72
5.3.240.0070.03612.71
5.3.230.0060.03812.70
5.3.220.0040.03812.68
5.3.210.0020.04212.68
5.3.200.0060.03612.68
5.3.190.0060.03712.68
5.3.180.0080.03512.67
5.3.170.0060.04112.67
5.3.160.0070.04112.68
5.3.150.0050.04112.68
5.3.140.0080.03912.66
5.3.130.0060.03812.65
5.3.120.0060.03712.66
5.3.110.0050.04412.66
5.3.100.0110.04312.12
5.3.90.0080.03612.08
5.3.80.0060.03812.08
5.3.70.0070.03512.07
5.3.60.0080.03412.06
5.3.50.0040.04512.00
5.3.40.0080.03712.00
5.3.30.0040.04011.95
5.3.20.0030.04211.74
5.3.10.0040.03611.70
5.3.00.0040.03811.69
5.2.170.0050.0299.18
5.2.160.0090.0279.18
5.2.150.0050.0299.19
5.2.140.0050.0329.18
5.2.130.0060.0279.14
5.2.120.0070.0299.14
5.2.110.0080.0279.15
5.2.100.0060.0339.14
5.2.90.0090.0359.14
5.2.80.0060.0339.14
5.2.70.0090.0259.14
5.2.60.0060.0289.10
5.2.50.0050.0309.07
5.2.40.0030.0319.04
5.2.30.0040.0299.01
5.2.20.0050.0289.01
5.2.10.0050.0278.93
5.2.00.0050.0288.79
5.1.60.0040.0288.07
5.1.50.0080.0218.07
5.1.40.0020.0278.05
5.1.30.0040.0368.39
5.1.20.0040.0278.42
5.1.10.0060.0268.15
5.1.00.0030.0288.14
5.0.50.0030.0216.62
5.0.40.0050.0216.48
5.0.30.0040.0366.30
5.0.20.0050.0266.26
5.0.10.0060.0266.24
5.0.00.0020.0326.24
4.4.90.0010.0174.78
4.4.80.0030.0144.76
4.4.70.0040.0134.76
4.4.60.0000.0184.75
4.4.50.0020.0214.77
4.4.40.0030.0254.71
4.4.30.0020.0164.76
4.4.20.0020.0164.85
4.4.10.0010.0174.85
4.4.00.0030.0244.76
4.3.110.0040.0164.67
4.3.100.0020.0154.67
4.3.90.0010.0164.64
4.3.80.0020.0254.58
4.3.70.0030.0144.63
4.3.60.0020.0164.63
4.3.50.0040.0164.62
4.3.40.0040.0244.54
4.3.30.0020.0153.29
4.3.20.0010.0173.26
4.3.10.0010.0203.22
4.3.00.0030.0236.98