3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $path = 'www.example.com/public_html/index.php'; echo strrchr($path, "/"); ?>

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.00.0100.00316.50
7.2.130.0070.00716.85
7.2.120.0120.00316.44
7.2.110.0060.01216.50
7.2.100.0040.00416.51
7.2.90.0000.00816.58
7.2.80.0140.00016.52
7.2.70.0060.00616.88
7.2.60.0060.00716.65
7.2.50.0060.00916.48
7.2.40.0110.00316.82
7.2.30.0030.00616.88
7.2.20.0090.00616.64
7.2.10.0040.00416.26
7.2.00.0100.00518.03
7.1.250.0130.00315.63
7.1.240.0090.00615.50
7.1.230.0080.00415.55
7.1.220.0120.00615.64
7.1.210.0000.01715.68
7.1.200.0060.00715.75
7.1.190.0040.00415.76
7.1.180.0030.00915.68
7.1.170.0040.00715.59
7.1.160.0050.00515.45
7.1.150.0100.00315.61
7.1.140.0030.00715.80
7.1.130.0040.00415.72
7.1.120.0070.00415.81
7.1.110.0040.00815.68
7.1.100.0020.00816.86
7.1.90.0030.00615.64
7.1.80.0080.00315.65
7.1.70.0040.00716.43
7.1.60.0000.01717.69
7.1.50.0100.00316.29
7.1.40.0050.01415.71
7.1.30.0130.00815.41
7.1.20.0160.00315.39
7.1.10.0120.00615.42
7.1.00.0030.04418.81
7.0.330.0000.01315.24
7.0.320.0030.00515.14
7.0.310.0090.00615.20
7.0.300.0030.01015.16
7.0.290.0000.00915.38
7.0.280.0090.00615.15
7.0.270.0070.01115.24
7.0.260.0030.00815.23
7.0.250.0060.00615.38
7.0.240.0060.00615.18
7.0.230.0060.00314.93
7.0.220.0000.01215.07
7.0.210.0050.00515.18
7.0.200.0100.00116.10
7.0.190.0070.00715.33
7.0.180.0060.00315.30
7.0.170.0080.00315.20
7.0.160.0090.00014.71
7.0.150.0080.00415.11
7.0.140.0080.03818.61
7.0.130.0090.00314.95
7.0.120.0060.01015.15
7.0.110.0060.00615.29
7.0.100.0000.01415.31
7.0.90.0100.00315.49
7.0.80.0070.00715.54
7.0.70.0130.00015.47
7.0.60.0060.03617.61
7.0.50.0050.03716.67
7.0.40.0050.04816.69
7.0.30.0190.02516.82
7.0.20.0180.04116.71
7.0.10.0200.04016.78
7.0.00.0050.04716.77
5.6.380.0030.01414.20
5.6.370.0070.00313.88
5.6.360.0060.00313.88
5.6.350.0050.00213.79
5.6.340.0080.00814.30
5.6.330.0040.00713.97
5.6.320.0060.00314.00
5.6.310.0030.00914.12
5.6.300.0040.00814.20
5.6.290.0070.00014.05
5.6.280.0040.03917.42
5.6.270.0000.00913.90
5.6.260.0070.00714.23
5.6.250.0000.01013.98
5.6.240.0090.00614.14
5.6.230.0040.01114.00
5.6.220.0080.00014.25
5.6.210.0050.02317.41
5.6.200.0050.03416.08
5.6.190.0020.02717.42
5.6.180.1450.01817.39
5.6.170.0160.03717.29
5.6.160.0050.02517.28
5.6.150.0090.04016.09
5.6.140.0080.04516.06
5.6.130.0070.03216.10
5.6.120.0030.03217.50
5.6.110.0050.02317.55
5.6.100.0070.04017.62
5.6.90.0040.04717.64
5.6.80.0050.04517.10
5.6.70.0180.02817.26
5.6.60.0000.00813.93
5.6.50.0030.00914.04
5.6.40.0080.00314.05
5.6.30.0040.00713.98
5.6.20.0050.00513.91
5.6.10.0040.00713.89
5.6.00.0030.01013.80
5.5.380.0040.00410.92
5.5.370.0000.00711.05
5.5.360.0000.00811.11
5.5.350.0080.02115.61
5.5.340.0080.04114.41
5.5.330.0020.04515.55
5.5.320.0120.03015.74
5.5.310.0130.02315.60
5.5.300.0080.01814.44
5.5.290.0050.04214.45
5.5.280.0080.03415.93
5.5.270.0030.04715.90
5.5.260.0060.02515.93
5.5.250.0080.04215.79
5.5.240.0050.04515.56
5.5.230.0030.00310.90
5.5.220.0000.00710.90
5.5.210.0040.00410.90
5.5.200.0050.00310.90
5.5.190.0100.00010.90
5.5.180.0060.00310.90
5.5.170.0000.00910.90
5.5.160.0030.00610.90
5.5.150.0040.00410.90
5.5.140.0040.00410.90
5.5.130.0070.00010.90
5.5.120.0040.00410.90
5.5.110.0030.00610.90
5.5.100.0000.00510.90
5.5.90.0000.01010.90
5.5.80.0060.00010.90
5.5.70.0040.00410.90
5.5.60.0040.00410.90
5.5.50.0000.00810.90
5.5.40.0030.00610.90
5.5.30.0030.00310.90
5.5.20.0040.00410.93
5.5.10.0040.00410.90
5.5.00.0070.00310.90
5.4.450.0550.02715.12
5.4.440.0380.03115.24
5.4.430.0550.03315.28
5.4.420.0320.00415.20
5.4.410.0080.03014.95
5.4.400.0140.03214.84
5.4.390.0130.03814.69
5.4.380.0100.02614.71
5.4.370.0090.02014.68
5.4.360.0050.02614.80
5.4.350.0050.03011.44
5.4.340.0050.02311.43
5.4.330.0070.00011.02
5.4.320.0050.02411.70
5.4.310.0030.02311.67
5.4.300.0080.02311.71
5.4.290.0090.02511.67
5.4.280.0050.02911.62
5.4.270.0110.02911.62
5.4.260.0040.02311.62
5.4.250.0070.02511.62
5.4.240.0070.02011.62
5.4.230.0070.02211.62
5.4.220.0070.02111.62
5.4.210.0040.02211.63
5.4.200.0060.02211.62
5.4.190.0100.01811.62
5.4.180.0070.02811.62
5.4.170.0070.02911.62
5.4.160.0050.02711.62
5.4.150.0080.02511.62
5.4.140.0070.03111.46
5.4.130.0050.02511.46
5.4.120.0070.02211.43
5.4.110.0040.03411.43
5.4.100.0050.02811.43
5.4.90.0070.02411.47
5.4.80.0050.02111.47
5.4.70.0070.03211.43
5.4.60.0100.04411.43
5.4.50.0030.02911.43
5.4.40.0090.04611.42
5.4.30.0080.02011.42
5.4.20.0100.02511.42
5.4.10.0070.04311.42
5.4.00.0080.02611.17
5.3.290.0040.02311.85
5.3.280.0100.03611.80
5.3.270.0080.03811.81
5.3.260.0070.04111.81
5.3.250.0140.04711.81
5.3.240.0050.03511.81
5.3.230.0040.03911.80
5.3.220.0100.03311.79
5.3.210.0080.03411.79
5.3.200.0080.02611.79
5.3.190.0080.03311.79
5.3.180.0080.02711.79
5.3.170.0090.03211.79
5.3.160.0070.02411.79
5.3.150.0090.03011.79
5.3.140.0050.02711.78
5.3.130.0060.02211.78
5.3.120.0070.04011.78
5.3.110.0040.03111.78
5.3.100.0080.03111.51
5.3.90.0150.03511.49
5.3.80.0100.02511.49
5.3.70.0090.02511.49
5.3.60.0060.03111.48
5.3.50.0050.02511.45
5.3.40.0100.03311.45
5.3.30.0060.03411.42
5.3.20.0030.02611.31
5.3.10.0070.02011.29
5.3.00.0050.02311.29
5.2.170.0060.01710.04
5.2.160.0040.02110.04
5.2.150.0040.02210.04
5.2.140.0050.02310.03
5.2.130.0050.01810.01
5.2.120.0030.02010.01
5.2.110.0020.01810.02
5.2.100.0050.01810.02
5.2.90.0070.01510.02
5.2.80.0050.01810.01
5.2.70.0080.02810.01
5.2.60.0070.0199.99
5.2.50.0070.0159.98
5.2.40.0020.0229.96
5.2.30.0020.0199.95
5.2.20.0020.0199.95
5.2.10.0080.0179.91
5.2.00.0020.0269.83
5.1.60.0040.0229.48
5.1.50.0030.0239.48
5.1.40.0050.0269.47
5.1.30.0080.0449.64
5.1.20.0050.0329.65
5.1.10.0060.0319.52
5.1.00.0060.0279.52
5.0.50.0070.0288.75
5.0.40.0030.0158.68
5.0.30.0040.0218.59
5.0.20.0020.0168.58
5.0.10.0030.0178.57
5.0.00.0070.0278.56
4.4.90.0050.0197.84
4.4.80.0040.0237.83
4.4.70.0020.0187.83
4.4.60.0030.0137.83
4.4.50.0050.0117.84
4.4.40.0040.0187.80
4.4.30.0020.0127.83
4.4.20.0050.0217.87
4.4.10.0040.0217.88
4.4.00.0030.0167.83
4.3.110.0020.0127.78
4.3.100.0030.0097.78
4.3.90.0030.0107.77
4.3.80.0050.0127.74
4.3.70.0020.0107.77
4.3.60.0020.0107.76
4.3.50.0020.0127.76
4.3.40.0020.0167.72
4.3.30.0010.0147.09
4.3.20.0030.0107.08
4.3.10.0030.0097.06
4.3.00.0020.01013.91