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->caller('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.60.0120.00618.30
8.3.50.0150.00522.04
8.3.40.0120.00318.70
8.3.30.0040.01818.84
8.3.20.0050.00220.32
8.3.10.0040.00423.53
8.3.00.0080.00019.50
8.2.180.0140.00416.37
8.2.170.0070.01122.96
8.2.160.0110.00422.20
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0060.00317.63
8.2.120.0000.00826.35
8.2.110.0030.00722.26
8.2.100.0040.00817.86
8.2.90.0080.00017.84
8.2.80.0090.00017.97
8.2.70.0050.00317.50
8.2.60.0000.00917.80
8.2.50.0040.00418.07
8.2.40.0040.00419.43
8.2.30.0000.00720.51
8.2.20.0030.00617.77
8.2.10.0080.00017.99
8.2.00.0050.00318.11
8.1.280.0070.00725.92
8.1.270.0070.00323.72
8.1.260.0050.00228.09
8.1.250.0050.00328.09
8.1.240.0030.00622.46
8.1.230.0040.00820.78
8.1.220.0050.00317.79
8.1.210.0050.00318.88
8.1.200.0030.00617.13
8.1.190.0050.00317.35
8.1.180.0050.00218.10
8.1.170.0080.00018.77
8.1.160.0040.00421.94
8.1.150.0000.00718.86
8.1.140.0000.00819.51
8.1.130.0070.00317.55
8.1.120.0000.00717.41
8.1.110.0050.00317.35
8.1.100.0070.00017.40
8.1.90.0070.00017.39
8.1.80.0000.00717.22
8.1.70.0000.00717.25
8.1.60.0060.00317.55
8.1.50.0000.00817.52
8.1.40.0000.00917.54
8.1.30.0000.00817.54
8.1.20.0070.00317.62
8.1.10.0000.00717.54
8.1.00.0040.00417.48
8.0.300.0040.00419.98
8.0.290.0020.00516.75
8.0.280.0030.00318.45
8.0.270.0070.00017.29
8.0.260.0050.00217.25
8.0.250.0000.00716.90
8.0.240.0000.00716.92
8.0.230.0040.00416.92
8.0.220.0000.00716.97
8.0.210.0000.00717.01
8.0.200.0030.00316.93
8.0.190.0030.00517.04
8.0.180.0030.00617.03
8.0.170.0050.00316.82
8.0.160.0040.00417.03
8.0.150.0000.00816.82
8.0.140.0060.00316.91
8.0.130.0040.00413.40
8.0.120.0040.00416.80
8.0.110.0050.00316.90
8.0.100.0040.00416.90
8.0.90.0000.00816.83
8.0.80.0100.00416.94
8.0.70.0080.00016.96
8.0.60.0030.00516.98
8.0.50.0080.00016.93
8.0.30.0130.00717.12
8.0.20.0120.01117.40
8.0.10.0030.00616.99
8.0.00.0070.01016.84
7.4.330.0020.00216.82
7.4.320.0000.00616.51
7.4.300.0000.00616.39
7.4.290.0070.00016.58
7.4.280.0050.00216.57
7.4.270.0000.00716.58
7.4.260.0070.00016.58
7.4.250.0000.00816.39
7.4.240.0030.00416.57
7.4.230.0030.00316.64
7.4.220.0100.01016.58
7.4.210.0070.01016.44
7.4.200.0070.00016.61
7.4.160.0130.00916.51
7.4.150.0100.01017.40
7.4.140.0060.01217.86
7.4.130.0040.01416.56
7.4.120.0080.00816.55
7.4.110.0040.01716.36
7.4.100.0130.00316.73
7.4.90.0140.00316.57
7.4.80.0110.00719.39
7.4.70.0180.00416.39
7.4.60.0160.00016.43
7.4.50.0060.00916.30
7.4.40.0030.01316.52
7.4.30.0120.00616.67
7.4.00.0070.00714.83
7.3.330.0030.00313.30
7.3.320.0000.00613.40
7.3.310.0040.00416.27
7.3.300.0000.00716.27
7.3.290.0080.00716.30
7.3.280.0110.00616.31
7.3.270.0030.01517.40
7.3.260.0130.00316.51
7.3.240.0110.01016.38
7.3.230.0070.01016.46
7.3.210.0080.00816.42
7.3.200.0100.01016.63
7.3.190.0100.00716.43
7.3.180.0150.00616.36
7.3.170.0100.01016.41
7.3.160.0120.00916.56
7.2.330.0120.00616.75
7.2.320.0030.01416.41
7.2.310.0070.01016.73
7.2.300.0110.01116.33
7.2.290.0090.01216.38
7.2.00.0090.00919.34
7.1.100.0040.00717.91
7.1.70.0030.00517.03
7.1.60.0090.01619.48
7.1.50.0120.00916.70
7.1.00.0000.08022.33
7.0.200.0160.00414.56
7.0.60.0070.08019.86
7.0.50.0200.06017.87
7.0.40.0070.06320.02
7.0.30.0230.07720.25
7.0.20.0330.07320.19
7.0.10.0070.05720.24
7.0.00.0070.08320.19
5.6.280.0070.07021.15
5.6.210.0070.07320.57
5.6.200.0130.07318.28
5.6.190.0030.08720.67
5.6.180.0330.07320.60
5.6.170.0300.07720.54
5.6.160.0100.03320.71
5.6.150.0100.06718.21
5.6.140.0070.07318.27
5.6.130.0070.08718.25
5.6.120.0170.04021.00
5.6.110.0070.08720.98
5.6.100.0000.04321.02
5.6.90.0100.07020.95
5.6.80.0070.03320.51
5.5.350.4330.03720.38
5.5.340.0070.06018.02
5.5.330.0200.04020.43
5.5.320.0100.07720.24
5.5.310.0170.04320.34
5.5.300.0130.07717.99
5.5.290.0000.06317.94
5.5.280.0170.08020.77
5.5.270.0030.08720.79
5.5.260.0100.08320.64
5.5.250.0100.08020.62
5.5.240.0130.08020.29

preferences:
50.1 ms | 401 KiB | 5 Q