3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir = '/GOOD/MORNING'; $url = 'HELLO/WORLD'; class functionCaller { public function caller($function, ...$args) { return call_user_func_array($function, $args); } } $fc = new functionCaller(); $file = <<<EOT $dir/{$fc->call('basename',$url)} EOT; echo $file;

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0100.00618.29
8.3.60.0110.00716.63
8.3.50.0110.00821.98
8.3.40.0070.00718.83
8.3.30.0000.01418.54
8.3.20.0000.00720.39
8.3.10.0080.00023.48
8.3.00.0040.00419.51
8.2.190.0000.01420.70
8.2.180.0090.00918.29
8.2.170.0040.01922.96
8.2.160.0070.00722.25
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00817.75
8.2.120.0000.00826.35
8.2.110.0030.00619.45
8.2.100.0040.00817.97
8.2.90.0000.00919.08
8.2.80.0050.00317.97
8.2.70.0030.00617.75
8.2.60.0080.00017.68
8.2.50.0040.00418.07
8.2.40.0050.00319.27
8.2.30.0040.00420.62
8.2.20.0040.00417.75
8.2.10.0050.00318.05
8.2.00.0040.00418.02
8.1.280.0170.00025.92
8.1.270.0060.00322.05
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00620.89
8.1.230.0110.00017.51
8.1.220.0060.00317.91
8.1.210.0050.00318.77
8.1.200.0100.00017.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00718.44
8.1.160.0040.00422.02
8.1.150.0000.00718.81
8.1.140.0030.00519.57
8.1.130.0040.00717.70
8.1.120.0000.00717.36
8.1.110.0040.00417.48
8.1.100.0040.00417.39
8.1.90.0000.00717.38
8.1.80.0000.00717.44
8.1.70.0070.00017.23
8.1.60.0080.00317.50
8.1.50.0000.00817.40
8.1.40.0000.00817.53
8.1.30.0040.00417.66
8.1.20.0000.00717.64
8.1.10.0050.00217.56
8.1.00.0000.00817.40
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.47
8.0.270.0030.00317.25
8.0.260.0080.00017.16
8.0.250.0020.00516.93
8.0.240.0040.00417.07
8.0.230.0060.00316.84
8.0.220.0000.00716.94
8.0.210.0000.00716.87
8.0.200.0030.00316.91
8.0.190.0040.00416.92
8.0.180.0050.00316.92
8.0.170.0000.00716.93
8.0.160.0000.00716.89
8.0.150.0040.00416.87
8.0.140.0030.00716.85
8.0.130.0090.00013.36
8.0.120.0030.00516.81
8.0.110.0040.00416.88
8.0.100.0040.00416.87
8.0.90.0040.00416.73
8.0.80.0070.00716.80
8.0.70.0050.00316.82
8.0.60.0040.00416.93
8.0.50.0000.00916.95
8.0.30.0080.00816.93
8.0.20.0090.01117.40
8.0.10.0060.00317.12
8.0.00.0120.00516.70
7.4.330.0050.00016.84
7.4.320.0000.00616.43
7.4.300.0030.00316.65
7.4.290.0030.00316.35
7.4.280.0000.00716.50
7.4.270.0070.00016.39
7.4.260.0050.00516.48
7.4.250.0030.00516.41
7.4.240.0070.00016.55
7.4.230.0000.00816.30
7.4.220.0070.01316.55
7.4.210.0100.00616.52
7.4.200.0050.00216.48
7.4.160.0080.00816.45
7.4.150.0060.01217.40
7.4.140.0140.00917.86
7.4.130.0160.00316.55
7.4.120.0120.00716.47
7.4.110.0040.01916.42
7.4.100.0180.00316.66
7.4.90.0060.01616.47
7.4.80.0110.00719.39
7.4.70.0170.00616.54
7.4.60.0090.00616.46
7.4.50.0030.01316.48
7.4.40.0080.00816.57
7.4.30.0090.00816.64
7.4.00.0060.00915.02
7.3.330.0050.00013.22
7.3.320.0030.00313.15
7.3.310.0070.00016.47
7.3.300.0000.00716.24
7.3.290.0080.00816.31
7.3.280.0090.00616.38
7.3.270.0090.00917.40
7.3.260.0090.00816.37
7.3.240.0070.01016.54
7.3.230.0080.00816.54
7.3.210.0130.00316.37
7.3.200.0070.01116.48
7.3.190.0030.01816.38
7.3.180.0120.00916.40
7.3.170.0060.01016.36
7.3.160.0070.01016.56
7.3.120.0040.01114.66
7.3.110.0110.00414.86
7.3.100.0030.01014.89
7.3.90.0000.01214.76
7.3.80.0030.00614.79
7.3.70.0030.00614.94
7.3.60.0030.00614.87
7.3.50.0000.01214.76
7.3.40.0000.01314.64
7.3.30.0060.00614.90
7.3.20.0030.01216.75
7.3.10.0000.01216.67
7.3.00.0000.01316.59
7.2.330.0000.01716.73
7.2.320.0060.01116.61
7.2.310.0100.00716.61
7.2.300.0030.01316.72
7.2.290.0110.00816.78
7.2.240.0060.00315.09
7.2.230.0140.00014.84
7.2.220.0060.00315.20
7.2.210.0000.01515.12
7.2.200.0030.01014.84
7.2.190.0000.01215.15
7.2.180.0030.00915.00
7.2.170.0030.01015.18
7.2.160.0060.00914.98
7.2.150.0000.01616.84
7.2.140.0030.01016.84
7.2.130.0080.00416.96
7.2.120.0100.00316.89
7.2.110.0090.00716.58
7.2.100.0030.00916.98
7.2.90.0070.00716.96
7.2.80.0110.00416.91
7.2.70.0000.01116.95
7.2.60.0040.01016.84
7.2.50.0130.00316.84
7.2.40.0090.00616.91
7.2.30.0030.01016.98
7.2.20.0050.00516.96
7.2.10.0130.00016.93
7.2.00.0030.01418.21
7.1.330.0000.01415.77
7.1.320.0000.01315.80
7.1.310.0030.01015.75
7.1.300.0040.01115.66
7.1.290.0090.00615.80
7.1.280.0070.00715.76
7.1.270.0030.01015.57
7.1.260.0000.01015.55
7.1.250.0030.01015.59
7.1.200.0050.00215.64
7.1.100.0050.01517.86
7.1.70.0060.00617.05
7.1.60.0070.01719.48
7.1.50.0110.01516.84
7.1.00.0070.07322.40
7.0.200.0300.01114.21
7.0.60.0070.08019.86
7.0.50.0030.08317.97
7.0.40.0070.08320.27
7.0.30.0200.08320.21
7.0.20.0470.07320.30
7.0.10.0170.03320.25
7.0.00.0070.07720.41
5.6.280.0070.06321.02
5.6.210.0030.07020.51
5.6.200.0030.05718.19
5.6.190.0100.08320.63
5.6.180.0330.07020.53
5.6.170.0330.07320.71
5.6.160.0070.04320.46
5.6.150.0070.05318.19
5.6.140.0100.07318.19
5.6.130.0030.07718.15
5.6.120.0070.08721.14
5.6.110.0100.08021.13
5.6.100.0070.03720.99
5.6.90.0030.05020.95
5.6.80.0100.03320.39
5.5.350.3870.03720.45
5.5.340.0070.07317.96
5.5.330.0070.06320.57
5.5.320.0100.08020.33
5.5.310.0170.04320.41
5.5.300.0070.08017.98
5.5.290.0070.05318.08
5.5.280.0130.07720.77
5.5.270.0070.05320.80
5.5.260.0100.08020.76
5.5.250.0100.05020.50
5.5.240.0230.07320.27

preferences:
69.41 ms | 401 KiB | 5 Q