3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //$str = "ryat\0".str_repeat('i',1024); //link('/in/01E2M','b'); $str = "/vmlinuz"; //var_dump(readlink($str)); var_dump(tempnam("/tmp", "FOOa\0/\0a")); //var_dump(basename("../"));

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.0130.00798.97
7.3.0rc30.1120.00716.17
7.3.0beta10.0150.00012.53
7.3.0alpha10.0100.00512.33
7.2.60.0110.00416.37
7.2.50.0040.00816.60
7.1.200.0090.00315.65
7.1.70.0060.00917.00
7.1.60.0090.01619.29
7.1.50.0130.00916.83
7.1.00.0000.08022.33
7.0.200.0000.01016.70
7.0.140.0070.06722.00
7.0.60.0100.08019.94
7.0.50.0070.05317.77
7.0.40.0070.08020.02
7.0.30.0230.05320.43
7.0.20.0330.07720.09
7.0.10.0100.04320.20
7.0.00.0100.08720.33
5.6.280.0070.07020.92
5.6.210.0100.07720.65
5.6.200.0130.04018.18
5.6.190.0130.07320.49
5.6.180.1970.04020.57
5.6.170.0230.06320.73
5.6.160.0130.04020.61
5.6.150.0070.04718.17
5.6.140.0030.06018.21
5.6.130.0100.05318.20
5.6.120.0030.05320.96
5.6.110.0030.09020.99
5.6.100.0100.08021.02
5.6.90.0070.08020.93
5.6.80.0100.06020.36
5.6.70.4230.03720.51
5.5.350.0000.03320.52
5.5.340.0030.04318.02
5.5.330.0000.08320.19
5.5.320.0330.05020.40
5.5.310.0300.07720.12
5.5.300.0100.07317.88
5.5.290.0070.04018.02
5.5.280.0070.06020.87
5.5.270.0100.08320.96
5.5.260.0070.07320.76
5.5.250.0030.04320.68
5.5.240.0170.05720.05
5.4.450.1370.03019.42
5.4.440.0430.06319.44
5.4.430.0700.05019.58
5.4.420.0200.04719.51
5.4.410.0100.07319.47
5.4.400.0800.04319.19
5.4.390.0770.06019.29
5.4.380.0200.05018.50
5.4.370.0170.07718.61
5.4.360.0270.05018.46
5.4.350.0200.05018.50
5.4.340.0230.05318.50
5.4.320.0070.03612.47
5.4.310.0060.03812.46
5.4.300.0080.03512.46
5.4.290.0110.04812.46
5.4.280.0030.04012.36
5.4.270.0070.03512.36
5.4.260.0050.04312.35
5.4.250.0060.03812.36
5.4.240.0080.03412.35
5.4.230.0070.04912.34
5.4.220.0030.03912.34
5.4.210.0060.03712.34
5.4.200.0050.04012.34
5.4.190.0060.03512.34
5.4.180.0080.03412.34
5.4.170.0050.03712.36
5.4.160.0040.03912.35
5.4.150.0040.04412.34
5.4.140.0060.03712.02
5.4.130.0040.03712.02
5.4.120.0050.03511.97
5.4.110.0090.03211.96
5.4.100.0050.03711.97
5.4.90.0050.03811.97
5.4.80.0050.03811.97
5.4.70.0080.03311.96
5.4.60.0060.03411.96
5.4.50.0030.04611.96
5.4.40.0060.03411.95
5.4.30.0060.04311.95
5.4.20.0040.03811.95
5.4.10.0090.03511.95
5.4.00.0060.03711.44
5.3.290.0070.04012.80
5.3.280.0050.03712.71
5.3.270.0030.04112.72
5.3.260.0040.04412.72
5.3.250.0050.03812.71
5.3.240.0070.03812.72
5.3.230.0060.03812.71
5.3.220.0030.04012.68
5.3.210.0050.04212.68
5.3.200.0060.03712.68
5.3.190.0070.03812.68
5.3.180.0030.03912.68
5.3.170.0040.03812.67
5.3.160.0080.03512.68
5.3.150.0050.03812.68
5.3.140.0060.03612.66
5.3.130.0070.03712.66
5.3.120.0080.04012.66
5.3.110.0090.03712.66
5.3.100.0100.04212.12
5.3.90.0040.03812.09
5.3.80.0060.03712.07
5.3.70.0080.03512.08
5.3.60.0060.04112.07
5.3.50.0090.03512.00
5.3.40.0020.04012.00
5.3.30.0070.03411.96
5.3.20.0060.03511.74
5.3.10.0030.03711.70
5.3.00.0050.03711.68
5.2.170.0040.0309.20
5.2.160.0040.0319.20
5.2.150.0040.0319.20
5.2.140.0030.0369.19
5.2.130.0060.0349.15
5.2.120.0080.0289.16
5.2.110.0030.0399.16
5.2.100.0060.0269.16
5.2.90.0080.0259.15
5.2.80.0040.0349.14
5.2.70.0060.0299.15
5.2.60.0040.0319.10
5.2.50.0060.0299.07
5.2.40.0040.0309.05
5.2.30.0040.0309.02
5.2.20.0050.0299.01
5.2.10.0030.0388.93
5.2.00.0050.0368.79
5.1.60.0030.0258.08
5.1.50.0080.0218.07
5.1.40.0040.0248.06
5.1.30.0050.0258.40
5.1.20.0060.0258.43
5.1.10.0060.0238.15
5.1.00.0060.0248.14
5.0.50.0030.0216.63
5.0.40.0020.0206.48
5.0.30.0040.0306.30
5.0.20.0050.0186.27
5.0.10.0060.0176.25
5.0.00.0050.0296.23
4.4.90.0020.0224.78
4.4.80.0040.0174.75
4.4.70.0030.0164.75
4.4.60.0030.0154.75
4.4.50.0010.0174.77
4.4.40.0030.0254.71
4.4.30.0020.0164.76
4.4.20.0040.0144.84
4.4.10.0040.0154.85
4.4.00.0050.0234.76
4.3.110.0060.0124.67
4.3.100.0030.0154.66
4.3.90.0020.0164.64
4.3.80.0020.0264.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0040.0154.63
4.3.40.0020.0284.54
4.3.30.0040.0143.29
4.3.20.0030.0153.27
4.3.10.0010.0173.23
4.3.00.0200.01313.14