3v4l.org

run code in 300+ PHP versions simultaneously
<?php $storagedir = '/vagrant/www/resource-space/include/../filestore'; $dir_file_path = '/vagrant/www/resource-space/include/../filestore/2/4/0_ed2583e62f4dc12/240_b69bd79a9431acc.jpeg'; $filename_rootpath = ltrim(str_replace($storagedir, '', $dir_file_path), '/'); $filename = substr($filename_rootpath, (strrpos($filename_rootpath, '/') - 1));var_dump($filename); $extension = substr($filename, (strrpos($filename_rootpath, '.') - 1));var_dump($extension);

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.0070.00716.58
8.3.60.0100.01018.43
8.3.50.0230.00721.08
8.3.40.0110.00418.58
8.3.30.0090.00620.32
8.3.20.0040.00420.29
8.3.10.0040.00421.79
8.3.00.0040.00422.44
8.2.180.0120.00316.63
8.2.170.0140.00722.96
8.2.160.0000.01422.27
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0110.00726.16
8.2.120.0060.00321.13
8.2.110.0000.00920.96
8.2.100.0040.00817.78
8.2.90.0050.00317.50
8.2.80.0000.00917.97
8.2.70.0030.00617.80
8.2.60.0000.00818.04
8.2.50.0090.00019.36
8.2.40.0000.00820.49
8.2.30.0030.00619.31
8.2.20.0000.00717.63
8.2.10.0000.00817.79
8.2.00.0040.00417.68
8.1.280.0100.00325.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.10
8.1.230.0070.01019.17
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0100.00017.22
8.1.190.0100.00017.00
8.1.180.0060.00318.10
8.1.170.0080.00018.59
8.1.160.0070.00020.52
8.1.150.0000.00718.50
8.1.140.0000.00717.44
8.1.130.0070.00017.83
8.1.120.0000.00717.34
8.1.110.0000.00717.41
8.1.100.0070.00017.31
8.1.90.0050.00217.30
8.1.80.0000.00717.41
8.1.70.0000.00717.36
8.1.60.0040.00417.54
8.1.50.0040.00417.47
8.1.40.0000.00717.44
8.1.30.0060.00317.55
8.1.20.0090.00017.47
8.1.10.0070.00017.44
8.1.00.0000.00817.40
8.0.300.0060.00321.33
8.0.290.0050.00316.58
8.0.280.0000.00718.25
8.0.270.0070.00017.19
8.0.260.0030.00316.80
8.0.250.0030.00316.89
8.0.240.0080.00016.80
8.0.230.0070.00016.77
8.0.220.0040.00416.70
8.0.210.0040.00416.80
8.0.200.0040.00416.81
8.0.190.0000.00716.89
8.0.180.0070.00016.74
8.0.170.0050.00316.84
8.0.160.0000.00716.68
8.0.150.0040.00416.78
8.0.140.0000.00716.76
8.0.130.0000.00813.22
8.0.120.0000.00716.79
8.0.110.0040.00416.83
8.0.100.0040.00416.78
8.0.90.0000.00716.80
8.0.80.0090.00616.80
8.0.70.0050.00216.79
8.0.60.0030.00516.78
8.0.50.0070.00016.87
8.0.30.0070.01316.91
8.0.20.0060.01217.40
8.0.10.0000.00716.84
8.0.00.0090.00916.64
7.4.330.0020.00215.00
7.4.320.0060.00016.46
7.4.300.0030.00316.54
7.4.290.0040.00416.45
7.4.280.0060.00016.36
7.4.270.0000.00716.59
7.4.260.0000.00513.28
7.4.250.0040.00416.39
7.4.240.0040.00416.49
7.4.230.0030.00316.64
7.4.220.0070.01016.54
7.4.210.0070.00916.51
7.4.200.0000.00716.52
7.4.190.0030.00316.62
7.4.160.0070.01116.25
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0050.01316.44
7.4.120.0080.01016.42
7.4.110.0090.00916.50
7.4.100.0040.01416.63
7.4.90.0090.01216.46
7.4.80.0130.00319.39
7.4.70.0110.00716.30
7.4.60.0080.00816.40
7.4.50.0060.00316.28
7.4.40.0100.00322.77
7.4.30.0070.00916.62
7.4.00.0070.01014.72
7.3.330.0020.00513.04
7.3.320.0050.00013.11
7.3.310.0000.00716.34
7.3.300.0000.00616.25
7.3.290.0070.00816.31
7.3.280.0100.00716.20
7.3.270.0100.00717.40
7.3.260.0100.00716.44
7.3.250.0090.00816.49
7.3.240.0130.00616.44
7.3.230.0100.00716.39
7.3.210.0130.00316.48
7.3.200.0160.00619.39
7.3.190.0110.00616.20
7.3.180.0040.01116.13
7.3.170.0080.00816.27
7.3.160.0110.00516.30
7.3.120.0040.01114.85
7.3.10.0100.00316.40
7.3.00.0030.01016.53
7.2.330.0090.00916.35
7.2.320.0030.01416.51
7.2.310.0090.00916.70
7.2.300.0080.00816.57
7.2.290.0130.00316.30
7.2.130.0030.01216.88
7.2.120.0050.00716.89
7.2.110.0090.00216.81
7.2.100.0060.00316.78
7.2.90.0030.01016.92
7.2.80.0030.00716.93
7.2.70.0080.00616.67
7.2.60.0070.00516.84
7.2.50.0070.00316.81
7.2.40.0000.01216.69
7.2.30.0080.00616.84
7.2.20.0070.00716.74
7.2.10.0060.00816.89
7.2.00.0020.01017.55
7.1.250.0020.01015.59
7.1.200.0060.00815.30
7.1.100.0030.01218.20
7.1.70.0000.00717.07
7.1.60.0140.01019.32
7.1.50.0130.00316.86
7.1.00.0030.03322.43
7.0.200.0000.01016.91
7.0.140.0030.07322.09
7.0.110.0130.07719.91
7.0.100.0100.07320.01
7.0.90.0530.06320.06
7.0.80.0570.07019.89
7.0.70.0600.08319.90
7.0.60.0670.07719.89
7.0.50.0670.07020.26
7.0.40.0170.07020.13
7.0.30.0030.08720.28
7.0.20.0100.08020.04
7.0.10.0030.07020.15
7.0.00.0130.08020.15
5.6.280.0070.09320.99
5.6.250.0100.08020.66
5.6.240.0130.06720.55
5.6.230.0030.04320.69
5.6.220.0030.08320.61
5.6.210.0100.07020.73
5.6.200.0100.07320.94
5.6.190.0130.08321.11
5.6.180.0100.08020.95
5.6.170.0030.08721.28
5.6.160.0030.09021.14
5.6.150.0070.07321.08
5.6.140.0100.07721.18
5.6.130.0070.09021.06
5.6.120.0070.07721.04
5.6.110.0100.05321.17
5.6.100.0100.08021.01
5.6.90.0070.08720.93
5.6.80.0130.07320.40
5.6.70.0070.07320.45
5.6.60.0030.04320.35
5.6.50.0130.07020.33
5.6.40.0270.06020.43
5.6.30.0000.05320.57
5.6.20.0070.04720.31
5.6.10.0170.07320.34
5.6.00.0170.06720.55
5.5.380.0170.07320.41
5.5.370.0100.07020.27
5.5.360.0130.07320.36
5.5.350.0130.08320.42
5.5.340.0070.08320.78
5.5.330.0070.07720.81
5.5.320.0100.07320.92
5.5.310.0000.09021.04
5.5.300.0100.07720.98
5.5.290.0000.09021.02
5.5.280.0200.07020.89
5.5.270.0100.07720.90
5.5.260.0030.06020.76
5.5.250.0100.08020.78
5.5.240.0230.06320.41
5.5.230.0070.08020.27
5.5.220.0100.07320.40
5.5.210.0070.07320.29
5.5.200.0070.07720.16
5.5.190.0070.08020.15
5.5.180.0070.07720.21
5.5.160.0130.06720.15
5.5.150.0070.07320.23
5.5.140.0070.08020.38
5.5.130.0130.06020.21
5.5.120.0070.08020.25
5.5.110.0130.08020.12
5.5.100.0000.08720.02
5.5.90.0070.07020.16
5.5.80.0170.06720.00
5.5.70.0100.08020.13
5.5.60.0130.07319.93
5.5.50.0230.06020.02
5.5.40.0030.08020.20
5.5.30.0100.07720.11
5.5.20.0030.05720.14
5.5.10.0170.07020.22
5.5.00.0030.08320.21
5.4.450.0170.07719.36
5.4.440.0100.07719.49
5.4.430.0100.07719.26
5.4.420.0070.07719.23
5.4.410.0170.04719.16
5.4.400.0100.06718.95
5.4.390.0070.05319.10
5.4.380.0100.07718.95
5.4.370.0030.08019.02
5.4.360.0070.06318.93
5.4.350.0030.06319.27
5.4.340.0030.07719.01
5.4.320.0070.05318.98
5.4.310.0000.08319.25
5.4.300.0100.07318.98
5.4.290.0130.07018.98
5.4.280.0130.07718.95
5.4.270.0130.07319.27
5.4.260.0000.05719.11
5.4.250.0130.06319.11
5.4.240.0030.07719.11
5.4.230.0030.08019.24
5.4.220.0100.07018.93
5.4.210.0070.04019.07
5.4.200.0200.05019.19
5.4.190.0030.06719.15
5.4.180.0070.05318.94
5.4.170.0100.07319.02
5.4.160.0130.03719.02
5.4.150.0100.07719.00
5.4.140.0130.05716.42
5.4.130.0100.06716.33
5.4.120.0030.07316.42
5.4.110.0000.07716.40
5.4.100.0200.06016.41
5.4.90.0030.07716.48
5.4.80.0030.07316.48
5.4.70.0130.06316.27
5.4.60.0030.07316.50
5.4.50.0070.06716.34
5.4.40.0070.04016.23
5.4.30.0070.07016.46
5.4.20.0100.07016.47
5.4.10.0070.07316.12
5.4.00.0100.06715.87
5.3.290.0100.07714.61
5.3.280.0100.07014.61
5.3.270.0000.05014.50
5.3.260.0100.07714.53
5.3.250.0030.07714.49
5.3.240.0100.06714.60
5.3.230.0000.07314.66
5.3.220.0070.07314.39
5.3.210.0000.07314.39
5.3.200.0130.07314.58
5.3.190.0070.06714.57
5.3.180.0030.07314.67
5.3.170.0070.07014.50
5.3.160.0000.07714.66
5.3.150.0100.07014.43
5.3.140.0100.07314.57
5.3.130.0100.07014.49
5.3.120.0070.07314.37
5.3.110.0100.05714.57
5.3.100.0130.06013.91
5.3.90.0100.07014.12
5.3.80.0170.06714.07
5.3.70.0030.07313.96
5.3.60.0100.07013.94
5.3.50.0170.05713.82
5.3.40.0030.07013.96
5.3.30.0070.07013.73
5.3.20.0200.05713.55
5.3.10.0070.06013.67
5.3.00.0070.07013.42
5.2.170.0000.06311.04
5.2.160.0030.05311.07
5.2.150.0030.06710.93
5.2.140.0070.03711.09
5.2.130.0070.05011.16
5.2.120.0030.06311.05
5.2.110.0030.06011.06
5.2.100.0070.06011.02
5.2.90.0100.05711.04
5.2.80.0070.06011.09
5.2.70.0070.05310.88
5.2.60.0030.05710.99
5.2.50.0070.03711.09
5.2.40.0130.05011.15
5.2.30.0030.04010.93
5.2.20.0070.06010.88
5.2.10.0000.06310.77
5.2.00.0070.04010.61
5.1.60.0000.06010.00
5.1.50.0030.05010.06
5.1.40.0070.0509.90
5.1.30.0070.05010.26
5.1.20.0030.04310.34
5.1.10.0070.05310.23
5.1.00.0070.05310.00
5.0.50.0030.0438.52
5.0.40.0000.0478.30
5.0.30.0200.0538.18
5.0.20.0030.0408.18
5.0.10.0030.0438.13
5.0.00.0000.0638.13
4.4.90.0030.0338.11
4.4.80.0000.0378.11
4.4.70.0030.0338.11
4.4.60.0000.0408.11
4.4.50.0000.0378.11
4.4.40.0030.0538.11
4.4.30.0000.0408.11
4.4.20.0030.0338.11
4.4.10.0000.0378.11
4.4.00.0030.0538.11
4.3.110.0000.0378.11
4.3.100.0100.0278.11
4.3.90.0130.0278.11
4.3.80.0030.0308.11
4.3.70.0070.0338.11
4.3.60.0070.0238.11
4.3.50.0030.0338.11
4.3.40.0030.0508.11
4.3.30.0000.0278.11
4.3.20.0030.0308.11
4.3.10.0070.0308.11
4.3.00.0030.0238.11

preferences:
38.09 ms | 401 KiB | 5 Q