3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dateTime = new \DateTime(); echo json_encode($dateTime);

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.0080.00816.96
7.2.00.0050.00919.50
7.1.200.0090.00615.99
7.1.100.0030.01318.32
7.1.70.0030.00616.95
7.1.60.0100.01319.50
7.1.50.0140.01016.84
7.1.00.0030.07722.35
7.0.200.0070.00416.93
7.0.90.0530.06319.93
7.0.80.0600.08019.88
7.0.70.0500.07319.92
7.0.60.0570.08019.96
7.0.50.0670.07020.29
7.0.40.0070.06720.07
7.0.30.0130.06720.10
7.0.20.0070.08020.11
7.0.10.0100.07720.07
7.0.00.0130.06720.11
5.6.280.0070.03021.07
5.6.240.0030.08020.63
5.6.230.0070.07720.59
5.6.220.0070.07320.55
5.6.210.0130.05320.61
5.6.200.0100.04021.01
5.6.190.0230.07320.94
5.6.180.0030.08720.95
5.6.170.0070.07320.95
5.6.160.0070.07721.13
5.6.150.0030.09021.16
5.6.140.0070.08021.00
5.6.130.0130.05321.02
5.6.120.0130.07721.07
5.6.110.0030.09021.03
5.6.100.0100.06321.00
5.6.90.0030.08021.11
5.6.80.0070.04320.41
5.6.70.0130.03320.39
5.6.60.0100.06020.41
5.6.50.0070.04720.45
5.6.40.0100.06720.30
5.6.30.0100.07720.41
5.6.20.0070.06020.39
5.6.10.0030.08020.48
5.6.00.0070.07320.36
5.5.380.0100.08020.39
5.5.370.0070.07720.51
5.5.360.0070.05320.54
5.5.350.0170.07020.43
5.5.340.0030.07020.73
5.5.330.0170.06720.89
5.5.320.0070.07320.83
5.5.310.0070.08020.77
5.5.300.0130.07320.77
5.5.290.0070.08320.91
5.5.280.0030.06720.76
5.5.270.0100.08320.87
5.5.260.0070.08720.90
5.5.250.0070.08720.54
5.5.240.0000.05720.25
5.5.230.0070.06720.20
5.5.220.0100.08020.15
5.5.210.0030.07020.14
5.5.200.0130.07320.23
5.5.190.0000.08320.10
5.5.180.0100.05720.10
5.5.160.0100.04320.25
5.5.150.0030.04720.22
5.5.140.0070.04320.20
5.5.130.0130.06320.27
5.5.120.0170.06320.27
5.5.110.0030.06720.25
5.5.100.0130.07320.07
5.5.90.0030.04020.10
5.5.80.0130.07020.08
5.5.70.0000.04720.04
5.5.60.0130.05720.02
5.5.50.0100.04320.00
5.5.40.0070.04720.04
5.5.30.0100.07320.09
5.5.20.0030.07720.13
5.5.10.0100.04720.00
5.5.00.0100.05020.05
5.4.450.0130.06319.23
5.4.440.0100.07019.35
5.4.430.0030.06719.13
5.4.420.0130.04719.38
5.4.410.0200.06719.24
5.4.400.0100.07019.25
5.4.390.0070.07019.04
5.4.380.0030.04718.78
5.4.370.0000.08319.22
5.4.360.0070.07718.78
5.4.350.0100.06319.15
5.4.340.0100.07318.78
5.4.320.0030.08019.06
5.4.310.0100.06718.98
5.4.300.0170.02718.81
5.4.290.0000.08719.07
5.4.280.0070.07719.02
5.4.270.0070.07319.05
5.4.260.0070.04319.07
5.4.250.0070.07319.11
5.4.240.0030.04319.04
5.4.230.0000.06319.04
5.4.220.0170.03719.09
5.4.210.0100.07719.22
5.4.200.0130.07019.23
5.4.190.0030.07718.95
5.4.180.0030.06019.22
5.4.170.0030.07019.11
5.4.160.0070.07319.10
5.4.150.0100.07719.09
5.4.140.0130.06016.38
5.4.130.0130.06316.35
5.4.120.0100.06716.33
5.4.110.0070.05716.41
5.4.100.0030.04016.29
5.4.90.0130.04716.48
5.4.80.0030.07716.35
5.4.70.0030.07716.27
5.4.60.0130.05716.30
5.4.50.0070.06316.38
5.4.40.0070.07016.24
5.4.30.0070.06716.32
5.4.20.0100.06716.27
5.4.10.0030.06016.27
5.4.00.0170.06315.73