3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $str = "safsad fd sm.pfle.jpg"; echo $a = strrpos($str,"."); $str2 = substr($str,0,$a); $str3 = preg_replace("/[-, :;]/","_",$str2); echo $str3;

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.0120.00618.88
8.3.30.0110.00419.21
8.3.20.0040.00420.34
8.3.10.0000.00821.92
8.3.00.0050.00322.32
8.2.170.0120.00322.96
8.2.160.0070.00721.08
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00819.36
8.2.110.0040.00422.50
8.2.100.0060.00617.85
8.2.90.0060.00319.22
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0050.00318.05
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0000.00717.96
8.2.20.0000.00817.88
8.2.10.0040.00417.88
8.2.00.0000.00817.94
8.1.270.0030.00523.96
8.1.260.0100.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00023.88
8.1.230.0070.00319.10
8.1.220.0050.00317.79
8.1.210.0090.00018.77
8.1.200.0070.00317.38
8.1.190.0000.00917.54
8.1.180.0030.00518.10
8.1.170.0030.00618.69
8.1.160.0040.00422.01
8.1.150.0040.00418.72
8.1.140.0030.00517.57
8.1.130.0000.00817.84
8.1.120.0040.00417.46
8.1.110.0000.00817.48
8.1.100.0040.00417.47
8.1.90.0000.00817.44
8.1.80.0000.00917.38
8.1.70.0000.00717.51
8.1.60.0000.00817.68
8.1.50.0040.00417.55
8.1.40.0030.00617.59
8.1.30.0040.00417.62
8.1.20.0000.00817.73
8.1.10.0040.00417.63
8.1.00.0030.00517.54
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0000.00718.32
8.0.270.0000.00717.19
8.0.260.0000.00616.86
8.0.250.0050.00217.06
8.0.240.0050.00217.13
8.0.230.0050.00216.99
8.0.220.0000.00716.92
8.0.210.0000.00816.99
8.0.200.0060.00016.89
8.0.190.0040.00416.95
8.0.180.0030.00616.89
8.0.170.0030.00617.02
8.0.160.0000.00816.95
8.0.150.0040.00416.95
8.0.140.0050.00316.95
8.0.130.0050.00013.36
8.0.120.0060.00316.89
8.0.110.0000.00716.99
8.0.100.0040.00416.96
8.0.90.0000.00716.99
8.0.80.0090.00616.91
8.0.70.0000.00717.01
8.0.60.0030.00617.04
8.0.50.0050.00216.74
8.0.30.0070.01217.22
8.0.20.0110.00817.40
8.0.10.0040.00717.15
8.0.00.0050.01316.78
7.4.330.0000.00515.12
7.4.320.0030.00316.65
7.4.300.0000.00616.59
7.4.290.0040.00416.74
7.4.280.0040.00416.72
7.4.270.0030.00316.70
7.4.260.0000.00716.57
7.4.250.0030.00316.75
7.4.240.0050.00216.76
7.4.230.0000.00716.62
7.4.220.0080.01516.67
7.4.210.0070.00716.59
7.4.200.0000.00716.54
7.4.190.0000.00716.83
7.4.160.0040.01216.77
7.4.150.0120.00617.40
7.4.140.0050.01317.86
7.4.130.0090.00816.80
7.4.120.0130.00416.62
7.4.110.0040.01316.61
7.4.100.0140.01016.63
7.4.90.0150.00316.49
7.4.80.0090.01219.39
7.4.70.0060.01216.73
7.4.60.0100.00716.58
7.4.50.0050.00016.57
7.4.40.0060.00922.77
7.4.30.0090.00616.64
7.4.00.0080.00815.15
7.3.330.0060.00013.22
7.3.320.0020.00213.20
7.3.310.0000.00616.19
7.3.300.0000.00616.32
7.3.290.0090.01116.38
7.3.280.0100.00716.41
7.3.270.0090.00917.40
7.3.260.0080.01616.65
7.3.250.0130.00616.54
7.3.240.0090.01216.39
7.3.230.0060.01116.42
7.3.210.0120.00616.70
7.3.200.0140.00619.39
7.3.190.0040.01216.67
7.3.180.0100.00716.44
7.3.170.0000.01716.38
7.3.160.0070.01016.66
7.3.120.0070.00815.08
7.3.110.0100.00714.54
7.3.100.0000.01414.73
7.3.90.0080.01215.09
7.3.80.0070.00415.18
7.3.70.0030.01215.04
7.3.60.0090.00614.96
7.3.50.0140.00314.92
7.3.40.0060.00914.82
7.3.30.0040.01114.71
7.3.20.0040.00916.71
7.3.10.0070.00716.78
7.3.00.0050.00516.87
7.2.330.0070.01016.70
7.2.320.0080.00816.90
7.2.310.0170.00716.92
7.2.300.0060.01516.60
7.2.290.0130.00316.78
7.2.250.0120.00315.03
7.2.240.0070.01314.96
7.2.230.0090.00615.13
7.2.220.0100.01015.28
7.2.210.0040.01115.18
7.2.200.0040.01415.16
7.2.190.0070.00715.29
7.2.180.0040.00815.06
7.2.170.0070.01015.26
7.2.130.0000.01116.98
7.2.120.0080.00617.01
7.2.110.0050.00517.06
7.2.100.0040.00717.02
7.2.90.0030.01017.02
7.2.80.0070.00417.13
7.2.70.0000.01116.88
7.2.60.0090.00317.02
7.2.50.0090.00317.21
7.2.40.0030.01316.96
7.2.30.0030.01017.01
7.2.20.0040.00716.85
7.2.10.0060.00616.90
7.2.00.0020.01018.36
7.1.330.0120.00315.86
7.1.320.0080.00316.03
7.1.310.0000.01115.70
7.1.300.0070.01016.11
7.1.290.0030.00615.73
7.1.280.0090.00615.91
7.1.270.0060.00616.00
7.1.260.0000.00915.77
7.1.250.0040.00415.95
7.1.200.0100.00315.75
7.1.100.0030.00618.50
7.1.70.0000.00717.18
7.1.60.0200.00319.82
7.1.50.0000.01117.11
7.1.00.0030.07722.32
7.0.200.0050.00516.96
7.0.140.0030.07321.99
7.0.80.0100.06019.85
7.0.70.0130.07719.85
7.0.60.0500.07019.91
7.0.50.0430.06320.21
7.0.40.0100.08020.04
7.0.30.0070.07720.18
7.0.20.0100.05720.07
7.0.10.0130.07320.18
7.0.00.0100.06720.18
5.6.280.0070.07020.77
5.6.230.0030.08720.63
5.6.220.0070.06320.66
5.6.210.0100.08020.59
5.6.200.0100.08321.17
5.6.190.0000.08720.93
5.6.180.0070.08021.07
5.6.170.0100.05321.07
5.6.160.0070.07320.93
5.6.150.0100.05021.02
5.6.140.0070.08321.07
5.6.130.0030.07021.09
5.6.120.0070.08721.07
5.6.110.0130.04321.09
5.6.100.0170.08021.11
5.6.90.0230.07321.04
5.6.80.0000.08320.48
5.6.70.0200.06720.50
5.6.60.0100.07320.30
5.6.50.0100.08320.40
5.6.40.0100.03720.39
5.6.30.0070.04020.39
5.6.20.0100.07720.38
5.6.10.0100.04020.36
5.6.00.0030.06320.29
5.5.370.0130.08020.54
5.5.360.0100.06720.39
5.5.350.0130.07020.45
5.5.340.0130.04720.79
5.5.330.0170.07320.63
5.5.320.0200.06720.77
5.5.310.0100.07020.92
5.5.300.0030.04320.87
5.5.290.0000.05020.88
5.5.280.0300.05320.75
5.5.270.0000.05720.75
5.5.260.0070.08720.71
5.5.250.0070.08320.60
5.5.240.0130.07020.30
5.5.230.0100.07020.25
5.5.220.0100.08320.01
5.5.210.0030.07320.23
5.5.200.0100.06720.11
5.5.190.0070.08720.07
5.5.180.0000.06720.14
5.5.160.0070.08320.11
5.5.150.0170.07320.08
5.5.140.0070.07020.13
5.5.130.0230.06320.25
5.5.120.0030.08019.98
5.5.110.0100.07020.22
5.5.100.0100.04020.13
5.5.90.0130.07320.06
5.5.80.0100.08320.11
5.5.70.0070.08019.95
5.5.60.0130.06720.07
5.5.50.0070.07720.14
5.5.40.0070.05019.92
5.5.30.0100.04019.90
5.5.20.0130.04320.08
5.5.10.0030.05320.13
5.5.00.0130.07020.02
5.4.450.0070.04719.47
5.4.440.0170.07719.27
5.4.430.0130.07019.39
5.4.420.0100.07719.13
5.4.410.0130.07719.15
5.4.400.0030.05719.15
5.4.390.0170.07018.96
5.4.380.0070.05018.81
5.4.370.0100.06318.81
5.4.360.0130.07019.10
5.4.350.0030.04019.03
5.4.340.0100.03319.04
5.4.320.0030.08319.23
5.4.310.0070.08018.78
5.4.300.0130.06719.05
5.4.290.0100.07019.04
5.4.280.0070.07319.09
5.4.270.0030.07719.09
5.4.260.0100.04019.03
5.4.250.0100.03718.78
5.4.240.0130.06719.09
5.4.230.0170.07319.11
5.4.220.0130.07318.78
5.4.210.0070.07718.96
5.4.200.0070.05018.82
5.4.190.0030.04719.11
5.4.180.0100.04019.10
5.4.170.0000.05019.04
5.4.160.0100.07719.05
5.4.150.0130.07318.79
5.4.140.0070.07316.39
5.4.130.0130.06016.43
5.4.120.0070.05016.04
5.4.110.0100.04016.30
5.4.100.0100.05716.38
5.4.90.0030.05016.21
5.4.80.0130.06016.46
5.4.70.0100.04716.22
5.4.60.0130.06016.38
5.4.50.0070.06716.31
5.4.40.0100.07016.47
5.4.30.0030.05716.28
5.4.20.0070.05316.18
5.4.10.0170.06716.28
5.4.00.0130.05715.84
5.3.290.0070.04714.62
5.3.280.0030.04714.41
5.3.270.0100.04314.53
5.3.260.0130.03714.58
5.3.250.0130.03714.55
5.3.240.0070.05314.54
5.3.230.0070.07314.41
5.3.220.0070.07014.47
5.3.210.0030.07314.57
5.3.200.0100.06714.55
5.3.190.0100.06314.42
5.3.180.0030.06714.41
5.3.170.0000.04714.46
5.3.160.0070.07314.38
5.3.150.0100.06314.42
5.3.140.0130.05714.40
5.3.130.0100.06314.39
5.3.120.0130.07314.48
5.3.110.0100.06014.45
5.3.100.0030.05013.91
5.3.90.0130.06313.95
5.3.80.0130.06713.87
5.3.70.0130.07013.95
5.3.60.0030.07313.96
5.3.50.0030.04013.70
5.3.40.0100.06713.85
5.3.30.0070.04013.87
5.3.20.0030.07713.66
5.3.10.0100.06713.51
5.3.00.0130.03313.62
5.2.170.0070.05711.55
5.2.160.0070.03311.55
5.2.150.0070.05311.55
5.2.140.0000.06311.55
5.2.130.0030.05011.55
5.2.120.0070.06011.55
5.2.110.0070.03711.55
5.2.100.0030.03311.55
5.2.90.0000.04311.55
5.2.80.0000.05011.55
5.2.70.0030.03311.55
5.2.60.0030.05011.55
5.2.50.0100.05311.55
5.2.40.0030.06011.55
5.2.30.0070.05711.55
5.2.20.0000.06011.55
5.2.10.0030.04711.55
5.2.00.0000.04311.55
5.1.60.0030.04311.55
5.1.50.0030.05311.55
5.1.40.0100.04711.55
5.1.30.0030.04011.55
5.1.20.0070.05711.55
5.1.10.0070.03311.55
5.1.00.0030.05311.55
5.0.50.0070.04311.55
5.0.40.0030.04311.55
5.0.30.0130.05311.55
5.0.20.0030.02311.55
5.0.10.0030.03711.55
5.0.00.0030.06011.55
4.4.90.0030.01311.55
4.4.80.0070.02011.55
4.4.70.0030.03011.55
4.4.60.0000.03711.55
4.4.50.0000.03711.55
4.4.40.0030.02711.55
4.4.30.0030.03711.55
4.4.20.0030.01711.55
4.4.10.0030.03311.55
4.4.00.0000.04311.55
4.3.110.0030.03711.55
4.3.100.0030.03311.55
4.3.90.0070.03011.55
4.3.80.0100.04711.55
4.3.70.0030.03011.55
4.3.60.0000.02711.55
4.3.50.0030.02011.55
4.3.40.0030.02711.55
4.3.30.0030.02711.55
4.3.20.0000.02711.55
4.3.10.0000.03711.55
4.3.00.0000.02311.55

preferences:
38.27 ms | 400 KiB | 5 Q