3v4l.org

run code in 300+ PHP versions simultaneously
<?php $searchTerm = "ΓΌ"; $searchTerm2 = "&uuml;"; $replaceTerm = "%FC"; $regex = "/". preg_quote($searchTerm) . '|' . $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.0120.00916.63
8.3.50.0120.00722.17
8.3.40.0100.00719.04
8.3.30.0110.00419.04
8.3.20.0000.00920.22
8.3.10.0030.00523.28
8.3.00.0030.00617.87
8.2.180.0180.00416.50
8.2.170.0110.00422.96
8.2.160.0000.01520.22
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00021.11
8.2.110.0060.00320.37
8.2.100.0060.00618.03
8.2.90.0040.00419.48
8.2.80.0030.00517.97
8.2.70.0060.00317.75
8.2.60.0000.00817.91
8.2.50.0070.00318.07
8.2.40.0040.00419.88
8.2.30.0050.00318.28
8.2.20.0040.00417.71
8.2.10.0040.00418.15
8.2.00.0040.00417.84
8.1.280.0120.00625.92
8.1.270.0080.00823.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00322.07
8.1.230.0080.00420.86
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0030.00717.35
8.1.180.0050.00318.10
8.1.170.0030.00618.79
8.1.160.0050.00222.10
8.1.150.0050.00218.80
8.1.140.0050.00217.63
8.1.130.0070.00017.85
8.1.120.0000.00817.62
8.1.110.0000.00717.53
8.1.100.0040.00417.61
8.1.90.0000.00817.64
8.1.80.0070.00017.55
8.1.70.0030.00317.52
8.1.60.0000.00717.73
8.1.50.0050.00317.66
8.1.40.0040.00417.56
8.1.30.0030.00517.80
8.1.20.0040.00417.76
8.1.10.0000.00817.54
8.1.00.0040.00417.55
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.47
8.0.270.0000.00817.19
8.0.260.0030.00517.21
8.0.250.0030.00317.11
8.0.240.0080.00016.98
8.0.230.0030.00317.16
8.0.220.0070.00017.02
8.0.210.0100.00016.95
8.0.200.0070.00017.11
8.0.190.0000.00817.14
8.0.180.0030.00517.09
8.0.170.0000.00817.07
8.0.160.0070.00016.93
8.0.150.0050.00316.93
8.0.140.0040.00416.97
8.0.130.0030.00313.53
8.0.120.0040.00416.98
8.0.110.0060.00317.02
8.0.100.0040.00416.97
8.0.90.0000.00817.05
8.0.80.0130.00617.04
8.0.70.0000.00717.03
8.0.60.0000.00716.94
8.0.50.0040.00417.10
8.0.30.0120.00817.40
8.0.20.0100.01317.40
8.0.10.0040.00417.21
8.0.00.0110.00816.90
7.4.330.0020.00215.22
7.4.320.0030.00316.79
7.4.300.0000.00916.66
7.4.290.0020.00516.79
7.4.280.0030.00316.77
7.4.270.0030.00316.74
7.4.260.0030.00716.79
7.4.250.0050.00316.67
7.4.240.0050.00216.83
7.4.230.0030.00316.79
7.4.220.0070.01116.75
7.4.210.0160.00016.77
7.4.200.0040.00416.51
7.4.160.0000.01716.86
7.4.150.0090.00917.40
7.4.140.0140.00917.86
7.4.130.0070.01016.66
7.4.120.0080.00816.72
7.4.110.0100.01716.48
7.4.100.0090.01216.86
7.4.90.0110.00716.53
7.4.80.0150.00319.39
7.4.70.0070.01016.65
7.4.60.0070.01416.65
7.4.50.0000.00416.31
7.4.40.0120.00616.59
7.4.30.0090.00616.71
7.4.00.0030.00915.39
7.3.330.0030.00313.45
7.3.320.0050.00013.21
7.3.310.0000.00716.30
7.3.300.0000.00716.32
7.3.290.0040.01416.51
7.3.280.0130.00516.46
7.3.270.0140.00417.40
7.3.260.0130.01316.52
7.3.250.0090.00816.41
7.3.240.0130.00716.80
7.3.230.0060.01216.75
7.3.210.0100.00616.58
7.3.200.0100.00719.39
7.3.190.0050.01316.34
7.3.180.0120.00316.47
7.3.170.0100.00616.73
7.3.160.0080.00816.93
7.3.120.0030.01015.09
7.3.10.0180.01216.47
7.3.00.0040.01116.62
7.2.330.0120.00616.80
7.2.320.0090.00916.64
7.2.310.0100.00717.01
7.2.300.0170.00916.77
7.2.290.0090.01516.82
7.2.130.0150.00417.08
7.2.120.0180.00617.00
7.2.110.0200.00616.93
7.2.100.0100.00717.01
7.2.90.0170.00716.92
7.2.80.0100.00717.07
7.2.70.0170.00816.81
7.2.60.0110.00917.07
7.2.50.0210.00916.97
7.2.40.0050.01216.92
7.2.30.0170.00416.81
7.2.20.0040.01116.85
7.2.10.0230.00616.92
7.2.00.0200.00717.96
7.1.250.0180.00515.70
7.1.240.0030.01215.67
7.1.230.0030.00915.97
7.1.220.0060.00315.68
7.1.210.0040.00416.15
7.1.200.0130.00315.80
7.1.190.0030.00716.18
7.1.180.0070.00316.16
7.1.170.0100.00715.90
7.1.160.0030.00715.71
7.1.150.0030.01015.98
7.1.140.0120.00615.84
7.1.130.0090.00615.77
7.1.120.0110.00416.06
7.1.110.0000.00916.11
7.1.100.0050.00816.94
7.1.90.0030.00716.03
7.1.80.0070.00316.14
7.1.70.0090.00516.67
7.1.60.0070.00516.58
7.1.50.0130.01225.63
7.1.40.0090.00316.02
7.1.30.0100.00715.98
7.1.20.0060.00915.71
7.1.10.0070.00715.89
7.1.00.0070.04019.16
7.0.330.0130.00315.66
7.0.320.0140.00315.64
7.0.310.0030.00615.30
7.0.300.0090.00015.28
7.0.290.0060.00915.18
7.0.280.0110.00415.22
7.0.270.0000.01515.44
7.0.260.0060.00615.39
7.0.250.0090.00615.50
7.0.240.0150.00015.27
7.0.230.0030.00615.48
7.0.220.0080.00815.75
7.0.210.0060.00615.14
7.0.200.0020.00916.19
7.0.190.0030.00515.49
7.0.180.0030.00615.72
7.0.170.0030.00915.63
7.0.160.0100.00715.69
7.0.150.0060.00315.23
7.0.140.0030.04218.84
7.0.130.0070.00315.62
7.0.120.0040.00815.38
7.0.110.0090.00015.71
7.0.100.0000.01515.32
7.0.90.0000.01215.24
7.0.80.0020.01315.46
7.0.70.0090.00315.52
7.0.60.0150.03817.86
7.0.50.0060.04416.74
7.0.40.0120.04216.72
7.0.30.0140.03816.81
7.0.20.0190.02816.88
7.0.10.0060.03816.68
7.0.00.0040.04216.83
5.6.380.0040.01114.04
5.6.370.0070.00314.52
5.6.360.0030.01014.34
5.6.350.0030.00614.25
5.6.340.0070.00714.19
5.6.330.0030.00914.41
5.6.320.0040.00814.09
5.6.310.0040.01114.10
5.6.300.0040.00414.18
5.6.290.0000.00714.47
5.6.280.0060.03817.69
5.6.270.0000.00914.12
5.6.260.0030.00814.45
5.6.250.0090.00314.13
5.6.240.0070.00713.98
5.6.230.0030.00514.46
5.6.220.0070.00314.39
5.6.210.0060.02117.56
5.6.200.0060.02116.26
5.6.190.0110.02517.22
5.6.180.1470.02217.38
5.6.170.0200.03517.41
5.6.160.0030.03517.35
5.6.150.0060.04316.22
5.6.140.0130.03816.29
5.6.130.0040.03516.16
5.6.120.0070.04217.65
5.6.110.0080.04517.65
5.6.100.0030.04817.60
5.6.90.0100.04317.48
5.6.80.0120.04017.30
5.6.70.0370.02217.30
5.6.60.0030.00714.41
5.6.50.0060.00914.27
5.6.40.0100.00313.95
5.6.30.0120.00314.25
5.6.20.0080.00314.29
5.6.10.0070.00714.25
5.6.00.0080.00314.38
5.5.380.0030.00310.93
5.5.370.0000.01111.34
5.5.360.0030.00710.80
5.5.350.0050.03015.86
5.5.340.0020.02214.44
5.5.330.0070.03515.73
5.5.320.0210.03815.56
5.5.310.0080.02515.59
5.5.300.0030.02114.52
5.5.290.0110.04214.68
5.5.280.0060.04316.06
5.5.270.0070.03316.14
5.5.260.0050.02016.00
5.5.250.0050.02915.88
5.5.240.0110.02615.53
5.5.230.0030.00510.77
5.5.220.0050.00010.85
5.5.210.0030.01011.15
5.5.200.0030.00311.16
5.5.190.0000.01211.06
5.5.180.0000.00911.26
5.5.170.0070.00410.92
5.5.160.0030.00711.13
5.5.150.0030.00510.90
5.5.140.0000.01011.20
5.5.130.0060.00611.28
5.5.120.0030.00610.75
5.5.110.0050.00511.22
5.5.100.0060.00610.89
5.5.90.0030.00311.06
5.5.80.0000.01311.07
5.5.70.0040.00710.96
5.5.60.0030.00311.00
5.5.50.0080.00010.73
5.5.40.0060.00611.10
5.5.30.0060.00311.03
5.5.20.0090.00310.80
5.5.10.0030.00311.14
5.5.00.0030.00911.11
5.4.450.0490.02915.33
5.4.440.0100.03815.22
5.4.430.0050.03015.22
5.4.420.0110.03315.16
5.4.410.0100.03515.10
5.4.400.0090.02515.17
5.4.390.0070.03215.00
5.4.380.0100.03114.92
5.4.370.0100.02714.55
5.4.360.0100.03014.89
5.4.350.0060.02011.36
5.4.340.0060.02211.53
5.4.330.0060.00611.13
5.4.320.0030.02411.74
5.4.310.0090.02011.81
5.4.300.0050.02311.64
5.4.290.0070.02211.74
5.4.280.0040.02511.78
5.4.270.0050.02211.62
5.4.260.0060.02211.63
5.4.250.0040.02211.53
5.4.240.0050.02911.67
5.4.230.0050.02711.56
5.4.220.0050.02311.73
5.4.210.0040.02311.65
5.4.200.0070.02111.61
5.4.190.0030.02211.60
5.4.180.0070.01711.50
5.4.170.0060.02111.60
5.4.160.0060.01811.72
5.4.150.0060.02011.65
5.4.140.0040.02311.59
5.4.130.0050.02011.60
5.4.120.0020.02211.60
5.4.110.0040.02311.42
5.4.100.0070.02111.38
5.4.90.0040.02311.39
5.4.80.0060.02011.34
5.4.70.0060.01811.48
5.4.60.0070.02111.44
5.4.50.0050.02311.30
5.4.40.0020.02311.36
5.4.30.0040.02311.46
5.4.20.0070.01911.41
5.4.10.0050.02011.39
5.4.00.0060.02011.29
5.3.290.0080.02511.70
5.3.280.0050.02211.61
5.3.270.0030.02611.55
5.3.260.0040.02311.65
5.3.250.0050.02211.55
5.3.240.0020.02711.63
5.3.230.0060.02011.58
5.3.220.0020.02411.49
5.3.210.0070.02411.55
5.3.200.0070.01911.47
5.3.190.0040.02511.60
5.3.180.0020.02311.53
5.3.170.0080.02411.58
5.3.160.0070.02311.51
5.3.150.0070.02311.57
5.3.140.0070.02111.52
5.3.130.0040.02211.56
5.3.120.0050.02111.58
5.3.110.0050.02211.59
5.3.100.0050.02111.21
5.3.90.0010.02311.34
5.3.80.0050.01911.22
5.3.70.0040.02211.23
5.3.60.0040.02011.20
5.3.50.0080.01911.07
5.3.40.0070.02311.16
5.3.30.0050.02111.05
5.3.20.0050.02111.08
5.3.10.0070.01910.99
5.3.00.0060.01910.92
5.2.170.0060.0159.34
5.2.160.0050.0219.35
5.2.150.0060.0179.40
5.2.140.0050.0169.25
5.2.130.0020.0199.15
5.2.120.0060.0169.18
5.2.110.0050.0169.30
5.2.100.0040.0199.31
5.2.90.0050.0189.29
5.2.80.0030.0209.24
5.2.70.0030.0209.20
5.2.60.0040.0179.17
5.2.50.0050.0199.23
5.2.40.0010.0219.14
5.2.30.0030.0179.16
5.2.20.0070.0149.15
5.2.10.0040.0179.12
5.2.00.0060.0148.97
5.1.60.0070.0108.26
5.1.50.0060.0148.18
5.1.40.0040.0198.36
5.1.30.0040.0178.56
5.1.20.0070.0148.40
5.1.10.0030.0168.33
5.1.00.0060.0148.25
5.0.50.0010.0157.19
5.0.40.0050.0097.12
5.0.30.0050.0167.03
5.0.20.0050.0097.01
5.0.10.0050.0107.00
5.0.00.0050.0157.00
4.4.90.0020.0106.27
4.4.80.0030.0096.26
4.4.70.0050.0086.25
4.4.60.0020.0126.25
4.4.50.0030.0106.26
4.4.40.0040.0146.23
4.4.30.0000.0126.26
4.4.20.0020.0096.30
4.4.10.0010.0116.30
4.4.00.0030.0156.26
4.3.110.0020.0096.21
4.3.100.0030.0086.21
4.3.90.0020.0106.19
4.3.80.0010.0156.17
4.3.70.0030.0086.19
4.3.60.0020.0096.19
4.3.50.0020.0116.19
4.3.40.0020.0146.14
4.3.30.0020.0105.52
4.3.20.0030.0095.51
4.3.10.0020.0095.49
4.3.00.0100.01111.37

preferences:
78.54 ms | 401 KiB | 5 Q