3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dStart = new DateTime('2012-08-26'); $dEnd = new DateTime('2012-07-26'); $dDiff = $dStart->diff($dEnd); echo $dDiff->format('%R'); // use for point out relation: smaller/greater echo $dDiff->days;

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.10.0000.01316.62
7.3.00.0040.00916.55
7.2.130.0090.00517.12
7.2.120.0060.00716.81
7.2.110.0060.00816.97
7.2.100.0070.00817.00
7.2.90.0060.01116.88
7.2.80.0030.00816.87
7.2.70.0190.00217.02
7.2.60.0060.00517.12
7.2.50.0090.01016.91
7.2.40.0050.01017.04
7.2.30.0110.00616.95
7.2.20.0100.00717.07
7.2.10.0100.00816.91
7.2.00.0070.00917.77
7.1.250.0050.00715.88
7.1.240.0070.00715.88
7.1.230.0000.01016.06
7.1.220.0040.00815.64
7.1.210.0030.00716.05
7.1.200.0040.00415.99
7.1.190.0030.00915.88
7.1.180.0090.00315.95
7.1.170.0000.00815.91
7.1.160.0030.00616.04
7.1.150.0100.00016.04
7.1.140.0070.00716.02
7.1.130.0030.00915.93
7.1.120.0000.01315.83
7.1.110.0000.00815.78
7.1.100.0060.00516.99
7.1.90.0090.00015.83
7.1.80.0080.00415.71
7.1.70.0080.00516.65
7.1.60.0060.01017.70
7.1.50.0050.01516.41
7.1.40.0100.00715.79
7.1.30.0070.00715.74
7.1.20.0060.00615.86
7.1.10.0100.00315.91
7.1.00.0000.04419.12
7.0.330.0040.00415.34
7.0.320.0100.00315.70
7.0.310.0090.00615.64
7.0.300.0060.00615.63
7.0.290.0030.01015.58
7.0.280.0070.00415.45
7.0.270.0040.00815.37
7.0.260.0060.01015.17
7.0.250.0030.01015.67
7.0.240.0030.01015.45
7.0.230.0030.01015.40
7.0.220.0080.00415.54
7.0.210.0110.00415.39
7.0.200.0020.00816.28
7.0.190.0030.01015.54
7.0.180.0110.00015.39
7.0.170.0000.01115.85
7.0.160.0060.00615.21
7.0.150.0040.00415.61
7.0.140.0050.04018.73
7.0.130.0000.01315.37
7.0.120.0070.00415.38
7.0.110.0050.00515.34
7.0.100.0070.00315.46
7.0.90.0040.00815.59
7.0.80.0030.01015.60
7.0.70.0000.01015.59
7.0.60.0210.02817.72
7.0.50.0030.03216.82
7.0.40.0050.03717.00
7.0.30.0180.03116.84
7.0.20.0130.04416.76
7.0.10.0050.03616.80
7.0.00.0080.04517.05
5.6.380.0030.00514.52
5.6.370.0040.00814.73
5.6.360.0060.00614.32
5.6.350.0030.01314.83
5.6.340.0050.00514.37
5.6.330.0120.00314.78
5.6.320.0000.01814.49
5.6.310.0130.00314.30
5.6.300.0070.00314.53
5.6.290.0040.00514.42
5.6.280.0040.04017.82
5.6.270.0040.00714.45
5.6.260.0080.00514.40
5.6.250.0090.00314.52
5.6.240.0060.00614.39
5.6.230.0000.01214.68
5.6.220.0000.00914.67
5.6.210.0050.04317.65
5.6.200.0040.04416.39
5.6.190.0080.02917.57
5.6.180.0070.02617.36
5.6.170.0130.03017.54
5.6.160.0120.02217.39
5.6.150.0030.04916.24
5.6.140.0050.04416.26
5.6.130.0070.03716.21
5.6.120.0030.04517.78
5.6.110.0030.04317.57
5.6.100.0030.03217.81
5.6.90.0030.05017.63
5.6.80.0100.04117.34
5.6.70.0070.00714.58
5.6.60.0030.00614.26
5.6.50.0040.00714.07
5.6.40.0040.00814.50
5.6.30.0000.01314.17
5.6.20.0070.00414.38
5.6.10.0110.00414.45
5.6.00.0100.00314.22
5.5.380.0060.00611.36
5.5.370.0030.00611.24
5.5.360.0000.00911.36
5.5.350.2180.02015.82
5.5.340.0050.03614.59
5.5.330.0030.03915.66
5.5.320.0150.03015.70
5.5.310.0170.04315.72
5.5.300.0100.04014.54
5.5.290.0090.03614.57
5.5.280.0070.04615.91
5.5.270.0030.04816.09
5.5.260.0050.04616.10
5.5.250.0080.04815.88
5.5.240.0030.02815.76
5.5.230.0000.00711.18
5.5.220.0030.00311.18
5.5.210.0060.00011.18
5.5.200.0050.00511.18
5.5.190.0090.00311.19
5.5.180.0040.00411.18
5.5.170.0000.00611.18
5.5.160.0000.01111.18
5.5.150.0070.00711.21
5.5.140.0000.01111.18
5.5.130.0040.00811.18
5.5.120.0050.00511.23
5.5.110.0030.01011.20
5.5.100.0030.00811.18
5.5.90.0000.01111.18
5.5.80.0090.00011.18
5.5.70.0030.00911.18
5.5.60.0060.00011.18
5.5.50.0000.00711.18
5.5.40.0030.01011.18
5.5.30.0000.01011.18
5.5.20.0070.00011.18
5.5.10.0000.00811.22
5.5.00.0030.00911.18
5.4.450.0120.03015.23
5.4.440.0160.03215.38
5.4.430.0230.03215.31
5.4.420.0220.02815.39
5.4.410.0080.04515.29
5.4.400.0070.03315.17
5.4.390.0120.04214.97
5.4.380.0120.02814.95
5.4.370.0100.03114.88
5.4.360.0080.02814.97
5.4.350.0050.03214.91
5.4.340.0120.03014.99
5.4.330.0080.00411.18
5.4.320.0160.03811.81
5.4.310.0080.02711.81
5.4.300.0060.02111.83
5.4.290.0040.02611.88
5.4.280.0050.02011.76
5.4.270.0060.02011.76
5.4.260.0070.02111.76
5.4.250.0070.02111.76
5.4.240.0050.02011.79
5.4.230.0040.02511.76
5.4.220.0030.02411.76
5.4.210.0060.02011.76
5.4.200.0040.02211.76
5.4.190.0060.02311.76
5.4.180.0080.03411.76
5.4.170.0070.03011.76
5.4.160.0060.02211.76
5.4.150.0040.02211.76
5.4.140.0060.02311.60
5.4.130.0070.02311.60
5.4.120.0120.03311.57
5.4.110.0020.02611.57
5.4.100.0040.02311.57
5.4.90.0050.02211.57
5.4.80.0070.02011.57
5.4.70.0050.02111.57
5.4.60.0050.02611.57
5.4.50.0050.02011.57
5.4.40.0050.02111.56
5.4.30.0020.02811.56
5.4.20.0060.02511.56
5.4.10.0030.03011.56
5.4.00.0100.02611.31
5.3.290.0050.03111.99
5.3.280.0020.02511.94
5.3.270.0040.02511.95
5.3.260.0050.02311.95
5.3.250.0080.02111.95
5.3.240.0070.02111.95
5.3.230.0070.02611.94
5.3.220.0050.02211.93
5.3.210.0080.02511.93
5.3.200.0080.02811.93
5.3.190.0090.02611.93
5.3.180.0070.02911.92
5.3.170.0040.03211.92
5.3.160.0080.03611.92
5.3.150.0050.03311.93
5.3.140.0080.02511.92
5.3.130.0060.02311.92
5.3.120.0030.02511.92
5.3.110.0070.02911.92
5.3.100.0040.02911.64
5.3.90.0020.02311.63
5.3.80.0070.02011.63
5.3.70.0060.02311.63
5.3.60.0040.02411.62
5.3.50.0050.02111.59
5.3.40.0070.01911.59
5.3.30.0070.02411.56
5.3.20.0050.02111.45
5.3.10.0040.02011.43
5.3.00.0070.02611.43
5.2.170.0070.03010.18
5.2.160.0050.02610.18
5.2.150.0040.02010.18
5.2.140.0060.01410.18
5.2.130.0070.01410.16
5.2.120.0060.01510.16
5.2.110.0030.01910.16
5.2.100.0040.01910.16
5.2.90.0070.02210.16
5.2.80.0060.01810.16
5.2.70.0050.01810.16
5.2.60.0040.01610.14
5.2.50.0010.02110.12
5.2.40.0050.02310.11
5.2.30.0040.02810.10
5.2.20.0050.01710.09
5.2.10.0030.01810.05
5.2.00.0040.0259.98
5.1.60.0040.0219.62
5.1.50.0040.0149.62
5.1.40.0050.0149.61
5.1.30.0050.0139.79
5.1.20.0070.0149.80
5.1.10.0070.0149.66
5.1.00.0040.0139.66
5.0.50.0040.0148.90
5.0.40.0040.0128.83
5.0.30.0020.0248.73
5.0.20.0040.0158.72
5.0.10.0020.0188.71
5.0.00.0040.0178.71
4.4.90.0020.0107.97
4.4.80.0020.0107.96
4.4.70.0030.0107.96
4.4.60.0040.0107.97
4.4.50.0010.0127.97
4.4.40.0040.0137.94
4.4.30.0040.0097.97
4.4.20.0020.0108.01
4.4.10.0030.0098.01
4.4.00.0040.0167.97
4.3.110.0050.0077.92
4.3.100.0020.0117.92
4.3.90.0010.0097.91
4.3.80.0030.0147.88
4.3.70.0030.0077.90
4.3.60.0030.0097.90
4.3.50.0040.0077.90
4.3.40.0030.0137.86
4.3.30.0020.0097.23
4.3.20.0030.0107.22
4.3.10.0030.0087.20
4.3.00.0020.0189.26