3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = (new DateTime())->format('Y-m-d'); var_dump($a);
based on J1hHu

Here you find the average performance (time & memory) of each version. A greyed 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.00.0000.01519.61
7.1.110.0040.01118.32
7.1.100.0060.00617.86
7.1.90.0060.00918.10
7.1.80.0060.00618.15
7.1.70.0030.00817.31
7.1.60.0230.00925.39
7.1.50.0100.01226.02
7.1.40.0080.01125.84
7.1.30.0100.01326.06
7.1.20.0150.01126.09
7.1.10.0070.00816.95
7.1.00.0060.00617.15
7.0.250.0030.01017.80
7.0.240.0030.01018.11
7.0.230.0070.00717.97
7.0.220.0030.01017.89
7.0.210.0200.01215.08
7.0.200.0070.00517.09
7.0.190.0040.00617.18
7.0.180.0020.01016.93
7.0.170.0040.00816.94
7.0.160.0030.00816.94
7.0.150.0030.01116.89
7.0.140.0060.00916.94
7.0.130.0030.01417.02
7.0.120.0060.00716.92
7.0.110.0020.01316.95
7.0.100.0070.00817.01
7.0.90.0070.00816.88
7.0.80.0020.01317.04
7.0.70.0030.01016.87
7.0.60.0040.01016.79
7.0.50.0020.01316.88
7.0.40.0030.01117.01
7.0.30.0020.01216.96
7.0.20.0050.00816.99
7.0.10.0040.00917.00
7.0.00.0050.01216.92
hhvm-3.22.00.0530.16499.02
hhvm-3.21.30.0610.16299.20
hhvm-3.21.00.0730.165101.00
hhvm-3.20.20.0440.17792.57
hhvm-3.19.20.0780.15699.25
hhvm-3.18.50.0500.17196.68
hhvm-3.18.40.0510.174100.35
hhvm-3.17.30.0340.16397.50
hhvm-3.15.40.0590.15296.28
hhvm-3.13.20.0640.174104.08
hhvm-3.12.140.0550.157106.83
hhvm-3.11.10.0520.199100.76
hhvm-3.10.10.0550.16297.77
5.6.300.0070.06220.67
5.6.290.0060.06120.75
5.6.280.0110.05420.79
5.6.270.0110.05621.03
5.6.260.0040.06721.02
5.6.250.0100.05620.89
5.6.240.0180.05420.78
5.6.230.0070.07220.96
5.6.220.0090.06320.83
5.6.210.0050.06720.89
5.6.200.0190.05720.82
5.6.190.0050.06620.89
5.6.180.0030.06620.77
5.6.170.0160.06220.91
5.6.160.0100.06020.79
5.6.150.0140.05520.76
5.6.140.0080.06420.85
5.6.130.0070.06120.87
5.6.120.0110.05820.98
5.6.110.0120.05520.88
5.6.100.0120.06220.82
5.6.90.0050.06220.83
5.6.80.0100.04620.21
5.6.70.0080.04920.29
5.6.60.0110.05120.26
5.6.50.0140.05420.15
5.6.40.0190.05120.30
5.6.30.0140.05420.23
5.6.20.0070.06320.35
5.6.10.0090.06220.24
5.6.00.0070.04820.32
5.5.380.0070.06217.44
5.5.370.0030.05917.43
5.5.360.0100.05417.42
5.5.350.0080.07417.48
5.5.340.0100.05917.73
5.5.330.0090.07518.01
5.5.320.0100.05218.04
5.5.310.0100.05517.84
5.5.300.0120.07917.96
5.5.290.0070.06217.94
5.5.280.0100.05917.83
5.5.270.0070.05817.84
5.5.260.0120.05918.02
5.5.250.0060.06217.72
5.5.240.0040.05717.38
5.5.230.0080.05817.37
5.5.220.0150.04517.26
5.5.210.0050.05917.33
5.5.200.0090.05217.34
5.5.190.0060.06217.32
5.5.180.0050.05817.38
5.5.160.0080.05517.37
5.5.150.0080.05617.32
5.5.140.0090.05217.44
5.5.130.0080.05617.37
5.5.120.0080.04617.27
5.5.110.0080.04517.32
5.5.100.0100.04317.26
5.5.90.0070.04517.32
5.5.80.0080.05717.28
5.5.70.0070.05617.22
5.5.60.0050.04917.33
5.5.50.0090.04217.31
5.5.40.0030.04817.36
5.5.30.0100.05017.22
5.5.20.0050.04917.26
5.5.10.0180.04717.30
5.5.00.0080.04617.30
5.4.450.0090.05319.30
5.4.440.0020.06319.27
5.4.430.0050.06219.37
5.4.420.0140.05219.27
5.4.410.0060.06219.22
5.4.400.0080.05919.05
5.4.390.0060.06019.05
5.4.380.0090.04919.00
5.4.370.0100.05319.03
5.4.360.0100.05518.87
5.4.350.0100.06119.00
5.4.340.0030.06019.06
5.4.320.0030.05518.99
5.4.310.0060.05419.00
5.4.300.0020.06018.89
5.4.290.0080.04719.02
5.4.280.0130.05319.00
5.4.270.0090.05019.13
5.4.260.0110.04319.09
5.4.250.0030.05618.98
5.4.240.0070.05218.94
5.4.230.0080.04518.86
5.4.220.0070.04918.94
5.4.210.0050.04818.95
5.4.200.0120.03818.99
5.4.190.0060.05219.10
5.4.180.0140.03818.95
5.4.170.0060.05218.92
5.4.160.0050.04919.06
5.4.150.0050.04619.03
5.4.140.0060.05317.01
5.4.130.0080.04916.90
5.4.120.0090.05817.02
5.4.110.0030.05517.02
5.4.100.0050.04216.99
5.4.90.0020.07416.88
5.4.80.0080.04016.99
5.4.70.0120.04217.02
5.4.60.0100.04816.99
5.4.50.0060.04316.87
5.4.40.0070.03916.98
5.4.30.0050.04116.89
5.4.20.0050.04116.87
5.4.10.0030.05016.91
5.4.00.0060.04916.67
5.3.290.0080.05616.12
5.3.280.0050.05216.09
5.3.270.0080.05215.97
5.3.260.0070.04516.03
5.3.250.0070.04816.09
5.3.240.0070.05016.11
5.3.230.0100.04516.07
5.3.220.0050.05216.07
5.3.210.0020.05816.09
5.3.200.0070.04416.08
5.3.190.0070.04816.05
5.3.180.0070.04315.89
5.3.170.0070.05615.98
5.3.160.0080.05416.07
5.3.150.0030.04615.98
5.3.140.0070.04716.07
5.3.130.0050.05715.97
5.3.120.0050.04816.03
5.3.110.0100.05216.04
5.3.100.0050.05115.80
5.3.90.0020.05415.68
5.3.80.0030.05115.75
5.3.70.0050.05015.80
5.3.60.0110.04315.80
5.3.50.0080.04215.72
5.3.40.0030.04515.67
5.3.30.0030.05315.65
5.3.20.0030.05615.56
5.3.10.0050.05115.53
5.3.00.0060.04215.61
5.2.170.0050.03814.18
5.2.160.0050.03614.30
5.2.150.0020.04214.24
5.2.140.0020.04514.34
5.2.130.0030.04214.22
5.2.120.0030.04214.37
5.2.110.0020.04214.28
5.2.100.0070.03114.16
5.2.90.0000.03614.32
5.2.80.0050.03514.21
5.2.70.0080.03114.37
5.2.60.0030.03414.29
5.2.50.0050.03214.29
5.2.40.0050.03514.31
5.2.30.0060.03714.25
5.2.20.0050.03314.24
5.2.10.0020.04014.16
5.2.00.0060.03214.17
5.1.60.0030.03613.80
5.1.50.0020.03213.76
5.1.40.0020.03713.85
5.1.30.0060.04213.93
5.1.20.0070.04513.91
5.1.10.0070.04713.78
5.1.00.0060.03613.88
5.0.50.0020.02713.06
5.0.40.0030.02512.85
5.0.30.0020.03712.96
5.0.20.0030.02412.90
5.0.10.0050.02612.84
5.0.00.0050.04112.81
4.4.90.0020.01812.14
4.4.80.0050.01612.14
4.4.70.0030.02412.14
4.4.60.0000.02412.14
4.4.50.0070.01512.14
4.4.40.0070.03112.14
4.4.30.0030.02012.14
4.4.20.0030.03312.14
4.4.10.0030.01812.14
4.4.00.0050.03012.14
4.3.110.0030.01712.14
4.3.100.0000.02012.14
4.3.90.0070.02212.14
4.3.80.0030.04312.14
4.3.70.0030.02112.14
4.3.60.0050.01612.14
4.3.50.0000.02412.14
4.3.40.0030.02712.14
4.3.30.0050.01712.14
4.3.20.0030.02012.14
4.3.10.0050.01612.14
4.3.00.0030.01812.14