3v4l.org

run code in 300+ PHP versions simultaneously
<?php $searchTerm = "ΓΌ"; $searchTerm2 = "&uuml;"; $replaceTerm = "%FC"; $test=array("${searchTerm}$searchTerm2/${searchTerm}_.${searchTerm}", "xay${searchTerm}", "asdasd/${searchTerm}.mp3", "${searchTerm}.", "blahahbasd${searchTerm}", "1234${searchTerm}1234"); foreach ($test as $t) echo "$t => " . preg_replace("/". preg_quote($searchTerm) . "/x", preg_quote($replaceTerm) , $t) . "\n";

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.0060.00916.75
8.3.50.0050.01222.17
8.3.40.0090.00919.04
8.3.30.0070.00719.27
8.3.20.0040.00420.16
8.3.10.0000.00823.51
8.3.00.0050.00317.93
8.2.180.0160.00616.50
8.2.170.0070.00722.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0040.00426.16
8.2.120.0000.00821.01
8.2.110.0040.00420.95
8.2.100.0090.00317.97
8.2.90.0000.00819.12
8.2.80.0060.00317.97
8.2.70.0050.00317.87
8.2.60.0040.00418.05
8.2.50.0030.00718.07
8.2.40.0040.00418.09
8.2.30.0070.00318.39
8.2.20.0040.00417.88
8.2.10.0060.00318.16
8.2.00.0080.00017.77
8.1.280.0140.00325.92
8.1.270.0040.00423.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.27
8.1.230.0000.01120.78
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0100.00017.47
8.1.190.0000.00817.47
8.1.180.0040.00418.10
8.1.170.0060.00318.64
8.1.160.0000.00721.94
8.1.150.0000.00718.83
8.1.140.0040.00417.54
8.1.130.0060.00317.90
8.1.120.0000.00717.49
8.1.110.0000.00717.61
8.1.100.0000.00717.62
8.1.90.0070.00017.68
8.1.80.0000.00717.62
8.1.70.0030.00317.53
8.1.60.0000.00917.66
8.1.50.0000.00817.59
8.1.40.0030.00517.63
8.1.30.0000.00917.65
8.1.20.0080.00017.80
8.1.10.0000.00717.68
8.1.00.0060.00317.66
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.49
8.0.270.0050.00317.28
8.0.260.0050.00317.34
8.0.250.0030.00316.97
8.0.240.0040.00417.20
8.0.230.0040.00417.09
8.0.220.0030.00316.92
8.0.210.0060.00317.06
8.0.200.0030.00316.94
8.0.190.0030.00317.00
8.0.180.0040.00416.96
8.0.170.0040.00416.93
8.0.160.0040.00416.95
8.0.150.0080.00017.02
8.0.140.0080.00017.00
8.0.130.0000.00613.44
8.0.120.0080.00016.97
8.0.110.0040.00417.09
8.0.100.0000.00716.86
8.0.90.0030.00517.10
8.0.80.0140.00416.96
8.0.70.0040.00417.07
8.0.60.0000.00716.86
8.0.50.0040.00416.86
8.0.30.0090.01217.04
8.0.20.0070.01517.40
8.0.10.0080.00017.10
8.0.00.0050.01317.07
7.4.330.0050.00015.12
7.4.320.0030.00316.81
7.4.300.0040.00416.67
7.4.290.0000.00716.79
7.4.280.0070.00016.72
7.4.270.0000.00716.77
7.4.260.0070.00016.74
7.4.250.0040.00416.70
7.4.240.0020.00616.76
7.4.230.0000.00716.66
7.4.220.0070.01016.91
7.4.210.0000.01416.71
7.4.200.0000.00716.91
7.4.160.0200.00016.72
7.4.150.0160.00617.40
7.4.140.0090.00917.86
7.4.130.0100.00716.78
7.4.120.0130.00616.70
7.4.110.0130.00616.72
7.4.100.0090.00916.67
7.4.90.0140.00316.71
7.4.80.0120.01219.39
7.4.70.0030.01316.75
7.4.60.0120.00916.59
7.4.50.0060.00316.61
7.4.40.0090.00616.74
7.4.30.0060.00916.93
7.4.00.0060.00614.98
7.3.330.0030.00313.45
7.3.320.0030.00313.45
7.3.310.0070.00016.39
7.3.300.0050.00316.54
7.3.290.0000.01416.53
7.3.280.0080.00916.49
7.3.270.0140.00417.40
7.3.260.0150.00616.86
7.3.250.0130.00616.48
7.3.240.0030.01416.86
7.3.230.0070.01016.71
7.3.210.0060.01016.41
7.3.200.0090.00919.39
7.3.190.0000.01816.64
7.3.180.0170.00016.52
7.3.170.0060.01216.67
7.3.160.0120.00616.64
7.3.120.0030.00915.29
7.2.330.0100.01016.92
7.2.320.0170.00016.73
7.2.310.0070.01416.75
7.2.300.0130.01116.95
7.2.290.0060.01016.73
7.2.60.0070.00717.03
7.2.00.0070.01119.61
7.1.200.0060.00616.14
7.1.100.0030.01018.25
7.1.70.0000.00817.45
7.1.60.0120.01219.70
7.1.50.0350.01017.14
7.1.00.0030.07322.46
7.0.200.0060.00316.92
7.0.140.0030.07321.92
7.0.60.0100.06720.05
7.0.50.0100.07717.82
7.0.40.0070.07020.25
7.0.30.0330.07320.20
7.0.20.0100.04720.01
7.0.10.0030.08720.19
7.0.00.0070.08020.36
5.6.280.0070.07020.81
5.6.210.0100.07020.54
5.6.200.0070.07018.19
5.6.190.0030.07720.39
5.6.180.3370.05020.46
5.6.170.0230.07020.62
5.6.160.0100.08320.41
5.6.150.0030.08318.19
5.6.140.0170.07318.11
5.6.130.0100.08318.07
5.6.120.0070.08020.98
5.6.110.0000.09020.97
5.6.100.0000.04320.97
5.6.90.0130.07720.95
5.6.80.0070.09020.37
5.6.70.3730.04720.52
5.5.350.0070.06720.38
5.5.340.0100.04317.98
5.5.330.0070.08320.44
5.5.320.0230.04020.24
5.5.310.0230.04020.26
5.5.300.0030.07317.96
5.5.290.0070.05717.89
5.5.280.0130.07720.77
5.5.270.0100.07020.72
5.5.260.0130.08720.75
5.5.250.0070.04320.68
5.5.240.0270.04020.19
5.4.450.0930.05019.53
5.4.440.0170.06019.48
5.4.430.0130.05019.51
5.4.420.0170.05019.53
5.4.410.0100.05319.04
5.4.400.0100.05719.39
5.4.390.0170.04719.15
5.4.380.0070.05718.69
5.4.370.0130.04718.48
5.4.360.0100.05318.61
5.4.350.0090.03311.98
5.4.340.0020.04511.97
5.4.320.0060.03512.45
5.4.310.0040.03812.46
5.4.300.0060.03612.45
5.4.290.0060.03612.45
5.4.280.0040.03612.35
5.4.270.0070.03412.35
5.4.260.0030.04012.35
5.4.250.0080.03512.35
5.4.240.0030.03812.35
5.4.230.0070.03512.34
5.4.220.0020.04012.34
5.4.210.0040.03612.34
5.4.200.0060.03712.34
5.4.190.0070.03512.34
5.4.180.0070.03812.34
5.4.170.0070.03912.35
5.4.160.0070.04012.35
5.4.150.0070.03612.34
5.4.140.0020.04512.02
5.4.130.0060.03412.02
5.4.120.0060.04111.97
5.4.110.0050.03811.97
5.4.100.0060.03411.97
5.4.90.0070.03711.96
5.4.80.0060.03711.97
5.4.70.0070.03311.96
5.4.60.0080.03211.96
5.4.50.0080.04111.96
5.4.40.0060.04011.95
5.4.30.0040.03611.95
5.4.20.0090.03811.95
5.4.10.0060.03811.95
5.4.00.0030.04011.44
5.3.290.0060.04612.80
5.3.280.0060.03712.71
5.3.270.0080.04112.72
5.3.260.0060.03912.72
5.3.250.0070.03612.72
5.3.240.0100.03812.72
5.3.230.0130.03912.70
5.3.220.0070.04112.68
5.3.210.0050.04512.68
5.3.200.0060.03812.68
5.3.190.0090.03812.68
5.3.180.0080.03512.67
5.3.170.0070.03712.67
5.3.160.0090.04012.67
5.3.150.0120.03512.67
5.3.140.0070.03912.66
5.3.130.0050.04112.66
5.3.120.0110.04012.66
5.3.110.0060.03812.65
5.3.100.0050.04012.12
5.3.90.0090.03812.09
5.3.80.0120.03712.07
5.3.70.0060.03712.07
5.3.60.0100.03312.06
5.3.50.0060.03612.00
5.3.40.0090.04412.00
5.3.30.0060.03611.95
5.3.20.0040.03811.74
5.3.10.0090.03111.70
5.3.00.0060.03511.69
5.2.170.0080.0319.19
5.2.160.0070.0269.20
5.2.150.0050.0309.20
5.2.140.0090.0259.19
5.2.130.0050.0299.15
5.2.120.0040.0299.15
5.2.110.0050.0289.16
5.2.100.0050.0289.15
5.2.90.0070.0269.16
5.2.80.0020.0329.15
5.2.70.0070.0289.15
5.2.60.0040.0309.09
5.2.50.0030.0319.07
5.2.40.0060.0279.04
5.2.30.0020.0329.02
5.2.20.0070.0269.02
5.2.10.0060.0268.92
5.2.00.0060.0278.78
5.1.60.0030.0258.07
5.1.50.0070.0228.07
5.1.40.0030.0258.04
5.1.30.0030.0278.39
5.1.20.0060.0298.41
5.1.10.0090.0228.14
5.1.00.0050.0248.14
5.0.50.0030.0216.63
5.0.40.0020.0206.48
5.0.30.0020.0326.30
5.0.20.0040.0186.27
5.0.10.0020.0246.25
5.0.00.0060.0336.24
4.4.90.0040.0144.78
4.4.80.0030.0154.75
4.4.70.0040.0144.75
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0020.0254.71
4.4.30.0020.0164.76
4.4.20.0050.0134.84
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0000.0184.67
4.3.100.0020.0164.67
4.3.90.0020.0154.63
4.3.80.0010.0264.58
4.3.70.0010.0164.63
4.3.60.0020.0154.63
4.3.50.0020.0164.62
4.3.40.0020.0254.54
4.3.30.0040.0143.29
4.3.20.0010.0173.27
4.3.10.0020.0163.23
4.3.00.0170.01314.98

preferences:
45.35 ms | 401 KiB | 5 Q