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) . '|' . $searchTerm2 . "/x", preg_quote($replaceTerm) , $t) . "\n"; echo preg_quote($searchTerm . '|' . $searchTerm2);

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.0120.00316.63
8.3.50.0090.01122.05
8.3.40.0060.00918.92
8.3.30.0140.00019.13
8.3.20.0000.00820.34
8.3.10.0050.00323.61
8.3.00.0030.00518.05
8.2.180.0110.01118.66
8.2.170.0130.00622.96
8.2.160.0130.00720.27
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.09
8.2.110.0090.00021.17
8.2.100.0080.00418.09
8.2.90.0050.00319.40
8.2.80.0000.00817.97
8.2.70.0080.00017.75
8.2.60.0040.00418.04
8.2.50.0030.00718.07
8.2.40.0000.00818.16
8.2.30.0000.00818.28
8.2.20.0000.00717.75
8.2.10.0050.00318.18
8.2.00.0050.00319.60
8.1.280.0150.00425.92
8.1.270.0080.00024.02
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00422.18
8.1.230.0060.00620.64
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0000.01017.35
8.1.190.0000.00917.25
8.1.180.0040.00418.10
8.1.170.0090.00018.78
8.1.160.0000.00721.98
8.1.150.0000.00718.82
8.1.140.0050.00217.50
8.1.130.0000.00717.85
8.1.120.0040.00417.52
8.1.110.0080.00017.50
8.1.100.0040.00417.54
8.1.90.0000.00717.63
8.1.80.0000.00817.65
8.1.70.0030.00317.55
8.1.60.0000.00917.62
8.1.50.0060.00317.60
8.1.40.0070.00017.68
8.1.30.0090.00017.84
8.1.20.0040.00417.74
8.1.10.0000.00717.49
8.1.00.0000.00917.61
8.0.300.0020.00518.77
8.0.290.0040.00416.75
8.0.280.0030.00518.46
8.0.270.0000.00717.13
8.0.260.0040.00417.27
8.0.250.0000.00717.16
8.0.240.0050.00217.03
8.0.230.0030.00316.96
8.0.220.0070.00017.03
8.0.210.0050.00417.02
8.0.200.0030.00316.98
8.0.190.0040.00417.11
8.0.180.0070.00016.92
8.0.170.0000.00816.94
8.0.160.0000.00716.90
8.0.150.0000.00816.98
8.0.140.0030.00516.96
8.0.130.0030.00313.46
8.0.120.0040.00417.01
8.0.110.0030.00517.02
8.0.100.0040.00416.99
8.0.90.0040.00416.98
8.0.80.0070.01117.05
8.0.70.0070.00017.14
8.0.60.0070.00016.88
8.0.50.0030.00617.15
8.0.30.0140.00817.48
8.0.20.0070.01417.40
8.0.10.0040.00417.10
8.0.00.0080.01517.06
7.4.330.0030.00315.10
7.4.320.0030.00316.60
7.4.300.0040.00416.80
7.4.290.0030.00316.77
7.4.280.0030.00316.65
7.4.270.0040.00416.79
7.4.260.0000.00716.70
7.4.250.0040.00416.70
7.4.240.0000.00716.84
7.4.230.0030.00316.81
7.4.220.0030.01416.84
7.4.210.0100.00316.74
7.4.200.0000.00716.84
7.4.160.0130.00816.63
7.4.150.0120.01217.40
7.4.140.0110.00717.86
7.4.130.0070.01216.63
7.4.120.0090.00916.70
7.4.110.0100.01016.81
7.4.100.0130.00716.71
7.4.90.0130.01316.94
7.4.80.0150.00719.39
7.4.70.0110.00816.61
7.4.60.0140.00916.76
7.4.50.0080.00016.68
7.4.40.0040.01116.59
7.4.30.0070.01016.57
7.4.10.0070.01015.90
7.4.00.0030.01415.62
7.3.330.0030.00313.22
7.3.320.0050.00013.20
7.3.310.0070.00016.50
7.3.300.0000.00816.48
7.3.290.0120.00416.54
7.3.280.0070.01116.52
7.3.270.0060.01217.40
7.3.260.0090.00916.43
7.3.250.0060.01116.46
7.3.240.0030.01716.44
7.3.230.0140.00316.85
7.3.210.0080.00816.81
7.3.200.0100.00619.39
7.3.190.0140.00716.85
7.3.180.0030.01316.58
7.3.170.0070.01016.55
7.3.160.0060.01016.46
7.3.130.0080.00915.72
7.3.120.0100.00715.43
7.3.110.0090.00915.85
7.3.100.0080.00615.74
7.3.90.0060.00715.82
7.3.80.0040.00915.60
7.3.70.0080.00715.71
7.3.60.0060.00515.78
7.3.50.0040.01115.71
7.3.40.0050.01215.69
7.3.30.0080.00615.61
7.3.20.0070.00817.60
7.3.10.0040.00817.48
7.3.00.0070.00717.52
7.2.330.0090.00916.88
7.2.320.0140.00416.82
7.2.310.0100.01416.73
7.2.300.0120.01116.73
7.2.290.0060.01116.76
7.2.260.0080.01115.96
7.2.250.0070.01115.98
7.2.240.0070.00615.97
7.2.230.0050.00716.08
7.2.220.0040.00716.00
7.2.210.0080.00516.10
7.2.200.0060.01016.01
7.2.190.0090.00515.91
7.2.180.0060.01015.72
7.2.170.0030.01115.91
7.2.160.0050.01015.93
7.2.150.0070.00717.84
7.2.140.0050.01217.89
7.2.130.0030.01117.79
7.2.120.0070.00517.72
7.2.110.0060.00817.95
7.2.100.0060.00817.89
7.2.90.0070.00617.63
7.2.80.0030.00817.72
7.2.70.0050.00717.94
7.2.60.0050.01117.79
7.2.50.0080.01217.75
7.2.40.0030.01017.87
7.2.30.0030.00717.88
7.2.20.0090.00917.81
7.2.10.0100.00817.78
7.2.00.0090.00818.36
7.1.330.0030.01016.77
7.1.320.0010.01016.79
7.1.310.0040.00916.56
7.1.300.0040.00816.68
7.1.290.0050.00916.78
7.1.280.0050.00716.88
7.1.270.0050.00916.66
7.1.260.0030.01516.74
7.1.250.0050.01016.60
7.1.240.0070.00616.79
7.1.230.0050.00916.81
7.1.220.0100.00416.71
7.1.210.0090.00516.74
7.1.200.0040.01016.55
7.1.190.0050.00716.70
7.1.180.0030.01116.70
7.1.170.0070.00716.84
7.1.160.0050.00716.62
7.1.150.0080.00516.77
7.1.140.0120.00316.84
7.1.130.0060.01116.68
7.1.120.0030.00916.75
7.1.110.0080.00616.69
7.1.100.0070.01017.28
7.1.90.0050.00716.85
7.1.80.0050.00516.86
7.1.70.0070.00417.03
7.1.60.0100.01117.75
7.1.50.0160.00616.78
7.1.40.0060.00816.77
7.1.30.0120.00316.74
7.1.20.0090.00816.80
7.1.10.0070.00616.76
7.1.00.0050.02918.60
7.0.330.0070.00716.27
7.0.320.0060.00316.38
7.0.310.0020.01116.46
7.0.300.0090.00316.29
7.0.290.0070.00616.47
7.0.280.0040.00616.47
7.0.270.0050.00916.30
7.0.260.0030.00816.34
7.0.250.0060.00916.48
7.0.240.0080.00616.37
7.0.230.0040.00916.46
7.0.220.0050.00616.51
7.0.210.0080.00516.51
7.0.200.0080.00316.68
7.0.190.0060.00816.40
7.0.180.0030.01116.23
7.0.170.0020.01116.41
7.0.160.0080.01016.35
7.0.150.0080.00716.19
7.0.140.0050.03118.22
7.0.130.0070.00616.42
7.0.120.0100.00416.30
7.0.110.0070.00516.43
7.0.100.0020.01416.33
7.0.90.0050.00916.38
7.0.80.0060.00816.35
7.0.70.0080.00916.56
7.0.60.0090.02817.67
7.0.50.0050.02316.85
7.0.40.0090.01716.23
7.0.30.0100.02316.35
7.0.20.0120.03116.31
7.0.10.0090.03316.36
7.0.00.0080.03416.42
5.6.400.0050.01015.10
5.6.390.0080.00515.14
5.6.380.0020.01015.16
5.6.370.0050.00715.32
5.6.360.0050.00815.30
5.6.350.0040.00715.04
5.6.340.0050.01015.13
5.6.330.0060.00815.39
5.6.320.0080.00515.17
5.6.310.0040.00915.06
5.6.300.0100.00415.24
5.6.290.0100.00615.17
5.6.280.0070.02817.16
5.6.270.0020.01215.36
5.6.260.0030.01115.21
5.6.250.0040.00915.25
5.6.240.0070.01015.24
5.6.230.0070.00915.15
5.6.220.0090.00715.12
5.6.210.0070.03416.93
5.6.200.0050.02016.07
5.6.190.0140.01816.87
5.6.180.1460.01816.91
5.6.170.0150.02316.84
5.6.160.0050.02417.02
5.6.150.0050.02516.15
5.6.140.0070.01916.13
5.6.130.0080.03016.10
5.6.120.0090.02617.15
5.6.110.0050.03417.05
5.6.100.0060.02817.12
5.6.90.0110.03317.05
5.6.80.0080.03116.88
5.6.70.0070.00715.18
5.6.60.0030.01115.11
5.6.50.0090.00315.18
5.6.40.0030.01015.17
5.6.30.0050.00815.08
5.6.20.0030.01015.24
5.6.10.0030.00915.04
5.6.00.0080.00815.13
5.5.380.0070.01115.29
5.5.370.0100.00914.98
5.5.360.0050.01515.01
5.5.350.1410.02116.79
5.5.340.0110.02816.06
5.5.330.0050.02516.69
5.5.320.0160.02316.82
5.5.310.0160.01916.88
5.5.300.0100.02916.03
5.5.290.0060.02416.11
5.5.280.0140.02717.02
5.5.270.0060.03417.09
5.5.260.0090.03416.88
5.5.250.0100.02116.84
5.5.240.0100.02816.77
5.5.230.0050.01115.05
5.5.220.0100.00615.04
5.5.210.0040.00915.17
5.5.200.0090.00514.89
5.5.190.0090.00415.04
5.5.180.0050.01015.03
5.5.170.0070.00715.05
5.5.160.0080.00614.76
5.5.150.0070.00515.15
5.5.140.0070.00714.86
5.5.130.0070.00915.04
5.5.120.0090.00815.04
5.5.110.0050.01114.91
5.5.100.0080.00715.18
5.5.90.0050.01115.03
5.5.80.0060.00515.11
5.5.70.0020.01415.00
5.5.60.0060.00815.01
5.5.50.0150.00014.97
5.5.40.0130.00515.07
5.5.30.0020.01114.89
5.5.20.0020.01015.02
5.5.10.0100.00514.88
5.5.00.0070.00715.14
5.4.450.0200.01914.89
5.4.440.0130.01514.94
5.4.430.0400.01214.84
5.4.420.0150.01914.92
5.4.410.0150.03214.89
5.4.400.0510.01814.80
5.4.390.0380.01914.91
5.4.380.0150.02014.65
5.4.370.0160.02114.62
5.4.360.0150.01814.64
5.4.350.0140.02514.67
5.4.340.0170.02514.65
5.4.330.0030.00812.66
5.4.320.0060.01712.54
5.4.310.0030.01912.55
5.4.300.0040.01712.54
5.4.290.0060.01512.52
5.4.280.0060.01612.53
5.4.270.0040.01812.52
5.4.260.0040.01812.57
5.4.250.0040.01812.54
5.4.240.0010.01812.53
5.4.230.0050.01712.54
5.4.220.0020.01812.51
5.4.210.0050.01612.51
5.4.200.0080.01512.59
5.4.190.0080.01312.52
5.4.180.0050.01812.54
5.4.170.0060.01612.54
5.4.160.0040.01712.48
5.4.150.0070.01412.58
5.4.140.0080.01412.52
5.4.130.0060.01512.48
5.4.120.0010.01812.40
5.4.110.0020.01912.44
5.4.100.0050.01512.42
5.4.90.0030.01712.39
5.4.80.0070.01512.44
5.4.70.0020.01812.43
5.4.60.0070.01412.39
5.4.50.0060.01412.46
5.4.40.0050.01612.43
5.4.30.0050.01512.39
5.4.20.0080.01412.45
5.4.10.0060.01512.43
5.4.00.0080.01512.20
5.3.290.0050.01712.97
5.3.280.0050.01712.81
5.3.270.0070.01512.81
5.3.260.0060.01712.92
5.3.250.0020.02012.83
5.3.240.0040.01812.80
5.3.230.0050.01612.82
5.3.220.0070.01512.75
5.3.210.0070.01612.77
5.3.200.0050.01812.81
5.3.190.0080.01512.79
5.3.180.0060.01712.80
5.3.170.0040.01712.83
5.3.160.0050.01612.83
5.3.150.0040.01912.77
5.3.140.0060.01712.80
5.3.130.0050.01812.78
5.3.120.0070.01712.77
5.3.110.0060.01612.74
5.3.100.0050.02012.59
5.3.90.0070.01612.61
5.3.80.0060.01912.52
5.3.70.0070.01512.54
5.3.60.0090.01512.61
5.3.50.0070.01512.47
5.3.40.0110.01312.52
5.3.30.0100.01612.53
5.3.20.0070.01812.44
5.3.10.0060.01812.37
5.3.00.0070.01812.38
5.2.170.0050.0299.20
5.2.160.0030.0319.20
5.2.150.0030.0319.20
5.2.140.0040.0309.19
5.2.130.0050.0279.16
5.2.120.0060.0279.16
5.2.110.0040.0299.17
5.2.100.0040.0289.16
5.2.90.0060.0309.16
5.2.80.0030.0339.16
5.2.70.0050.0299.16
5.2.60.0080.0289.11
5.2.50.0070.0289.08
5.2.40.0040.0299.06
5.2.30.0050.0299.04
5.2.20.0040.0299.03
5.2.10.0050.0288.94
5.2.00.0040.0318.79
5.1.60.0060.0218.07
5.1.50.0040.0248.07
5.1.40.0050.0238.05
5.1.30.0040.0258.40
5.1.20.0040.0268.43
5.1.10.0030.0268.15
5.1.00.0030.0268.15
5.0.50.0040.0206.63
5.0.40.0020.0216.48
5.0.30.0050.0296.30
5.0.20.0010.0216.27
5.0.10.0060.0196.25
5.0.00.0040.0306.24
4.4.90.0030.0154.78
4.4.80.0030.0154.75
4.4.70.0030.0164.75
4.4.60.0040.0144.75
4.4.50.0030.0144.77
4.4.40.0010.0274.71
4.4.30.0020.0164.76
4.4.20.0010.0174.84
4.4.10.0020.0164.84
4.4.00.0010.0274.76
4.3.110.0040.0144.67
4.3.100.0010.0174.66
4.3.90.0020.0154.64
4.3.80.0060.0224.58
4.3.70.0040.0144.63
4.3.60.0040.0134.63
4.3.50.0050.0134.63
4.3.40.0030.0244.54
4.3.30.0040.0143.30
4.3.20.0020.0163.28
4.3.10.0010.0173.23
4.3.00.0170.01314.98

preferences:
71.49 ms | 401 KiB | 5 Q