3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "fecha: ".(new \DateTime())->format('Y-m-d H:i:s'); echo $a; echo (new \DateTime())->format('Y-m-d H:i:s');

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.0040.01116.75
7.2.00.0040.01119.64
7.1.200.0160.01015.65
7.1.100.0000.01418.49
7.1.70.0030.00717.11
7.1.60.0100.01419.70
7.1.50.0070.01617.00
7.1.00.0070.07322.31
7.0.200.0120.00316.96
7.0.140.0030.07322.21
7.0.60.0100.04319.93
7.0.50.0130.06017.80
7.0.40.0000.09720.00
7.0.30.0270.08020.18
7.0.20.0270.07020.00
7.0.10.0100.08320.00
7.0.00.0070.09320.08
5.6.280.0070.06721.12
5.6.210.0270.06320.76
5.6.200.0130.06718.17
5.6.190.0030.07320.67
5.6.180.2830.04320.57
5.6.170.0230.05020.50
5.6.160.0000.04320.71
5.6.150.0100.04318.18
5.6.140.0100.06318.18
5.6.130.0000.05718.21
5.6.120.0100.08021.01
5.6.110.0030.08721.07
5.6.100.0030.04021.00
5.6.90.0200.07020.96
5.6.80.0130.06720.41
5.6.70.3970.04020.37
5.5.350.0000.04020.39
5.5.340.0030.03717.92
5.5.330.0070.06720.21
5.5.320.0370.07020.17
5.5.310.0300.04320.26
5.5.300.0130.07017.94
5.5.290.0100.06317.91
5.5.280.0030.08320.80
5.5.270.0100.03320.79
5.5.260.0070.08020.72
5.5.250.0000.04320.68
5.5.240.0300.06320.18
5.4.450.0100.05019.14
5.4.440.0300.04019.21
5.4.430.0330.04719.50
5.4.420.0730.04019.38
5.4.410.0400.03319.36
5.4.400.0470.03319.10
5.4.390.0470.04319.10
5.4.380.0100.05718.57
5.4.370.0170.05318.61
5.4.360.0100.05718.52
5.4.350.0130.05318.61
5.4.340.0200.04718.62
5.4.320.0050.03512.45
5.4.310.0060.04612.45
5.4.300.0030.04012.45
5.4.290.0090.03512.45
5.4.280.0100.03212.35
5.4.270.0160.02712.35
5.4.260.0160.02912.35
5.4.250.0090.03512.35
5.4.240.0060.03612.35
5.4.230.0070.03612.34
5.4.220.0080.03312.34
5.4.210.0100.03512.34
5.4.200.0080.03612.34
5.4.190.0110.03312.34
5.4.180.0220.03412.34
5.4.170.0120.04612.35
5.4.160.0090.03912.34
5.4.150.0110.03712.34
5.4.140.0050.03912.03
5.4.130.0080.03612.01
5.4.120.0120.04011.97
5.4.110.0070.04311.97
5.4.100.0060.04311.97
5.4.90.0050.05311.96
5.4.80.0080.03911.97
5.4.70.0080.03311.96
5.4.60.0060.04211.96
5.4.50.0070.04211.96
5.4.40.0080.04711.95
5.4.30.0090.03911.95
5.4.20.0070.04911.95
5.4.10.0090.04611.95
5.4.00.0070.03911.44
5.3.290.0090.04512.80
5.3.280.0030.04012.70
5.3.270.0080.03612.72
5.3.260.0070.03912.71
5.3.250.0050.03912.72
5.3.240.0110.03312.72
5.3.230.0050.04012.71
5.3.220.0120.03212.68
5.3.210.0080.03812.68
5.3.200.0050.04112.68
5.3.190.0060.03912.68
5.3.180.0080.03512.67
5.3.170.0050.03812.66
5.3.160.0040.03912.68
5.3.150.0040.03912.68
5.3.140.0080.03512.66
5.3.130.0090.03712.66
5.3.120.0060.03912.66
5.3.110.0040.04112.66
5.3.100.0040.03912.12
5.3.90.0080.03412.08
5.3.80.0050.03812.08
5.3.70.0040.03912.07
5.3.60.0050.03912.07
5.3.50.0050.03812.00
5.3.40.0070.03912.00
5.3.30.0040.04011.96
5.3.20.0110.03511.73
5.3.10.0080.03111.71
5.3.00.0090.03411.70
5.2.170.0060.0299.18
5.2.160.0060.0319.18
5.2.150.0060.0329.18
5.2.140.0010.0369.18
5.2.130.0070.0319.14
5.2.120.0070.0329.14
5.2.110.0050.0339.14
5.2.100.0050.0279.14
5.2.90.0070.0269.14
5.2.80.0050.0309.14
5.2.70.0020.0349.14
5.2.60.0060.0289.09
5.2.50.0070.0299.06
5.2.40.0060.0289.03
5.2.30.0060.0299.02
5.2.20.0030.0309.01
5.2.10.0030.0308.93
5.2.00.0070.0278.79
5.1.60.0020.0268.06
5.1.50.0040.0258.06
5.1.40.0020.0268.05
5.1.30.0010.0298.40
5.1.20.0050.0268.41
5.1.10.0050.0258.14
5.1.00.0050.0258.14
5.0.50.0070.0176.62
5.0.40.0020.0216.48
5.0.30.0020.0326.29
5.0.20.0020.0206.27
5.0.10.0040.0196.24
5.0.00.0020.0326.23
4.4.90.0010.0174.78
4.4.80.0030.0154.75
4.4.70.0030.0154.75
4.4.60.0000.0184.75
4.4.50.0030.0154.77
4.4.40.0050.0234.71
4.4.30.0030.0154.76
4.4.20.0040.0154.84
4.4.10.0040.0144.85
4.4.00.0030.0244.76
4.3.110.0020.0174.67
4.3.100.0050.0144.66
4.3.90.0030.0154.63
4.3.80.0010.0284.59
4.3.70.0040.0164.63
4.3.60.0030.0204.63
4.3.50.0040.0144.63
4.3.40.0030.0244.53
4.3.30.0020.0163.28
4.3.20.0040.0143.26
4.3.10.0040.0133.21
4.3.00.0000.01712.94