3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('2015-01-10'); echo $date->modify('last day of this month')->format('Y-m-d');
based on rDGNQ

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.00.0000.01216.77
7.2.130.0090.00616.88
7.2.120.0030.00617.18
7.2.110.0050.00516.96
7.2.100.0070.00717.13
7.2.90.0040.00717.10
7.2.80.0080.00617.11
7.2.70.0000.01016.93
7.2.60.0060.00817.08
7.2.50.0070.01017.08
7.2.40.0000.01517.16
7.2.30.0050.00517.13
7.2.20.0030.00616.71
7.2.10.0060.00617.00
7.2.00.0020.01118.18
7.1.250.0090.00615.64
7.1.240.0030.00915.98
7.1.230.0080.00015.82
7.1.220.0000.01415.90
7.1.210.0100.00015.59
7.1.200.0050.00715.72
7.1.190.0040.00415.65
7.1.180.0030.00915.77
7.1.170.0030.00615.71
7.1.160.0090.00015.89
7.1.150.0000.01015.65
7.1.140.0000.00815.87
7.1.130.0040.00415.73
7.1.120.0040.00415.79
7.1.110.0000.01415.89
7.1.100.0020.01016.91
7.1.90.0070.00415.78
7.1.80.0090.00015.64
7.1.70.0000.01016.30
7.1.60.0100.00717.66
7.1.50.0050.01216.27
7.1.40.0050.00515.87
7.1.30.0000.01315.57
7.1.20.0070.00715.77
7.1.10.0000.00815.73
7.1.00.0020.04219.15
7.0.330.0000.00715.16
7.0.320.0060.00315.47
7.0.310.0000.01415.44
7.0.300.0040.00815.21
7.0.290.0030.01015.60
7.0.280.0070.00015.34
7.0.270.0030.00715.16
7.0.260.0040.00815.39
7.0.250.0060.00615.57
7.0.240.0070.00715.40
7.0.230.0000.01115.44
7.0.220.0040.00415.39
7.0.210.0060.00615.22
7.0.200.0020.00816.20
7.0.190.0030.00815.56
7.0.180.0000.01315.32
7.0.170.0070.00315.66
7.0.160.0070.00715.49
7.0.150.0040.00815.33
7.0.140.0060.01818.84
7.0.130.0060.00315.50
7.0.120.0030.00715.68
7.0.110.0250.02117.66
7.0.100.0220.01817.74
7.0.90.0200.02317.83
7.0.80.0260.03117.75
7.0.70.0250.02017.81
7.0.60.0220.02217.71
7.0.50.0230.04217.75
7.0.40.0070.02516.70
7.0.30.0050.04216.64
7.0.20.0070.02216.40
7.0.10.0080.03616.56
7.0.00.0030.03716.62
5.6.380.0000.00714.50
5.6.370.0000.01314.50
5.6.360.0060.00314.41
5.6.350.0090.00314.47
5.6.340.0000.01014.70
5.6.330.0060.00614.49
5.6.320.0030.00714.63
5.6.310.0050.00514.74
5.6.300.0040.00814.43
5.6.290.0070.00314.73
5.6.280.0090.03717.79
5.6.270.0040.01114.42
5.6.260.0060.02017.46
5.6.250.0080.04217.58
5.6.240.0060.04117.43
5.6.230.0100.02717.57
5.6.220.0020.03817.45
5.6.210.0030.03717.65
5.6.200.0050.04717.42
5.6.190.0070.04017.59
5.6.180.0080.02617.52
5.6.170.0100.02117.46
5.6.160.0060.02817.50
5.6.150.0090.03317.47
5.6.140.0100.02617.60
5.6.130.0080.03317.53
5.6.120.0070.03217.38
5.6.110.0070.04017.46
5.6.100.0110.02117.53
5.6.90.0100.02017.49
5.6.80.0030.03617.14
5.6.70.0120.03717.07
5.6.60.0060.02117.05
5.6.50.0070.03217.28
5.6.40.0080.03817.17
5.6.30.0050.03017.13
5.6.20.0030.04117.12
5.6.10.0030.04717.23
5.6.00.0080.04317.14
5.5.380.0000.02114.51
5.5.370.0070.04014.48
5.5.360.0070.04714.32
5.5.350.0020.04514.18
5.5.340.0040.04014.60
5.5.330.0050.03014.63
5.5.320.0060.04114.63
5.5.310.0020.02714.67
5.5.300.0100.03314.60
5.5.290.0060.02614.64
5.5.280.0050.02514.86
5.5.270.0040.02214.65
5.5.260.0020.02514.68
5.5.250.0030.02114.42
5.5.240.0080.03714.27
5.5.230.0060.04214.17
5.5.220.0030.03814.21
5.5.210.0050.04314.20
5.5.200.0070.03514.20
5.5.190.0050.03214.39
5.5.180.0070.03214.19
5.5.170.0030.00911.18
5.5.160.0030.03114.33
5.5.150.0030.04314.19
5.5.140.0080.02814.34
5.5.130.0050.03814.19
5.5.120.0080.03814.18
5.5.110.0040.03514.19
5.5.100.0100.03514.29
5.5.90.0120.03814.25
5.5.80.0040.03014.37
5.5.70.0070.04014.20
5.5.60.0020.03514.29
5.5.50.0030.04114.14
5.5.40.0070.03714.14
5.5.30.0100.03214.20
5.5.20.0070.04114.25
5.5.10.0070.03714.17
5.5.00.0070.04014.29
5.4.450.0040.02415.37
5.4.440.0080.03915.21
5.4.430.0030.02215.26
5.4.420.0020.04615.38
5.4.410.0050.02515.21
5.4.400.0020.02815.09
5.4.390.0000.03715.14
5.4.380.0090.02715.14
5.4.370.0060.04015.09
5.4.360.0040.03515.10
5.4.350.0050.04015.08
5.4.340.0080.03815.10
5.4.330.0060.00611.18
5.4.320.0070.04015.21
5.4.310.0040.04015.06
5.4.300.0050.04015.09
5.4.290.0080.03815.05
5.4.280.0070.04415.05
5.4.270.0050.04015.20
5.4.260.0020.03715.08
5.4.250.0040.02015.13
5.4.240.0030.03115.06
5.4.230.0090.03415.05
5.4.220.0030.01915.23
5.4.210.0100.03615.14
5.4.200.0100.03515.09
5.4.190.0020.03215.13
5.4.180.0110.02615.13
5.4.170.0060.01815.21
5.4.160.0050.03815.07
5.4.150.0020.02215.06
5.4.140.0070.03613.85
5.4.130.0050.03213.74
5.4.120.0060.03113.73
5.4.110.0020.02913.93
5.4.100.0180.02713.86
5.4.90.0050.03813.71
5.4.80.0000.02513.87
5.4.70.0090.01513.74
5.4.60.0080.03813.76
5.4.50.0070.02313.75
5.4.40.0030.02513.70
5.4.30.0070.02013.68
5.4.20.0040.04013.82
5.4.10.0020.02713.68
5.4.00.0050.03713.54
5.3.290.0030.03612.89
5.3.280.0000.03612.93
5.3.270.0050.03512.83
5.3.260.0060.03612.90
5.3.250.0060.03512.86
5.3.240.0120.02912.86
5.3.230.0020.03612.92
5.3.220.0020.04612.79
5.3.210.0130.03512.88
5.3.200.0080.03612.78
5.3.190.0020.04212.84
5.3.180.0090.03412.81
5.3.170.0030.03812.78
5.3.160.0080.01712.90
5.3.150.0030.02312.92
5.3.140.0070.01812.81
5.3.130.0050.03812.90
5.3.120.0060.03612.91
5.3.110.0030.04112.78
5.3.100.0100.02712.60
5.3.90.0020.02312.52
5.3.80.0000.02512.62
5.3.70.0050.03812.56
5.3.60.0060.03912.53
5.3.50.0000.02712.45
5.3.40.0030.03712.56
5.3.30.0110.02012.49
5.3.20.0040.02312.37
5.3.10.0050.02412.45
5.3.00.0050.03612.41
5.2.170.0060.03011.54
5.2.160.0050.02311.54
5.2.150.0040.02711.54
5.2.140.0050.01711.54
5.2.130.0050.03111.54
5.2.120.0000.02711.54
5.2.110.0080.02811.54
5.2.100.0030.02011.54
5.2.90.0020.02711.54
5.2.80.0050.02511.54
5.2.70.0070.01811.54
5.2.60.0030.01811.54
5.2.50.0040.01711.54
5.2.40.0030.01811.54
5.2.30.0050.03211.54
5.2.20.0000.03611.54
5.2.10.0060.02011.54
5.2.00.0060.02111.54
5.1.60.0030.02211.54
5.1.50.0060.01311.54
5.1.40.0030.01511.54
5.1.30.0000.01911.54
5.1.20.0000.03011.54
5.1.10.0070.02611.54
5.1.00.0000.02811.54
5.0.50.0010.01311.54
5.0.40.0020.02011.54
5.0.30.0070.02311.54
5.0.20.0030.01711.54
5.0.10.0030.02311.54
5.0.00.0080.01611.54
4.4.90.0020.01911.54
4.4.80.0050.01411.54
4.4.70.0050.01211.54
4.4.60.0020.02011.54
4.4.50.0030.01311.54
4.4.40.0020.02311.54
4.4.30.0020.01011.54
4.4.20.0020.01311.54
4.4.10.0020.01011.54
4.4.00.0030.02411.54
4.3.110.0020.01811.54
4.3.100.0000.02011.54
4.3.90.0030.01711.54
4.3.80.0020.02811.54
4.3.70.0030.00811.54
4.3.60.0000.01711.54
4.3.50.0030.01811.54
4.3.40.0030.02511.54
4.3.30.0050.01711.54
4.3.20.0010.01011.54
4.3.10.0010.01811.54
4.3.00.0000.01911.54