3v4l.org

run code in 300+ PHP versions simultaneously
<?php # str_replace($search, $replace, $subject); $search =array("test.local","\/","http:","https:"); $replace=""; $subject="http://test.local/too"; var_dump(str_replace($search, $replace, $subject));

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.00716.36
8.3.50.0070.01322.00
8.3.40.0070.00718.57
8.3.30.0100.00318.97
8.3.20.0070.00020.22
8.3.10.0060.00320.53
8.3.00.0050.00319.13
8.2.180.0210.00018.54
8.2.170.0160.00622.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.12
8.2.110.0050.00522.29
8.2.100.0040.00717.66
8.2.90.0000.00719.04
8.2.80.0000.00917.97
8.2.70.0080.00017.50
8.2.60.0000.00917.80
8.2.50.0040.00918.07
8.2.40.0060.00318.21
8.2.30.0040.00419.42
8.2.20.0050.00317.69
8.2.10.0050.00317.92
8.2.00.0000.00717.66
8.1.280.0170.00325.92
8.1.270.0060.00322.23
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00823.83
8.1.230.0060.00619.17
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0100.00017.10
8.1.190.0040.00417.10
8.1.180.0030.00518.10
8.1.170.0000.00818.72
8.1.160.0040.00421.91
8.1.150.0000.00718.88
8.1.140.0040.00417.22
8.1.130.0060.00017.69
8.1.120.0070.00017.32
8.1.110.0070.00017.26
8.1.100.0030.00617.34
8.1.90.0050.00217.29
8.1.80.0070.00017.25
8.1.70.0040.00417.25
8.1.60.0050.00517.56
8.1.50.0000.00817.35
8.1.40.0000.00817.44
8.1.30.0040.00417.59
8.1.20.0030.00617.57
8.1.10.0070.00017.37
8.1.00.0050.00217.36
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0050.00318.41
8.0.270.0040.00417.23
8.0.260.0030.00317.12
8.0.250.0000.00716.90
8.0.240.0000.00716.91
8.0.230.0050.00216.91
8.0.220.0060.00016.82
8.0.210.0030.00316.70
8.0.200.0000.00716.80
8.0.190.0000.00716.95
8.0.180.0040.00416.72
8.0.170.0090.00016.89
8.0.160.0000.00716.73
8.0.150.0030.00416.78
8.0.140.0030.00516.82
8.0.130.0000.00613.20
8.0.120.0000.00816.71
8.0.110.0040.00416.65
8.0.100.0000.00716.70
8.0.90.0000.00716.71
8.0.80.0070.01416.80
8.0.70.0000.00716.66
8.0.60.0030.00616.80
8.0.50.0050.00216.77
8.0.30.0080.01016.96
8.0.20.0110.00817.40
8.0.10.0000.00716.91
8.0.00.0030.01416.69
7.4.330.0060.00015.00
7.4.320.0000.00816.51
7.4.300.0000.00616.44
7.4.290.0000.00716.52
7.4.280.0070.00016.51
7.4.270.0050.00216.44
7.4.260.0040.00416.35
7.4.250.0050.00216.29
7.4.240.0020.00616.51
7.4.230.0040.00416.64
7.4.220.0140.00516.47
7.4.210.0100.00316.52
7.4.200.0040.00416.41
7.4.160.0100.00516.44
7.4.150.0100.01017.40
7.4.140.0070.00917.86
7.4.130.0080.00816.40
7.4.120.0100.00716.39
7.4.110.0100.00716.44
7.4.100.0100.00716.32
7.4.90.0030.01416.37
7.4.80.0140.00319.39
7.4.70.0090.00916.42
7.4.60.0130.00316.41
7.4.50.0030.00516.05
7.4.40.0060.01216.38
7.4.30.0140.00716.46
7.4.00.0060.00915.07
7.3.330.0000.00512.97
7.3.320.0050.00012.98
7.3.310.0040.00416.18
7.3.300.0070.00016.09
7.3.290.0130.00716.12
7.3.280.0090.00616.15
7.3.270.0100.01017.40
7.3.260.0030.01316.39
7.3.250.0070.01216.33
7.3.240.0080.01216.30
7.3.230.0140.00316.49
7.3.210.0070.01716.17
7.3.200.0060.01219.39
7.3.190.0190.00316.30
7.3.180.0100.00616.25
7.3.170.0030.01316.27
7.3.160.0060.01116.29
7.3.10.0100.00716.52
7.3.00.0130.00316.23
7.2.330.0120.00616.52
7.2.320.0090.00916.29
7.2.310.0030.01316.18
7.2.300.0120.00816.54
7.2.290.0060.01016.36
7.2.130.0110.00316.79
7.2.120.0090.00616.77
7.2.110.0070.00416.58
7.2.100.0130.00316.62
7.2.90.0060.00616.61
7.2.80.0120.00316.59
7.2.70.0040.01116.74
7.2.60.0050.00816.52
7.2.50.0080.00816.55
7.2.40.0030.01316.89
7.2.30.0070.00716.82
7.2.20.0060.00616.52
7.2.10.0110.00716.83
7.2.00.0070.00817.85
7.1.250.0000.01215.54
7.1.200.0110.00415.52
7.1.100.0040.00418.23
7.1.70.0060.00316.86
7.1.60.0040.01819.61
7.1.50.0130.01016.89
7.1.00.0030.07722.57
7.0.200.0060.01014.51
7.0.140.0030.07722.15
7.0.60.0130.07320.07
7.0.50.0030.04017.82
7.0.40.0130.08020.18
7.0.30.0430.08320.01
7.0.20.0130.04320.12
7.0.10.0070.08720.16
7.0.00.0130.08320.18
5.6.280.0000.07720.83
5.6.210.0100.08320.61
5.6.200.0030.08318.11
5.6.190.0070.08020.39
5.6.180.0670.07020.45
5.6.170.0230.05720.48
5.6.160.0170.07320.37
5.6.150.0070.06718.15
5.6.140.0000.05018.12
5.6.130.0030.05318.16
5.6.120.0070.07020.98
5.6.110.0100.06720.98
5.6.100.0070.05720.97
5.6.90.0100.07321.12
5.6.80.0100.08020.43
5.5.350.4330.04320.38
5.5.340.0130.07017.93
5.5.330.0070.07320.36
5.5.320.0030.08720.21
5.5.310.0370.06020.45
5.5.300.0170.07017.95
5.5.290.0100.07017.92
5.5.280.0030.04720.87
5.5.270.0030.04020.83
5.5.260.0070.06720.95
5.5.250.0100.06020.57
5.5.240.0230.06720.23
5.4.450.3170.03319.39
5.4.440.3170.03019.13
5.4.430.3770.03719.42
5.4.420.3530.03719.27
5.4.410.3830.04019.33
5.4.400.3400.03719.16
5.4.390.3400.04019.06
5.4.380.3830.04318.79
5.4.370.3400.03319.08
5.4.360.4000.04019.16
5.4.350.3530.04019.09
5.4.340.3470.03319.13
5.4.320.4000.04318.88
5.4.310.4000.03319.14
5.4.300.3430.04018.88
5.4.290.3470.03719.23
5.4.280.3500.03718.91
5.4.270.3470.03719.13
5.4.260.3600.03318.80
5.4.250.3530.03718.80
5.4.240.3970.04019.07
5.4.230.4130.03718.93
5.4.220.4500.04018.80
5.4.210.3800.04318.91
5.4.200.3270.03319.15
5.4.190.3170.04019.04
5.4.180.3830.03319.07
5.4.170.3600.03318.80
5.4.160.3730.03719.13
5.4.150.3400.03719.13
5.4.140.3500.04016.35
5.4.130.4070.04016.27
5.4.120.4330.03716.45
5.4.110.3900.03316.39
5.4.100.3630.04016.43
5.4.90.3770.02316.43
5.4.80.3670.03316.20
5.4.70.3830.03716.39
5.4.60.3400.03716.28
5.4.50.3400.03316.36
5.4.40.2400.03716.38
5.4.30.3130.03316.17
5.4.20.3430.03016.28
5.4.10.3430.03316.36
5.4.00.3570.03315.71
5.3.290.3470.04014.62
5.3.280.4100.04014.44
5.3.270.3500.03714.57
5.3.260.3700.04314.55
5.3.250.3670.04014.55
5.3.240.3770.04314.51
5.3.230.4330.03714.43
5.3.220.4000.04314.44
5.3.210.3600.04014.52
5.3.200.3700.04014.47
5.3.190.3570.04014.50
5.3.180.3770.02714.51
5.3.170.3370.03714.39
5.3.160.4230.03314.44
5.3.150.4030.03314.40
5.3.140.3270.03714.43
5.3.130.3000.03714.54
5.3.120.3230.04014.39
5.3.110.3500.03014.48
5.3.100.3600.03313.87
5.3.90.3800.02313.85
5.3.80.3300.03313.81
5.3.70.2870.03014.10
5.3.60.3500.03314.09
5.3.50.3570.03314.03
5.3.40.3400.04013.89
5.3.30.3200.04013.75
5.3.20.4030.03313.73
5.3.10.3630.03313.74
5.3.00.3670.03713.66
5.2.170.2630.02710.99
5.2.160.2600.03011.19
5.2.150.2600.02710.96
5.2.140.2730.03011.00
5.2.130.2830.02710.95
5.2.120.2930.02311.04
5.2.110.3070.02711.14
5.2.100.3100.03010.96
5.2.90.2830.03710.96
5.2.80.2900.03011.03
5.2.70.2770.03310.96
5.2.60.2970.03010.89
5.2.50.3830.03311.02
5.2.40.2500.03010.83
5.2.30.2570.02310.98
5.2.20.2900.02310.84
5.2.10.2830.02710.83
5.2.00.2970.03310.61
5.1.60.3030.02310.15
5.1.50.3170.02310.15
5.1.40.2830.01710.09
5.1.30.2830.02710.35
5.1.20.2400.03010.24
5.1.10.2930.02310.18
5.1.00.3100.02710.15
5.0.50.1470.0238.45
5.0.40.1800.0238.49
5.0.30.1470.0408.19
5.0.20.1630.0178.27
5.0.10.1400.0208.39
5.0.00.1500.0308.07
4.4.90.1170.0137.23
4.4.80.1100.0177.23
4.4.70.1370.0137.23
4.4.60.1730.0137.23
4.4.50.1530.0137.23
4.4.40.1570.0277.23
4.4.30.1670.0177.23
4.4.20.1230.0177.23
4.4.10.1500.0177.23
4.4.00.1430.0277.23
4.3.110.1730.0177.23
4.3.100.1770.0177.23
4.3.90.1400.0137.23
4.3.80.1670.0277.23
4.3.70.1470.0177.23
4.3.60.1400.0177.23
4.3.50.1670.0177.23
4.3.40.1400.0337.23
4.3.30.0870.0237.23
4.3.20.0930.0237.23
4.3.10.0800.0177.23
4.3.00.0770.0177.23

preferences:
43 ms | 401 KiB | 5 Q