3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stringToReplace = 'file.d201e40220-u162540.jpg'; $string = substr_replace($stringToReplace, "", 4, 18); echo $string;

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.40.0070.01018.71
8.3.30.0070.01018.43
8.3.20.0040.00418.56
8.3.10.0040.00420.36
8.3.00.0040.00419.13
8.2.170.0100.00322.96
8.2.160.0070.00721.98
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0000.00726.16
8.2.120.0070.00019.82
8.2.110.0060.00322.23
8.2.100.0080.00417.78
8.2.90.0000.00719.05
8.2.80.0050.00318.05
8.2.70.0040.00417.50
8.2.60.0050.00317.93
8.2.50.0000.00918.07
8.2.40.0000.00818.16
8.2.30.0060.00319.79
8.2.20.0050.00217.63
8.2.10.0040.00417.79
8.2.00.0050.00217.70
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00320.61
8.1.230.0040.00820.96
8.1.220.0040.00418.77
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0040.00417.39
8.1.180.0040.00418.10
8.1.170.0040.00418.77
8.1.160.0000.00718.69
8.1.150.0040.00418.58
8.1.140.0040.00417.35
8.1.130.0070.00017.77
8.1.120.0050.00217.32
8.1.110.0040.00417.37
8.1.100.0040.00417.34
8.1.90.0040.00417.29
8.1.80.0000.00717.40
8.1.70.0080.00017.28
8.1.60.0000.00817.58
8.1.50.0050.00317.43
8.1.40.0000.00717.48
8.1.30.0000.00717.46
8.1.20.0090.00017.54
8.1.10.0080.00017.45
8.1.00.0030.00517.29
8.0.300.0090.00020.02
8.0.290.0040.00416.75
8.0.280.0070.00018.37
8.0.270.0040.00417.35
8.0.260.0080.00018.59
8.0.250.0070.00016.94
8.0.240.0030.00716.88
8.0.230.0070.00016.84
8.0.220.0000.00716.72
8.0.210.0000.00816.77
8.0.200.0000.00716.77
8.0.190.0000.00716.84
8.0.180.0000.00716.73
8.0.170.0040.00416.88
8.0.160.0050.00316.82
8.0.150.0040.00416.78
8.0.140.0000.00816.71
8.0.130.0030.00313.24
8.0.120.0040.00416.67
8.0.110.0080.00016.89
8.0.100.0070.00016.76
8.0.90.0080.00016.84
8.0.80.0040.01116.73
8.0.70.0000.00716.81
8.0.60.0000.00716.89
8.0.50.0000.00716.88
8.0.30.0120.01016.84
8.0.20.0130.00717.40
8.0.10.0000.00716.92
8.0.00.0080.01016.74
7.4.330.0050.00013.43
7.4.320.0030.00316.45
7.4.300.0080.00016.45
7.4.290.0030.00316.57
7.4.280.0040.00416.54
7.4.270.0030.00316.45
7.4.260.0000.00513.19
7.4.250.0050.00316.41
7.4.240.0040.00416.40
7.4.230.0030.00316.39
7.4.220.0090.01316.41
7.4.210.0100.00716.44
7.4.200.0030.00316.33
7.4.190.0040.00416.52
7.4.160.0080.01016.48
7.4.150.0100.01617.40
7.4.140.0130.00517.12
7.4.130.0080.00916.40
7.4.120.0100.00716.43
7.4.110.0130.00416.34
7.4.100.0120.00616.49
7.4.90.0100.00716.44
7.4.80.0080.00819.03
7.4.70.0060.01216.30
7.4.60.0100.00716.46
7.4.50.0050.00316.42
7.4.40.0040.01122.27
7.4.30.0030.01316.36
7.4.00.0090.00615.05
7.3.330.0020.00213.07
7.3.320.0000.00513.05
7.3.310.0070.00016.02
7.3.300.0040.00416.18
7.3.290.0130.00716.16
7.3.280.0030.01516.18
7.3.270.0130.00517.40
7.3.260.0110.00518.24
7.3.250.0120.00516.26
7.3.240.0120.00916.41
7.3.230.0110.00616.39
7.3.210.0120.00616.13
7.3.200.0130.00319.39
7.3.190.0180.00316.49
7.3.180.0120.00316.45
7.3.170.0130.00316.30
7.3.160.0070.01016.11
7.3.120.0060.00814.92
7.3.00.0030.01016.53
7.2.330.0120.00616.34
7.2.320.0110.00816.66
7.2.310.0130.01016.28
7.2.300.0080.00816.46
7.2.290.0090.00816.52
7.2.130.0030.00716.85
7.2.120.0030.01016.65
7.2.110.0030.01016.90
7.2.100.0080.00316.62
7.2.90.0090.00616.80
7.2.80.0000.00916.55
7.2.70.0030.00916.85
7.2.60.0050.00816.99
7.2.50.0070.01016.98
7.2.40.0090.00316.86
7.2.30.0030.00916.59
7.2.20.0060.00616.55
7.2.10.0100.00316.59
7.2.00.0090.00718.10
7.1.250.0140.00015.71
7.1.240.0090.00315.89
7.1.230.0060.00315.57
7.1.220.0070.00715.52
7.1.210.0030.00715.83
7.1.200.0040.00715.76
7.1.190.0030.00615.60
7.1.180.0090.00415.77
7.1.170.0140.00315.53
7.1.160.0000.00915.63
7.1.150.0030.01015.57
7.1.140.0070.00715.59
7.1.130.0040.00815.52
7.1.120.0070.00415.75
7.1.110.0040.00815.63
7.1.100.0060.00516.89
7.1.90.0050.00815.67
7.1.80.0000.01115.56
7.1.70.0010.00716.31
7.1.60.0030.01017.52
7.1.50.0050.01216.30
7.1.40.0070.00715.68
7.1.30.0000.00915.34
7.1.20.0040.00815.57
7.1.10.0110.00015.43
7.1.00.0090.03519.07
7.0.330.0030.01215.13
7.0.320.0120.00015.18
7.0.310.0070.00315.04
7.0.300.0040.00415.31
7.0.290.0030.00715.36
7.0.280.0100.00615.45
7.0.270.0060.00615.43
7.0.260.0080.00315.12
7.0.250.0000.00715.07
7.0.240.0100.00315.33
7.0.230.0040.00415.24
7.0.220.0040.00415.20
7.0.210.0060.00615.60
7.0.200.0000.01015.98
7.0.190.0030.01015.50
7.0.180.0030.01015.34
7.0.170.0060.00615.43
7.0.160.0030.00615.12
7.0.150.0000.00715.33
7.0.140.0020.04218.63
7.0.130.0030.00915.55
7.0.120.0040.00715.56
7.0.110.0040.00715.57
7.0.100.0060.00615.30
7.0.90.0090.00015.43
7.0.80.0030.00915.13
7.0.70.0110.00715.40
7.0.60.0020.04417.42
7.0.50.0070.03316.68
7.0.40.0050.03515.55
7.0.30.0070.04015.60
7.0.20.0030.04115.59
7.0.10.0070.04115.43
7.0.00.0070.03015.61
5.6.380.0070.00714.09
5.6.370.0040.01114.17
5.6.360.0070.00414.38
5.6.350.0030.00714.26
5.6.340.0030.00914.49
5.6.330.0070.00714.25
5.6.320.0000.01214.43
5.6.310.0040.01113.90
5.6.300.0070.00714.43
5.6.290.0030.00814.17
5.6.280.0060.03817.59
5.6.270.0030.00814.13
5.6.260.0080.00314.13
5.6.250.0060.00614.05
5.6.240.0030.01014.10
5.6.230.0050.00514.02
5.6.220.0030.00714.33
5.6.210.0080.02117.43
5.6.200.0050.04516.05
5.6.190.0090.04516.09
5.6.180.0050.04116.10
5.6.170.0080.02616.14
5.6.160.0070.04516.20
5.6.150.0030.04216.19
5.6.140.0060.04016.12
5.6.130.0070.02216.06
5.6.120.0020.04416.15
5.6.110.0080.04116.19
5.6.100.0100.02016.12
5.6.90.0050.02316.11
5.6.80.0030.03015.89
5.6.70.0030.04215.78
5.6.60.0050.03015.86
5.6.50.0090.03415.92
5.6.40.0070.03315.65
5.6.30.0110.03815.86
5.6.20.0050.04515.74
5.6.10.0050.03215.96
5.6.00.0120.03215.73
5.5.380.0000.01111.18
5.5.370.0070.00311.18
5.5.360.0080.00011.18
5.5.350.0170.02015.74
5.5.340.0060.04014.60
5.5.330.0090.04114.53
5.5.320.0020.02814.60
5.5.310.0100.02014.58
5.5.300.0000.02814.56
5.5.290.0000.03014.53
5.5.280.0060.04114.55
5.5.270.0070.02514.57
5.5.260.0050.02514.55
5.5.250.0050.04314.47
5.5.240.0060.02614.27
5.5.230.0050.02214.25
5.5.220.0030.04514.28
5.5.210.0020.04414.21
5.5.200.0090.03914.24
5.5.190.0080.03314.25
5.5.180.0070.03614.22
5.5.170.0040.00411.18
5.5.160.0020.02514.22
5.5.150.0030.04414.22
5.5.140.0030.04314.25
5.5.130.0050.02314.25
5.5.120.0050.03314.25
5.5.110.0090.03714.27
5.5.100.0080.04014.18
5.5.90.0060.04214.21
5.5.80.0050.02414.22
5.5.70.0110.03314.19
5.5.60.0050.03914.23
5.5.50.0130.02814.15
5.5.40.0050.02814.20
5.5.30.0080.03114.18
5.5.20.0030.04314.17
5.5.10.0070.04014.21
5.5.00.0100.03214.18
5.4.450.0010.03315.31
5.4.440.0070.04015.26
5.4.430.0090.03815.29
5.4.420.0030.03815.19
5.4.410.0030.02315.23
5.4.400.0030.02315.08
5.4.390.0030.03415.00
5.4.380.0030.03315.08
5.4.370.0030.02515.08
5.4.360.0030.02515.13
5.4.350.0090.03515.08
5.4.340.0020.04715.08
5.4.330.0040.00411.18
5.4.320.0050.03615.08
5.4.310.0020.02515.11
5.4.300.0050.03015.10
5.4.290.0020.02515.16
5.4.280.0060.02115.21
5.4.270.0030.03515.00
5.4.260.0040.04315.06
5.4.250.0080.02315.08
5.4.240.0060.03115.10
5.4.230.0050.04215.10
5.4.220.0070.03515.08
5.4.210.0030.04615.08
5.4.200.0030.02815.08
5.4.190.0120.03514.99
5.4.180.0060.03915.08
5.4.170.0030.04415.12
5.4.160.0110.02515.11
5.4.150.0140.03514.99
5.4.140.0070.04213.74
5.4.130.0000.04613.82
5.4.120.0030.02213.76
5.4.110.0070.02313.78
5.4.100.0100.03813.71
5.4.90.0070.03713.79
5.4.80.0100.03713.72
5.4.70.0080.04013.77
5.4.60.0020.04313.79
5.4.50.0100.03913.78
5.4.40.0070.02713.72
5.4.30.0050.03513.71
5.4.20.0050.02513.66
5.4.10.0030.02713.70
5.4.00.0030.02213.45
5.3.290.0050.04212.92
5.3.280.0050.03112.77
5.3.270.0070.02912.86
5.3.260.0050.04312.88
5.3.250.0100.03312.86
5.3.240.0100.02512.82
5.3.230.0050.03012.87
5.3.220.0060.04212.80
5.3.210.0050.04012.86
5.3.200.0110.03712.85
5.3.190.0050.04212.80
5.3.180.0080.03512.85
5.3.170.0010.02812.82
5.3.160.0090.01812.84
5.3.150.0060.02312.84
5.3.140.0020.04312.83
5.3.130.0080.04112.90
5.3.120.0010.03612.75
5.3.110.0020.03112.84
5.3.100.0050.02212.53
5.3.90.0010.02912.57
5.3.80.0030.02112.57
5.3.70.0070.04212.58
5.3.60.0060.02412.56
5.3.50.0070.01912.53
5.3.40.0030.03512.44
5.3.30.0050.02012.42
5.3.20.0030.02012.43
5.3.10.0030.01912.37
5.3.00.0050.03912.37
5.2.170.0030.02211.17
5.2.160.0060.02411.11
5.2.150.0060.02211.15
5.2.140.0040.02111.13
5.2.130.0030.01811.09
5.2.120.0050.02711.04
5.2.110.0050.03111.09
5.2.100.0050.02511.05
5.2.90.0080.02011.06
5.2.80.0030.03611.12
5.2.70.0040.02011.13
5.2.60.0080.02811.11
5.2.50.0070.03211.07
5.2.40.0090.02711.04
5.2.30.0060.01711.08
5.2.20.0030.02811.06
5.2.10.0020.03310.99
5.2.00.0020.03210.97
5.1.60.0070.02510.57
5.1.50.0030.01710.62
5.1.40.0020.03110.64
5.1.30.0000.03510.70
5.1.20.0040.01810.83
5.1.10.0000.02610.65
5.1.00.0040.01510.63
5.0.50.0030.0249.85
5.0.40.0050.0219.82
5.0.30.0030.0289.70
5.0.20.0000.0279.60
5.0.10.0030.0179.63
5.0.00.0020.0339.76
4.4.90.0040.0189.60
4.4.80.0020.0199.60
4.4.70.0010.0119.60
4.4.60.0020.0209.60
4.4.50.0050.0189.60
4.4.40.0030.0279.60
4.4.30.0030.0159.60
4.4.20.0020.0219.60
4.4.10.0000.0209.60
4.4.00.0020.0189.60
4.3.110.0000.0139.60
4.3.100.0000.0239.60
4.3.90.0030.0109.60
4.3.80.0020.0309.60
4.3.70.0050.0159.60
4.3.60.0030.0159.60
4.3.50.0020.0159.60
4.3.40.0030.0169.60
4.3.30.0000.0139.60
4.3.20.0040.0189.60
4.3.10.0030.0139.60
4.3.00.0020.0139.60

preferences:
43.38 ms | 400 KiB | 5 Q