3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strImageFile = "../a....//sdf/dfgh/dfgh.jpg"; // Actually fix the directory traversal vulnerability... while (strpos($strImageFile, "../") !== false) { $strImageFile = str_replace("../", "", $strImageFile); } print $strImageFile; ?>

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.0140.00718.43
8.3.50.0000.01416.50
8.3.40.0040.01118.72
8.3.30.0110.00418.50
8.3.20.0080.00020.21
8.3.10.0080.00023.33
8.3.00.0040.00417.80
8.2.180.0070.01018.17
8.2.170.0120.00322.96
8.2.160.0110.00420.11
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0030.00617.50
8.2.110.0040.00419.21
8.2.100.0110.00217.78
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0000.00917.92
8.2.50.0060.00318.07
8.2.40.0030.00619.34
8.2.30.0030.00622.46
8.2.20.0030.00617.66
8.2.10.0000.00818.16
8.2.00.0040.00418.16
8.1.280.0090.00625.92
8.1.270.0110.00723.75
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.98
8.1.230.0060.00617.46
8.1.220.0050.00317.77
8.1.210.0060.00318.77
8.1.200.0030.00617.13
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0060.00318.65
8.1.160.0040.00421.95
8.1.150.0070.00018.82
8.1.140.0050.00317.39
8.1.130.0070.00017.69
8.1.120.0030.00517.33
8.1.110.0030.00717.35
8.1.100.0000.00817.25
8.1.90.0020.00517.29
8.1.80.0040.00417.37
8.1.70.0030.00317.36
8.1.60.0000.00817.52
8.1.50.0080.00017.34
8.1.40.0050.00317.43
8.1.30.0040.00417.64
8.1.20.0040.00417.62
8.1.10.0090.00017.49
8.1.00.0070.00017.45
8.0.300.0020.00518.77
8.0.290.0080.00016.75
8.0.280.0040.00418.44
8.0.270.0000.00717.32
8.0.260.0030.00317.20
8.0.250.0000.00716.93
8.0.240.0030.00316.96
8.0.230.0030.00316.88
8.0.220.0030.00316.83
8.0.210.0000.00816.86
8.0.200.0030.00316.89
8.0.190.0040.00416.88
8.0.180.0040.00416.84
8.0.170.0000.00716.88
8.0.160.0030.00316.78
8.0.150.0000.00716.77
8.0.140.0070.00016.80
8.0.130.0030.00313.25
8.0.120.0030.00516.79
8.0.110.0070.00016.80
8.0.100.0090.00016.85
8.0.90.0000.00716.88
8.0.80.0100.00716.86
8.0.70.0040.00416.78
8.0.60.0000.00716.81
8.0.50.0000.00716.67
8.0.30.0030.01516.96
8.0.20.0070.01017.40
8.0.10.0040.00416.88
8.0.00.0100.01016.68
7.4.330.0000.00615.10
7.4.320.0000.00616.50
7.4.300.0030.00316.46
7.4.290.0030.00316.46
7.4.280.0080.00016.49
7.4.270.0000.00716.48
7.4.260.0040.00216.62
7.4.250.0000.00816.48
7.4.240.0050.00216.45
7.4.230.0030.00316.68
7.4.220.0120.01016.50
7.4.210.0030.01216.65
7.4.200.0030.00316.60
7.4.160.0110.00716.48
7.4.150.0100.00717.40
7.4.140.0100.00817.86
7.4.130.0080.00916.57
7.4.120.0060.01116.51
7.4.110.0140.00516.47
7.4.100.0150.00616.35
7.4.90.0100.00716.42
7.4.80.0100.01419.39
7.4.70.0180.00816.53
7.4.60.0090.00616.48
7.4.50.0040.00416.31
7.4.40.0170.00016.40
7.4.30.0160.00716.48
7.4.00.0050.01215.04
7.3.330.0030.00313.01
7.3.320.0000.00513.01
7.3.310.0030.00316.05
7.3.300.0000.00616.36
7.3.290.0080.00816.25
7.3.280.0130.00616.24
7.3.270.0110.00717.40
7.3.260.0160.00316.27
7.3.250.0060.01016.34
7.3.240.0070.01416.57
7.3.230.0090.00916.54
7.3.210.0060.01016.33
7.3.200.0040.01116.23
7.3.190.0150.00316.46
7.3.180.0090.00616.24
7.3.170.0120.00616.54
7.3.160.0090.00916.35
7.3.120.0090.00814.90
7.3.110.0050.01314.77
7.3.100.0080.00814.78
7.3.90.0020.00914.69
7.3.80.0070.00714.78
7.3.70.0050.01214.74
7.3.60.0100.00414.67
7.3.50.0060.00514.68
7.3.40.0050.01014.54
7.3.30.0050.00814.61
7.3.20.0060.00716.58
7.3.10.0090.00516.64
7.3.00.0080.00816.58
7.2.330.0170.00316.39
7.2.320.0110.00716.36
7.2.310.0100.01116.61
7.2.300.0140.00316.59
7.2.290.0090.01316.64
7.2.250.0090.00715.08
7.2.240.0080.00914.76
7.2.230.0030.01414.90
7.2.220.0040.01114.90
7.2.210.0060.00614.74
7.2.200.0080.00714.89
7.2.190.0020.01214.99
7.2.180.0080.00714.90
7.2.170.0020.01014.94
7.2.00.0060.00619.53
7.1.330.0100.00515.88
7.1.320.0080.00515.70
7.1.310.0020.01515.80
7.1.300.0030.00915.58
7.1.290.0060.00915.60
7.1.280.0020.01015.70
7.1.270.0060.00615.71
7.1.260.0100.00415.82
7.1.100.0040.00917.98
7.1.70.0000.00717.24
7.1.60.0060.01919.50
7.1.50.0030.01016.86
7.1.00.0070.07322.44
7.0.200.0190.00316.63
7.0.60.0100.03319.86
7.0.50.0070.08017.77
7.0.40.0030.07720.21
7.0.30.0270.05020.09
7.0.20.0300.04720.27
7.0.10.0070.04020.20
7.0.00.0100.04320.00
5.6.280.0000.03720.98
5.6.210.0030.04020.69
5.6.200.0070.07018.19
5.6.190.0000.04720.67
5.6.180.0170.09020.41
5.6.170.0130.05320.62
5.6.160.0030.08720.31
5.6.150.0030.03718.11
5.6.140.0000.09018.13
5.6.130.0030.08318.11
5.6.120.0100.04321.07
5.6.110.0100.08720.89
5.6.100.0070.03721.08
5.6.90.0030.04721.00
5.6.80.0030.04020.50
5.5.350.0070.07320.43
5.5.340.0130.07717.95
5.5.330.0070.08320.19
5.5.320.0370.05020.17
5.5.310.0270.08320.25
5.5.300.0030.04018.00
5.5.290.0030.06717.91
5.5.280.0070.04020.79
5.5.270.0070.08320.94
5.5.260.0100.07320.95
5.5.250.0070.08320.68
5.5.240.0030.04020.15
5.4.450.0770.05719.12
5.4.440.0700.05719.24
5.4.430.0800.04319.58
5.4.420.0770.05319.10
5.4.410.0900.05319.13
5.4.400.0730.05019.31
5.4.390.0630.06319.30
5.4.380.0700.05318.79
5.4.370.0730.04719.16
5.4.360.0730.05019.14
5.4.350.0770.04319.09
5.4.340.0700.05019.13
5.4.320.0800.04719.23
5.4.310.0670.05319.19
5.4.300.0730.04718.94
5.4.290.0700.06019.08
5.4.280.0670.06019.25
5.4.270.0630.05719.22
5.4.260.0600.06319.18
5.4.250.0670.05319.25
5.4.240.0830.05718.80
5.4.230.0800.07019.18
5.4.220.0730.05019.14
5.4.210.0730.05019.14
5.4.200.0100.05319.30
5.4.190.0100.05019.12
5.4.180.0200.07018.77
5.4.170.0870.04019.18
5.4.160.0630.05019.20
5.4.150.0430.06318.92
5.4.140.0130.04716.39
5.4.130.0100.04716.21
5.4.120.0500.05316.44
5.4.110.0570.05716.54
5.4.100.0200.05716.06
5.4.90.0070.05316.34
5.4.80.0430.05316.45
5.4.70.0200.04716.37
5.4.60.0030.03716.40
5.4.50.0030.07316.36
5.4.40.0200.04716.36
5.4.30.0270.07016.31
5.4.20.0230.04016.19

preferences:
47.11 ms | 400 KiB | 5 Q