3v4l.org

run code in 300+ PHP versions simultaneously
<?php $searchTerm = "ΓΌ"; $searchTerm2 = "&uuml;"; $replaceTerm = "%FC"; $regex = "/". preg_quote($searchTerm) . '|' . preg_quote($searchTerm2) . "/x"; $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($regex, preg_quote($replaceTerm) , $t) . "\n"; echo $regex;

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.75
8.3.50.0080.00721.99
8.3.40.0120.00619.01
8.3.30.0070.00719.18
8.3.20.0070.00020.30
8.3.10.0080.00023.53
8.3.00.0090.00017.64
8.2.180.0120.00316.73
8.2.170.0140.00422.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0030.00521.03
8.2.110.0090.00020.40
8.2.100.0040.00818.28
8.2.90.0040.00419.22
8.2.80.0030.00517.97
8.2.70.0090.00017.63
8.2.60.0080.00017.93
8.2.50.0030.00718.07
8.2.40.0030.00520.01
8.2.30.0050.00518.15
8.2.20.0050.00317.75
8.2.10.0080.00018.05
8.2.00.0040.00417.90
8.1.280.0030.01225.92
8.1.270.0130.00323.96
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.95
8.1.230.0060.00619.08
8.1.220.0080.00017.75
8.1.210.0050.00318.77
8.1.200.0000.00917.36
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0000.00818.84
8.1.160.0030.00622.04
8.1.150.0000.00718.82
8.1.140.0050.00317.52
8.1.130.0030.00317.80
8.1.120.0050.00217.61
8.1.110.0050.00217.58
8.1.100.0000.00717.65
8.1.90.0040.00417.51
8.1.80.0070.00017.59
8.1.70.0040.00417.55
8.1.60.0050.00217.74
8.1.50.0030.00517.61
8.1.40.0040.00417.67
8.1.30.0060.00317.77
8.1.20.0060.00317.78
8.1.10.0040.00417.56
8.1.00.0040.00417.57
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.46
8.0.270.0040.00417.16
8.0.260.0000.00717.23
8.0.250.0000.00817.14
8.0.240.0000.00917.17
8.0.230.0030.00317.11
8.0.220.0070.00017.09
8.0.210.0030.00716.95
8.0.200.0030.00316.98
8.0.190.0000.00717.04
8.0.180.0080.00016.95
8.0.170.0080.00017.07
8.0.160.0030.00316.92
8.0.150.0040.00417.02
8.0.140.0030.00516.89
8.0.130.0030.00313.53
8.0.120.0080.00017.00
8.0.110.0050.00316.93
8.0.100.0040.00417.08
8.0.90.0080.00017.07
8.0.80.0080.01216.98
8.0.70.0050.00216.89
8.0.60.0040.00416.92
8.0.50.0040.00416.89
8.0.30.0070.01117.38
8.0.20.0130.01317.40
8.0.10.0070.00017.16
8.0.00.0150.00617.00
7.4.330.0050.00015.11
7.4.320.0030.00316.77
7.4.300.0080.00016.77
7.4.290.0030.00316.79
7.4.280.0030.00316.66
7.4.270.0030.00316.76
7.4.260.0080.00016.71
7.4.250.0080.00016.71
7.4.240.0030.00316.71
7.4.230.0030.00316.84
7.4.220.0100.00716.90
7.4.210.0130.00716.72
7.4.200.0040.00416.55
7.4.160.0070.01016.59
7.4.150.0070.01617.40
7.4.140.0110.00917.86
7.4.130.0110.00616.78
7.4.120.0050.01216.68
7.4.110.0120.00616.72
7.4.100.0060.01216.59
7.4.90.0060.01216.65
7.4.80.0040.01619.39
7.4.70.0130.03516.79
7.4.60.0140.00316.60
7.4.50.0000.00616.63
7.4.40.0070.00916.80
7.4.30.0130.00616.64
7.4.00.0070.01115.21
7.3.330.0060.00013.39
7.3.320.0050.00013.41
7.3.310.0030.00316.32
7.3.300.0040.00416.46
7.3.290.0030.01216.54
7.3.280.0060.01016.49
7.3.270.0060.01117.40
7.3.260.0030.01516.51
7.3.250.0120.00516.66
7.3.240.0170.00016.46
7.3.230.0090.00916.78
7.3.210.0070.01116.82
7.3.200.0040.01219.39
7.3.190.0030.02116.50
7.3.180.0030.01316.75
7.3.170.0070.01016.79
7.3.160.0070.01016.39
7.3.120.0080.00914.80
7.3.110.0110.00414.99
7.3.100.0100.00615.08
7.3.90.0040.01115.31
7.3.80.0000.01515.11
7.3.70.0100.00315.03
7.3.60.0110.00315.11
7.3.50.0040.01115.05
7.3.40.0000.01714.97
7.3.30.0060.00915.03
7.3.20.0040.00816.81
7.3.10.0120.00316.90
7.3.00.0030.01216.85
7.2.330.0110.01116.70
7.2.320.0170.00016.90
7.2.310.0130.00716.88
7.2.300.0190.00716.65
7.2.290.0150.01016.83
7.2.250.0090.01214.82
7.2.240.0070.01315.40
7.2.230.0090.00615.21
7.2.220.0000.01515.15
7.2.210.0090.00615.26
7.2.200.0000.01715.18
7.2.190.0070.01115.36
7.2.180.0000.01615.20
7.2.170.0070.01015.27
7.2.00.0120.00919.64
7.1.330.0080.00816.25
7.1.320.0060.00915.98
7.1.310.0000.01516.10
7.1.300.0000.01215.76
7.1.290.0090.00615.98
7.1.280.0100.00715.81
7.1.270.0060.01315.84
7.1.260.0070.00316.23
7.1.100.0060.00618.18
7.1.70.0040.00417.22
7.1.60.0110.01519.70
7.1.50.0240.01016.97
7.1.00.0100.07022.35
7.0.200.0030.00716.73
7.0.140.0070.07022.12
7.0.60.0100.07019.99
7.0.50.0070.06317.84
7.0.40.0030.04720.26
7.0.30.0300.08020.11
7.0.20.0300.04020.11
7.0.10.0370.06720.02
7.0.00.0030.04720.02
5.6.280.0100.06321.11
5.6.210.0000.05720.46
5.6.200.0100.04718.18
5.6.190.0030.04020.41
5.6.180.3800.03320.49
5.6.170.0330.08320.49
5.6.160.0070.08320.38
5.6.150.0070.04718.22
5.6.140.0170.06718.21
5.6.130.0070.06718.18
5.6.120.0100.07720.96
5.6.110.0100.08021.04
5.6.100.0030.09020.98
5.6.90.0170.08020.94
5.6.80.0000.08320.36
5.6.70.4500.03020.39
5.5.350.0230.07720.47
5.5.340.0030.06317.91
5.5.330.0070.08020.37
5.5.320.0470.07020.41
5.5.310.0200.04720.41
5.5.300.0070.06717.97
5.5.290.0170.07718.02
5.5.280.0030.05020.90
5.5.270.0200.06720.88
5.5.260.0100.08320.87
5.5.250.0030.05320.44
5.5.240.0070.08020.16
5.4.450.1270.05019.47
5.4.440.0770.05719.33
5.4.430.0170.04719.25
5.4.420.0070.05719.11
5.4.410.0130.04719.15
5.4.400.0030.06019.22
5.4.390.0100.05319.07
5.4.380.0100.05318.69
5.4.370.0100.04018.69
5.4.360.0070.05018.50
5.4.350.0030.03711.97
5.4.340.0030.03711.97
5.4.320.0080.03612.46
5.4.310.0040.04012.45
5.4.300.0050.03812.46
5.4.290.0040.04012.45
5.4.280.0060.03712.35
5.4.270.0060.03712.35
5.4.260.0050.03912.35
5.4.250.0050.03912.35
5.4.240.0050.03612.35
5.4.230.0070.03612.34
5.4.220.0050.03612.34
5.4.210.0050.03512.34
5.4.200.0040.03812.34
5.4.190.0090.03612.34
5.4.180.0060.04312.34
5.4.170.0050.03812.35
5.4.160.0050.03812.34
5.4.150.0060.03612.34
5.4.140.0090.03512.03
5.4.130.0090.03312.01
5.4.120.0060.03611.98
5.4.110.0070.03511.96
5.4.100.0040.03711.97
5.4.90.0060.03711.97
5.4.80.0070.03611.97
5.4.70.0050.03611.96
5.4.60.0010.03911.96
5.4.50.0070.03311.96
5.4.40.0070.03411.95
5.4.30.0040.03711.95
5.4.20.0050.03711.95
5.4.10.0040.03711.95
5.4.00.0040.03711.44
5.3.290.0040.04512.80
5.3.280.0060.03712.70
5.3.270.0040.04112.73
5.3.260.0100.03612.72
5.3.250.0050.03812.72
5.3.240.0060.03712.72
5.3.230.0040.03912.71
5.3.220.0060.03612.68
5.3.210.0090.04012.68
5.3.200.0040.04212.68
5.3.190.0030.04112.68
5.3.180.0060.03612.67
5.3.170.0050.03812.67
5.3.160.0040.04012.67
5.3.150.0050.03912.67
5.3.140.0050.03712.66
5.3.130.0060.03912.66
5.3.120.0070.03812.65
5.3.110.0030.04312.66
5.3.100.0070.03612.12
5.3.90.0060.03712.09
5.3.80.0060.03712.07
5.3.70.0080.03512.08
5.3.60.0050.03712.06
5.3.50.0070.03412.00
5.3.40.0050.04112.00
5.3.30.0060.03511.96
5.3.20.0040.03711.74
5.3.10.0040.03711.70
5.3.00.0050.03711.69
5.2.170.0030.0339.19
5.2.160.0040.0299.20
5.2.150.0050.0309.19
5.2.140.0050.0309.19
5.2.130.0060.0299.15
5.2.120.0050.0289.15
5.2.110.0050.0299.16
5.2.100.0030.0309.15
5.2.90.0050.0299.16
5.2.80.0060.0299.15
5.2.70.0060.0299.14
5.2.60.0060.0299.10
5.2.50.0060.0299.07
5.2.40.0060.0299.05
5.2.30.0070.0319.03
5.2.20.0050.0289.03
5.2.10.0050.0288.93
5.2.00.0030.0308.79
5.1.60.0060.0228.07
5.1.50.0040.0258.07
5.1.40.0030.0258.05
5.1.30.0060.0248.40
5.1.20.0030.0298.43
5.1.10.0030.0278.15
5.1.00.0060.0378.15
5.0.50.0050.0246.63
5.0.40.0020.0246.49
5.0.30.0030.0326.30
5.0.20.0030.0206.27
5.0.10.0030.0216.25
5.0.00.0030.0326.24
4.4.90.0040.0154.78
4.4.80.0000.0184.76
4.4.70.0030.0154.75
4.4.60.0030.0154.76
4.4.50.0010.0174.77
4.4.40.0050.0234.71
4.4.30.0030.0154.76
4.4.20.0030.0154.84
4.4.10.0030.0154.85
4.4.00.0030.0244.76
4.3.110.0030.0164.67
4.3.100.0000.0184.66
4.3.90.0020.0154.63
4.3.80.0020.0254.59
4.3.70.0060.0124.63
4.3.60.0010.0164.63
4.3.50.0060.0134.63
4.3.40.0040.0234.54
4.3.30.0010.0173.30
4.3.20.0020.0163.27
4.3.10.0030.0153.23
4.3.00.0170.01314.98

preferences:
47.48 ms | 400 KiB | 5 Q