3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dp = new DateInterval('P2Y3W3D'); var_dump(isset($dp->d, $dp['d'])); echo $dp->d;

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.2.60.0030.00916.96
7.2.10.0210.01017.94
7.2.00.0150.00818.28
7.1.200.0060.00615.84
7.1.130.0170.01716.51
7.1.120.0310.00817.25
7.1.110.0120.01116.70
7.1.100.0110.01116.68
7.1.90.0170.00616.73
7.1.80.0160.00716.72
7.1.70.0170.00815.66
7.1.60.0280.00833.85
7.1.50.0270.01533.47
7.1.40.0240.01333.19
7.1.30.0280.01133.15
7.1.20.0260.01433.15
7.1.10.0140.00915.38
7.1.00.0130.01115.42
7.0.270.0230.00816.33
7.0.260.0170.00516.98
7.0.250.0130.00916.38
7.0.240.0190.00616.39
7.0.230.0140.01116.40
7.0.220.0130.00916.30
7.0.210.0180.00815.53
7.0.200.0150.00715.49
7.0.190.0150.00515.28
7.0.180.0100.01014.82
7.0.170.0140.00914.95
7.0.160.0140.00614.88
7.0.150.0180.00914.95
7.0.140.0130.00714.95
7.0.130.0130.00915.28
7.0.120.0100.01315.28
7.0.110.0100.01115.13
7.0.100.0130.00915.03
7.0.90.0800.00815.00
7.0.80.0140.00715.03
7.0.70.0150.00714.94
7.0.60.0120.01214.89
7.0.50.0120.00915.17
7.0.40.0130.00715.18
7.0.30.0120.00715.19
7.0.20.0120.00815.22
7.0.10.0150.00515.11
7.0.00.0110.01115.14
hhvm-3.22.00.0710.20490.98
hhvm-3.21.30.0840.18090.24
hhvm-3.21.00.0780.17990.33
hhvm-3.20.20.0730.16890.52
hhvm-3.19.20.0800.18789.97
hhvm-3.18.50.0690.19188.59
hhvm-3.18.40.0780.20088.44
hhvm-3.17.30.0580.16787.94
hhvm-3.15.40.0630.15785.35
hhvm-3.13.20.0610.17896.86
hhvm-3.12.140.0830.19295.62
hhvm-3.11.10.0680.16887.85
hhvm-3.10.10.0800.16484.67
5.6.300.0060.06320.75
5.6.290.0100.06020.75
5.6.280.0070.06420.85
5.6.270.0130.05820.83
5.6.260.0130.05920.79
5.6.250.0110.06020.78
5.6.240.0160.05920.81
5.6.230.0140.06720.77
5.6.220.0110.05820.79
5.6.210.0120.05920.86
5.6.200.0170.05720.86
5.6.190.0120.05920.85
5.6.180.0120.06220.80
5.6.170.0140.05820.83
5.6.160.0120.05720.85
5.6.150.0100.06520.72
5.6.140.0070.06320.75
5.6.130.0130.05520.76
5.6.120.0110.05820.90
5.6.110.0140.05720.77
5.6.100.0160.05620.87
5.6.90.0170.04920.80
5.6.80.0060.05920.19
5.6.70.0100.05420.20
5.6.60.0090.05620.09
5.6.50.0090.05520.23
5.6.40.0100.05520.27
5.6.30.0080.05820.25
5.6.20.0130.05220.19
5.6.10.0110.05620.13
5.6.00.0170.05120.18
5.5.380.0160.04817.48
5.5.370.0120.05517.47
5.5.360.0070.06017.40
5.5.350.0140.04917.43
5.5.340.0160.04817.89
5.5.330.0160.04817.83
5.5.320.0140.06617.94
5.5.310.0090.05917.93
5.5.300.0090.05717.93
5.5.290.0140.06617.96
5.5.280.0100.05917.94
5.5.270.0100.05917.89
5.5.260.0130.05817.91
5.5.250.0090.05817.84
5.5.240.0100.05217.29
5.5.230.0080.05517.24
5.5.220.0090.05217.23
5.5.210.0080.05417.18
5.5.200.0110.05017.21
5.5.190.0050.06217.17
5.5.180.0070.05717.27
5.5.160.0090.05217.26
5.5.150.0060.05417.28
5.5.140.0060.05517.31
5.5.130.0150.04517.33
5.5.120.0070.05517.30
5.5.110.0120.05217.27
5.5.100.0040.05617.27
5.5.90.0130.04617.14
5.5.80.0110.04917.11
5.5.70.0080.05417.20
5.5.60.0090.05217.18
5.5.50.0080.06117.21
5.5.40.0120.04817.14
5.5.30.0110.05417.16
5.5.20.0080.05517.14
5.5.10.0090.05417.09
5.5.00.0110.05617.14
5.4.450.0130.05819.33
5.4.440.0080.05919.29
5.4.430.0140.05619.36
5.4.420.0110.05519.38
5.4.410.0110.05119.05
5.4.400.0080.05318.88
5.4.390.0080.05418.91
5.4.380.0070.05419.06
5.4.370.0110.05018.96
5.4.360.0100.05418.96
5.4.350.0120.04919.05
5.4.340.0120.05119.07
5.4.320.0160.04718.91
5.4.310.0110.04918.89
5.4.300.0160.04518.95
5.4.290.0110.05019.06
5.4.280.0100.05619.00
5.4.270.0120.05018.83
5.4.260.0080.05318.85
5.4.250.0070.05419.00
5.4.240.0070.05518.97
5.4.230.0090.05619.02
5.4.220.0080.05618.93
5.4.210.0120.04918.99
5.4.200.0110.05018.92
5.4.190.0110.05218.98
5.4.180.0100.05118.97
5.4.170.0090.05318.98
5.4.160.0100.05018.99
5.4.150.0080.05518.97
5.4.140.0120.04916.45
5.4.130.0070.05016.48
5.4.120.0130.04716.45
5.4.110.0080.05016.59
5.4.100.0110.04616.52
5.4.90.0090.05416.50
5.4.80.0140.04316.54
5.4.70.0050.05116.41
5.4.60.0140.05116.32
5.4.50.0090.04816.45
5.4.40.0130.04416.53
5.4.30.0100.04716.54
5.4.20.0110.04516.45
5.4.10.0120.05416.43
5.4.00.0040.05315.99
5.3.290.0080.05214.65
5.3.280.0120.04714.73
5.3.270.0080.06114.62
5.3.260.0090.05214.55
5.3.250.0100.04914.73
5.3.240.0100.04914.62
5.3.230.0080.05014.64
5.3.220.0130.04914.67
5.3.210.0080.05414.58
5.3.200.0100.05114.62
5.3.190.0110.05314.64
5.3.180.0060.05214.68
5.3.170.0090.05714.65
5.3.160.0090.05214.59
5.3.150.0100.04914.73
5.3.140.0110.04914.62
5.3.130.0120.05114.69
5.3.120.0100.05214.61
5.3.110.0110.05014.58
5.3.100.0120.05614.11
5.3.90.0050.06414.14
5.3.80.0070.05214.05
5.3.70.0110.04814.11
5.3.60.0090.05013.98
5.3.50.0030.06013.96
5.3.40.0090.05114.02
5.3.30.0120.04813.99
5.3.20.0050.05413.80
5.3.10.0080.04713.75
5.3.00.0110.05413.75
5.2.170.0030.04511.10
5.2.160.0090.04211.27
5.2.150.0140.04111.29
5.2.140.0080.04311.23
5.2.130.0050.04111.22
5.2.120.0060.04311.17
5.2.110.0090.03711.20
5.2.100.0060.04511.14
5.2.90.0090.03811.10
5.2.80.0080.04411.23
5.2.70.0110.04211.29
5.2.60.0030.04411.15
5.2.50.0080.04011.15
5.2.40.0050.04011.09
5.2.30.0040.04311.01
5.2.20.0100.03611.08
5.2.10.0050.04010.93
5.2.00.0090.03810.86
5.1.60.0080.03210.12
5.1.50.0110.03310.09
5.1.40.0120.03310.06
5.1.30.0090.03310.38
5.1.20.0080.03510.52
5.1.10.0080.03510.24
5.1.00.0040.03910.04
5.0.50.0040.0299.03
5.0.40.0040.0298.97
5.0.30.0060.0428.96
5.0.20.0040.0268.98
5.0.10.0070.0258.94
5.0.00.0070.0398.94
4.4.90.0050.0218.94
4.4.80.0050.0208.94
4.4.70.0030.0228.94
4.4.60.0030.0248.94
4.4.50.0040.0258.94
4.4.40.0030.0338.94
4.4.30.0070.0198.94
4.4.20.0010.0248.94
4.4.10.0070.0188.94
4.4.00.0030.0338.94
4.3.110.0010.0278.94
4.3.100.0050.0198.94
4.3.90.0030.0228.94
4.3.80.0040.0368.94
4.3.70.0020.0238.94
4.3.60.0050.0198.94
4.3.50.0040.0228.94
4.3.40.0020.0348.94
4.3.30.0050.0198.94
4.3.20.0030.0218.94
4.3.10.0020.0218.94
4.3.00.0010.0238.94