3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(dirname(dirname('/...')));

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.0rc40.0220.00798.97
7.3.0rc30.0220.00016.59
7.3.0beta10.0000.00512.65
7.3.0alpha10.0040.00712.39
7.2.110.0150.00916.52
7.2.60.0000.01216.56
7.2.00.0060.00919.25
7.1.200.0030.00715.76
7.1.100.0040.00718.24
7.1.70.0000.00817.00
7.1.60.0210.00717.02
7.1.50.0540.00316.89
7.1.40.0280.00716.37
7.1.30.0220.00616.52
7.1.20.0130.01016.70
7.1.10.0090.00616.57
7.1.00.0070.01016.66
7.0.200.0170.00316.57
7.0.190.0220.00616.55
7.0.180.0330.00415.98
7.0.170.0170.00716.04
7.0.160.0140.00716.04
7.0.150.0120.00316.39
7.0.140.0070.00716.28
7.0.130.0100.00316.47
7.0.120.0070.00716.49
7.0.110.0140.00016.14
7.0.100.0090.00316.21
7.0.90.0060.00616.27
7.0.80.0130.00316.08
7.0.70.0110.00416.26
7.0.60.0080.00616.02
7.0.50.0080.00416.39
7.0.40.0000.01114.84
7.0.30.0070.00714.84
7.0.20.0060.00314.84
7.0.10.0030.00614.84
7.0.00.0000.00914.84
hhvm-3.17.30.0300.09098.64
hhvm-3.15.40.0290.080100.90
hhvm-3.13.20.0370.093109.71
hhvm-3.12.140.0170.093110.46
hhvm-3.11.10.0170.104106.30
hhvm-3.10.10.0140.106101.38
5.6.300.0070.04020.96
5.6.290.0100.03620.82
5.6.280.0100.03620.91
5.6.270.0000.05320.97
5.6.260.0060.04121.03
5.6.250.0000.04520.86
5.6.240.0030.04420.93
5.6.230.0070.04320.87
5.6.220.0030.04720.78
5.6.210.0060.04221.05
5.6.200.0030.04320.73
5.6.190.0000.04421.00
5.6.180.0100.05421.03
5.6.170.0070.04220.95
5.6.160.0030.04720.95
5.6.150.0030.04920.99
5.6.140.0030.05220.76
5.6.130.0070.04220.93
5.6.120.0070.04920.76
5.6.110.0070.03820.85
5.6.100.0030.04020.85
5.6.90.0100.04320.72
5.6.80.0000.05020.21
5.6.70.0030.04020.33
5.6.60.0030.04320.20
5.6.50.0030.04520.37
5.6.40.0070.04620.09
5.6.30.0030.04120.10
5.6.20.0000.04320.17
5.6.10.0040.04320.38
5.6.00.0000.04620.17
5.5.380.0100.03317.57
5.5.370.0030.03817.48
5.5.360.0100.03817.49
5.5.350.0000.04317.49
5.5.340.0030.04317.74
5.5.330.0000.04818.00
5.5.320.0000.04517.71
5.5.310.0070.04017.84
5.5.300.0000.05717.70
5.5.290.0100.04218.07
5.5.280.0140.03218.03
5.5.270.0030.04917.96
5.5.260.0030.04417.69
5.5.250.0070.04117.65
5.5.240.0030.04617.22
5.5.230.0000.05117.41
5.5.220.0000.04217.49
5.5.210.0000.04817.23
5.5.200.0130.03617.21
5.5.190.0130.03017.41
5.5.180.0170.04717.29
5.5.160.0000.04417.38
5.5.150.0030.03817.34
5.5.140.0160.02517.29
5.5.130.0030.04117.20
5.5.120.0140.03717.28
5.5.110.0030.04417.40
5.5.100.0000.04417.20
5.5.90.0070.03617.32
5.5.80.0000.04117.21
5.5.70.0030.04217.02
5.5.60.0000.04616.95
5.5.50.0060.03217.27
5.5.40.0130.03217.18
5.5.30.0070.03917.31
5.5.20.0030.04716.98
5.5.10.0030.04517.27
5.5.00.0000.04816.98
5.4.450.0030.04619.21
5.4.440.0030.04519.50
5.4.430.0040.04319.46
5.4.420.0070.04019.21
5.4.410.0000.04619.05
5.4.400.0070.03719.07
5.4.390.0000.04719.05
5.4.380.0110.03718.88
5.4.370.0030.04718.82
5.4.360.0060.03819.15
5.4.350.0000.04918.91
5.4.340.0100.04018.98
5.4.320.0060.03918.85
5.4.310.0070.03419.08
5.4.300.0060.03618.97
5.4.290.0100.03319.04
5.4.280.0000.04119.07
5.4.270.0000.04618.90
5.4.260.0000.04618.88
5.4.250.0100.03619.08
5.4.240.0000.04018.88
5.4.230.0000.04418.90
5.4.220.0030.05118.83
5.4.210.0100.03319.00
5.4.200.0030.04619.01
5.4.190.0030.03919.05
5.4.180.0340.02719.13
5.4.170.0030.04019.13
5.4.160.0030.04518.80
5.4.150.0070.06419.00
5.4.140.0000.04016.55
5.4.130.0000.04016.52
5.4.120.0000.04716.66
5.4.110.0000.04116.66
5.4.100.0030.03416.58
5.4.90.0000.03816.50
5.4.80.0030.03316.56
5.4.70.0030.04416.64
5.4.60.0070.03116.64
5.4.50.0060.03216.48
5.4.40.0000.03816.41
5.4.30.0070.03316.54
5.4.20.0000.04016.62
5.4.10.0030.03416.47
5.4.00.0030.04216.00
5.3.290.0030.04214.84
5.3.280.0060.03514.84
5.3.270.0070.03214.84
5.3.260.0070.03614.84
5.3.250.0000.05014.84
5.3.240.0000.04014.84
5.3.230.0000.04114.84
5.3.220.0030.03514.84
5.3.210.0070.03614.84
5.3.200.0070.03314.84
5.3.190.0030.04114.84
5.3.180.0070.03114.84
5.3.170.0000.04414.84
5.3.160.0030.04314.84
5.3.150.0000.05014.84
5.3.140.0030.03714.84
5.3.130.0000.04314.84
5.3.120.0070.03314.84
5.3.110.0000.04414.84
5.3.100.0030.03514.84
5.3.90.0000.04714.84
5.3.80.0000.08214.84
5.3.70.0030.03614.84
5.3.60.0000.04014.84
5.3.50.0070.03314.84
5.3.40.0000.03814.84
5.3.30.0030.03914.84
5.3.20.0030.03414.84
5.3.10.0000.03514.84
5.3.00.0070.03414.84
5.2.170.0030.03514.84
5.2.160.0030.03314.84
5.2.150.0030.02914.84
5.2.140.0000.04414.84
5.2.130.0000.03014.84
5.2.120.0000.03014.84
5.2.110.0000.03214.84
5.2.100.0070.03014.84
5.2.90.0030.02914.84
5.2.80.0030.03414.84
5.2.70.0070.03814.84
5.2.60.0030.02814.84
5.2.50.0030.02714.84
5.2.40.0000.03514.84
5.2.30.0240.01714.84
5.2.20.0030.02914.84
5.2.10.0030.02614.84
5.2.00.0030.03514.84
5.1.60.0030.02414.84
5.1.50.0040.02214.84
5.1.40.0060.01914.84
5.1.30.0000.03714.84
5.1.20.0030.02514.84
5.1.10.0070.02414.84
5.1.00.0030.06614.84
5.0.50.0060.01514.84
5.0.40.0000.02114.84
5.0.30.0000.03214.84
5.0.20.0040.02214.84
5.0.10.0030.02114.84
5.0.00.0000.03314.84
4.4.90.0000.01614.84
4.4.80.0060.02514.84
4.4.70.0030.02014.84
4.4.60.0030.01314.84
4.4.50.0000.01714.84
4.4.40.0030.02914.84
4.4.30.0000.01914.84
4.4.20.0030.01514.84
4.4.10.0030.01314.84
4.4.00.0000.03014.84
4.3.110.0000.01614.84
4.3.100.0030.01314.84
4.3.90.0000.01614.84
4.3.80.0030.02814.84
4.3.70.0030.01614.84
4.3.60.0000.01514.84
4.3.50.0000.01714.84
4.3.40.0100.02214.84
4.3.30.0030.01314.84
4.3.20.0070.01014.84
4.3.10.0030.01314.84
4.3.00.0000.01914.84