3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir = '/GOOD/MORNING'; $url = '/HELLO/WORLD'; class functionCaller { public static function caller($function, ...$args) { return call_user_func_array($function, $args); } } $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.0110.00718.55
8.3.50.0100.00921.99
8.3.40.0070.00718.71
8.3.30.0100.00718.80
8.3.20.0050.00220.23
8.3.10.0070.00023.45
8.3.00.0000.00819.33
8.2.180.0120.00916.75
8.2.170.0040.01122.96
8.2.160.0140.00022.25
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0100.00317.63
8.2.120.0060.00326.35
8.2.110.0100.00019.18
8.2.100.0110.00017.78
8.2.90.0040.00419.23
8.2.80.0060.00317.97
8.2.70.0060.00317.50
8.2.60.0080.00018.03
8.2.50.0090.00018.07
8.2.40.0040.00419.39
8.2.30.0040.00420.67
8.2.20.0000.00817.61
8.2.10.0000.00818.17
8.2.00.0090.00018.04
8.1.280.0120.00325.92
8.1.270.0090.00021.89
8.1.260.0050.00228.09
8.1.250.0080.00028.09
8.1.240.0030.00622.20
8.1.230.0080.00318.89
8.1.220.0050.00317.77
8.1.210.0050.00318.77
8.1.200.0000.00917.23
8.1.190.0050.00317.22
8.1.180.0050.00318.10
8.1.170.0000.00718.78
8.1.160.0070.00021.99
8.1.150.0000.00718.83
8.1.140.0040.00419.51
8.1.130.0030.00617.68
8.1.120.0040.00417.37
8.1.110.0040.00417.29
8.1.100.0070.00017.30
8.1.90.0070.00017.27
8.1.80.0050.00317.27
8.1.70.0030.00317.29
8.1.60.0090.00317.48
8.1.50.0050.00317.47
8.1.40.0000.00817.40
8.1.30.0040.00417.58
8.1.20.0040.00417.63
8.1.10.0040.00417.57
8.1.00.0000.00817.52
8.0.300.0040.00420.36
8.0.290.0030.00616.88
8.0.280.0000.00818.50
8.0.270.0070.00017.24
8.0.260.0050.00217.32
8.0.250.0000.00717.02
8.0.240.0050.00217.07
8.0.230.0030.00616.98
8.0.220.0070.00016.85
8.0.210.0000.00716.88
8.0.200.0030.00316.81
8.0.190.0030.00516.97
8.0.180.0040.00416.88
8.0.170.0040.00416.80
8.0.160.0000.00716.89
8.0.150.0000.00816.80
8.0.140.0080.00316.84
8.0.130.0050.00313.31
8.0.120.0050.00316.71
8.0.110.0000.00716.75
8.0.100.0000.00716.74
8.0.90.0000.00817.00
8.0.80.0030.01116.86
8.0.70.0040.00416.91
8.0.60.0070.00016.74
8.0.50.0040.00416.80
8.0.30.0120.00516.97
8.0.20.0070.01317.40
8.0.10.0040.00417.01
8.0.00.0080.01216.75
7.4.330.0020.00216.77
7.4.320.0000.00616.29
7.4.300.0000.00616.52
7.4.290.0000.00716.57
7.4.280.0030.00616.53
7.4.270.0070.00016.46
7.4.260.0000.00716.49
7.4.250.0030.00516.54
7.4.240.0020.00516.57
7.4.230.0000.00816.62
7.4.220.0090.01616.67
7.4.210.0090.00516.46
7.4.200.0000.00716.71
7.4.160.0060.01516.43
7.4.150.0110.01417.40
7.4.140.0050.01417.86
7.4.130.0110.00716.67
7.4.120.0120.00516.55
7.4.110.0120.00816.61
7.4.100.0050.01516.71
7.4.90.0060.01016.43
7.4.80.0070.01319.39
7.4.70.0100.01016.61
7.4.60.0090.00616.37
7.4.50.0080.00816.37
7.4.40.0000.01716.39
7.4.30.0140.00916.50
7.4.00.0050.01214.86
7.3.330.0060.00013.20
7.3.320.0030.00313.38
7.3.310.0000.00716.31
7.3.300.0050.00216.46
7.3.290.0050.00316.47
7.3.280.0130.00616.37
7.3.270.0150.00317.40
7.3.260.0090.00816.52
7.3.250.0120.00716.46
7.3.240.0130.01016.43
7.3.230.0070.01116.39
7.3.210.0130.00616.51
7.3.200.0130.00316.52
7.3.190.0070.01316.52
7.3.180.0090.00816.41
7.3.170.0140.00716.50
7.3.160.0110.01116.30
7.3.120.0070.01114.93
7.3.110.0030.01614.93
7.3.100.0000.01214.70
7.3.90.0060.01214.82
7.3.80.0080.00314.83
7.3.70.0060.01214.90
7.3.60.0070.00714.90
7.3.50.0100.00314.61
7.3.40.0090.00614.96
7.3.30.0040.01114.84
7.3.20.0040.01216.82
7.3.10.0120.00616.74
7.3.00.0070.00716.66
7.2.330.0110.00716.74
7.2.320.0070.01116.57
7.2.310.0040.01216.38
7.2.300.0150.01416.66
7.2.290.0100.00716.62
7.2.250.0140.00315.05
7.2.240.0060.01214.87
7.2.230.0060.00914.80
7.2.220.0000.01515.07
7.2.210.0030.01314.81
7.2.200.0040.00814.84
7.2.190.0070.00715.06
7.2.180.0040.00815.10
7.2.170.0080.00514.99
7.2.60.0000.01516.88
7.2.50.0230.00416.21
7.2.00.0070.00718.93
7.1.330.0070.01015.79
7.1.320.0080.00815.56
7.1.310.0070.01015.54
7.1.300.0060.00915.54
7.1.290.0080.00815.65
7.1.280.0030.01215.38
7.1.270.0000.01515.62
7.1.260.0080.00315.87
7.1.200.0000.01515.70
7.1.100.0120.00617.94
7.1.70.0030.00717.05
7.1.60.0170.00719.48
7.1.50.0130.01016.85
7.1.00.0030.07322.44
7.0.200.0080.00814.54
7.0.60.0070.08019.86
7.0.50.0000.07717.84
7.0.40.0130.07320.24
7.0.30.0230.04720.20
7.0.20.0300.08320.20
7.0.10.0030.04720.28
7.0.00.0070.08320.16
5.6.280.0030.07321.08
5.6.210.0100.05720.73
5.6.200.0030.05018.18
5.6.190.0100.08020.56
5.6.180.0230.04720.45
5.6.170.0230.08720.57
5.6.160.0000.04320.48
5.6.150.0100.07318.19
5.6.140.0070.06318.23
5.6.130.0100.08318.14
5.6.120.0070.06020.99
5.6.110.0030.09021.14
5.6.100.0070.09021.05
5.6.90.0100.08020.88
5.6.80.0100.05020.36
5.5.350.4430.03320.44
5.5.340.0070.05018.09
5.5.330.0030.08720.29
5.5.320.0000.08720.27
5.5.310.0230.04320.51
5.5.300.0070.07318.08
5.5.290.0200.07718.10
5.5.280.0070.09020.90
5.5.270.0030.04720.98
5.5.260.0070.09320.80
5.5.250.0170.07320.66
5.5.240.0200.07020.15

preferences:
54.65 ms | 401 KiB | 5 Q