3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('2014-01-31'); echo $date->format('Y-m-d')."\n"; $date->add(new DateInterval('1MP')); echo $date->format('Y-m-d')."\n"; $date->modify('-1 month'); echo $date->format('Y-m-d')."\n";

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.0100.00916.49
7.3.00.0090.01316.59
7.2.130.0120.00616.78
7.2.120.0130.01016.63
7.2.110.0120.00816.75
7.2.100.0120.00916.70
7.2.90.0120.00616.72
7.2.80.0170.00316.75
7.2.70.0200.00316.90
7.2.60.0130.00816.94
7.2.50.0150.00816.83
7.2.40.0140.00916.90
7.2.30.0140.01016.73
7.2.20.0120.01016.73
7.2.10.0120.01216.74
7.2.00.0080.00617.78
7.1.250.0050.01015.60
7.1.200.0070.00315.81
7.1.100.0000.01118.12
7.1.70.0030.00717.12
7.1.60.0160.00719.82
7.1.50.0040.01817.21
7.1.00.0000.08022.54
7.0.200.0000.00716.94
7.0.140.0000.07721.95
7.0.60.0000.04319.95
7.0.50.0070.08717.83
7.0.40.0030.05319.98
7.0.30.0300.05720.00
7.0.20.0230.07320.04
7.0.10.0430.07320.16
7.0.00.0070.07720.29
5.6.280.0030.07320.78
5.6.210.0000.09320.70
5.6.200.0200.07018.16
5.6.190.0100.08020.60
5.6.180.3700.03320.48
5.6.170.0530.05720.54
5.6.160.0100.08320.46
5.6.150.0170.07718.14
5.6.140.0070.08018.17
5.6.130.0130.07318.14
5.6.120.0070.06321.03
5.6.110.0130.06721.08
5.6.100.0070.08320.98
5.6.90.0100.08021.10
5.6.80.0070.08720.37
5.5.350.0130.07720.52
5.5.340.0030.08317.95
5.5.330.0030.05720.41
5.5.320.0330.07020.38
5.5.310.0130.04320.37
5.5.300.0200.07318.04
5.5.290.0070.08318.01
5.5.280.0130.06720.73
5.5.270.0000.04320.70
5.5.260.0100.06020.79
5.5.250.0130.06320.46
5.5.240.0030.06020.25
5.4.450.0270.07719.18
5.4.440.0300.03719.21
5.4.430.0230.07719.19
5.4.420.0230.06019.39
5.4.410.0170.05319.36
5.4.400.0300.05719.08
5.4.390.0230.04019.22
5.4.380.0270.05019.09
5.4.370.0200.05718.98
5.4.360.0300.06319.13
5.4.350.0370.06019.20
5.4.340.0270.05319.08
5.4.320.0200.05019.15
5.4.310.0270.03719.06
5.4.300.0370.06318.94
5.4.290.0330.04019.09
5.4.280.0270.07719.05
5.4.270.0300.04319.21
5.4.260.0230.07318.99
5.4.250.0400.06319.08
5.4.240.0200.04319.31
5.4.230.0300.05719.21
5.4.220.0300.06019.21
5.4.210.0270.04019.23
5.4.200.0270.06719.15
5.4.190.0230.04018.86
5.4.180.0270.06318.93
5.4.170.0370.05719.32
5.4.160.0300.07018.85
5.4.150.0330.05719.20
5.4.140.0270.04316.39
5.4.130.0270.03716.48
5.4.120.0330.04716.39
5.4.110.0200.04316.59
5.4.100.0300.03316.50
5.4.90.0230.03316.61
5.4.80.0270.05016.49
5.4.70.0300.05316.59
5.4.60.0330.06016.44
5.4.50.0330.04716.53
5.4.40.0330.05316.43
5.4.30.0270.07016.34
5.4.20.0230.04716.34
5.4.10.0430.04316.42
5.4.00.0300.06715.93
5.3.290.0200.04714.80
5.3.280.0270.06714.81
5.3.270.0430.06314.51
5.3.260.0200.05314.58
5.3.250.0270.08014.82
5.3.240.0230.07314.82
5.3.230.0270.07014.64
5.3.220.0270.07314.46
5.3.210.0270.07314.48
5.3.200.0270.07014.58
5.3.190.0270.04314.46
5.3.180.0230.03714.53
5.3.170.0270.06014.63
5.3.160.0270.03714.56
5.3.150.0170.05714.46
5.3.140.0230.05314.46
5.3.130.0270.05014.77
5.3.120.0170.04714.44
5.3.110.0330.06714.53
5.3.100.0270.07314.02
5.3.90.0230.05014.01
5.3.80.0300.06713.99
5.3.70.0370.07713.99
5.3.60.0330.04714.16
5.3.50.0300.05313.95
5.3.40.0200.04714.00
5.3.30.0300.03013.93
5.3.20.0330.06713.60
5.3.10.0270.04013.78
5.3.00.0230.04313.64
5.2.170.0270.05312.18
5.2.160.0230.04012.18
5.2.150.0130.04012.18
5.2.140.0200.03012.18
5.2.130.0300.05312.18
5.2.120.0200.04312.18
5.2.110.0270.04012.18
5.2.100.0230.02712.18
5.2.90.0270.04312.18
5.2.80.0300.02012.18
5.2.70.0130.03312.18
5.2.60.0230.03712.18
5.2.50.0170.04712.18
5.2.40.0200.05312.18
5.2.30.0130.03312.18
5.2.20.0200.05712.18
5.2.10.0130.06012.18
5.2.00.0130.06312.18
5.1.60.0170.03712.18
5.1.50.0100.05712.18
5.1.40.0170.03312.18
5.1.30.0200.04012.18
5.1.20.0170.02712.18
5.1.10.0270.04012.18
5.1.00.0230.03312.18
5.0.50.0130.03012.18
5.0.40.0100.02312.18
5.0.30.0100.04712.18
5.0.20.0130.02712.18
5.0.10.0100.04312.18
5.0.00.0100.04712.18
4.4.90.0070.03012.18
4.4.80.0170.02712.18
4.4.70.0130.03012.18
4.4.60.0130.03012.18
4.4.50.0070.02312.18
4.4.40.0070.05012.18
4.4.30.0070.02312.18
4.4.20.0100.03012.18
4.4.10.0130.03312.18
4.4.00.0130.02012.18
4.3.110.0070.02712.18
4.3.100.0100.03312.18
4.3.90.0070.03312.18
4.3.80.0100.03312.18
4.3.70.0070.02012.18
4.3.60.0100.02312.18
4.3.50.0100.03012.18
4.3.40.0130.04312.18
4.3.30.0030.03712.18
4.3.20.0030.03012.18
4.3.10.0000.03012.18
4.3.00.0100.03012.18