3v4l.org

run code in 300+ PHP versions simultaneously
<?php $searchTerm = "ΓΌ"; $replaceTerm = "%FC"; $test=array("${searchTerm}/${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.0130.01016.74
8.3.50.0090.00822.10
8.3.40.0150.00419.22
8.3.30.0040.01119.13
8.3.20.0020.00520.34
8.3.10.0080.00023.67
8.3.00.0080.00017.68
8.2.180.0120.00916.75
8.2.170.0080.00822.96
8.2.160.0070.00720.43
8.2.150.0000.00824.18
8.2.140.0100.00024.66
8.2.130.0030.00526.16
8.2.120.0070.00020.97
8.2.110.0040.00421.11
8.2.100.0100.00317.86
8.2.90.0000.00819.34
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0000.00817.93
8.2.50.0000.01018.07
8.2.40.0040.00418.22
8.2.30.0060.00318.15
8.2.20.0070.00017.82
8.2.10.0080.00019.86
8.2.00.0030.00519.53
8.1.280.0090.00625.92
8.1.270.0120.00323.98
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.06
8.1.230.0080.00320.61
8.1.220.0050.00317.78
8.1.210.0030.00618.77
8.1.200.0040.00717.35
8.1.190.0030.00517.35
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0000.00722.00
8.1.150.0040.00418.89
8.1.140.0050.00317.64
8.1.130.0000.00717.85
8.1.120.0050.00217.62
8.1.110.0000.00817.50
8.1.100.0000.00717.67
8.1.90.0070.00017.49
8.1.80.0040.00417.62
8.1.70.0000.00717.48
8.1.60.0030.00617.62
8.1.50.0030.00617.70
8.1.40.0040.00417.65
8.1.30.0040.00417.79
8.1.20.0040.00417.69
8.1.10.0050.00317.62
8.1.00.0000.00817.55
8.0.300.0070.00018.77
8.0.290.0030.00516.88
8.0.280.0070.00018.46
8.0.270.0030.00317.20
8.0.260.0000.00717.27
8.0.250.0070.00017.03
8.0.240.0030.00617.12
8.0.230.0000.00717.01
8.0.220.0030.00316.99
8.0.210.0100.00016.99
8.0.200.0030.00316.98
8.0.190.0000.00717.12
8.0.180.0000.00716.95
8.0.170.0030.00517.04
8.0.160.0000.00716.95
8.0.150.0070.00017.08
8.0.140.0050.00216.89
8.0.130.0060.00013.47
8.0.120.0040.00416.91
8.0.110.0000.00717.00
8.0.100.0000.00716.97
8.0.90.0080.00016.86
8.0.80.0060.01117.09
8.0.70.0000.00716.88
8.0.60.0040.00416.83
8.0.50.0040.00417.06
8.0.30.0110.01317.35
8.0.20.0130.00717.50
8.0.10.0030.00517.11
8.0.00.0150.00616.92
7.4.330.0030.00315.00
7.4.320.0060.00016.70
7.4.300.0000.00816.71
7.4.290.0070.00016.62
7.4.280.0000.00816.69
7.4.270.0000.00816.82
7.4.260.0090.00016.71
7.4.250.0000.00816.75
7.4.240.0060.00116.76
7.4.230.0030.00316.84
7.4.220.0100.00716.84
7.4.210.0070.00716.64
7.4.200.0000.00716.61
7.4.160.0070.01016.77
7.4.150.0070.01317.40
7.4.140.0140.00517.86
7.4.130.0060.01116.86
7.4.120.0130.00716.68
7.4.110.0120.01516.75
7.4.100.0160.00616.55
7.4.90.0040.02016.69
7.4.80.0070.01619.39
7.4.70.0110.00616.82
7.4.60.0000.01716.72
7.4.50.0000.00716.73
7.4.40.0100.00716.56
7.4.30.0050.01116.81
7.4.00.0100.00314.86
7.3.330.0050.00013.32
7.3.320.0050.00013.31
7.3.310.0030.00316.56
7.3.300.0030.00316.50
7.3.290.0070.01016.58
7.3.280.0080.01316.48
7.3.270.0100.00717.40
7.3.260.0120.01216.70
7.3.250.0100.00716.44
7.3.240.0000.01816.80
7.3.230.0090.00916.80
7.3.210.0110.00716.58
7.3.200.0190.00319.39
7.3.190.0130.00616.70
7.3.180.0110.00616.45
7.3.170.0130.01016.49
7.3.160.0130.00516.67
7.3.120.0070.00714.91
7.2.330.0170.00017.02
7.2.320.0130.00616.96
7.2.310.0090.00916.85
7.2.300.0200.00316.68
7.2.290.0070.01016.80
7.2.60.0060.01017.12
7.2.50.0130.00717.07
7.2.00.0100.01019.69
7.1.200.0090.00316.12
7.1.100.0000.01018.45
7.1.70.0030.00717.29
7.1.60.0070.01719.70
7.1.50.0210.00617.10
7.1.00.0030.07322.37
7.0.200.0040.00416.99
7.0.140.0030.07322.15
7.0.60.0030.09019.91
7.0.50.0070.07017.81
7.0.40.0070.04320.05
7.0.30.0270.08320.01
7.0.20.0200.05320.14
7.0.10.0070.07020.21
7.0.00.0100.06019.96
5.6.210.0070.07320.67
5.6.200.0130.03018.19
5.6.190.0100.06720.64
5.6.180.0130.04720.60
5.6.170.0330.07320.38
5.6.160.0030.06020.44
5.6.150.0070.06018.17
5.6.140.0070.08018.18
5.6.130.0070.05018.16
5.6.120.0070.05021.02
5.6.110.0100.05321.04
5.6.100.0100.08021.10
5.6.90.0130.07721.02
5.6.80.0030.07020.53
5.5.350.3670.03720.34
5.5.340.0100.05717.96
5.5.330.0000.04320.43
5.5.320.0270.08020.32
5.5.310.0230.07020.21
5.5.300.0070.07717.96
5.5.290.0030.05717.89
5.5.280.0070.05020.88
5.5.270.0070.04020.88
5.5.260.0200.08020.68
5.5.250.0130.08020.54
5.5.240.0100.04720.15
5.4.450.0200.07019.59
5.4.440.0200.06719.46
5.4.430.0200.04319.17
5.4.420.0070.06019.45
5.4.410.0030.06019.34
5.4.400.0000.06019.18
5.4.390.0130.05719.13
5.4.380.0170.05018.69
5.4.370.0100.05318.50
5.4.360.0130.03318.67
5.4.350.0060.04611.98
5.4.340.0080.03311.97
5.4.320.0090.04012.46
5.4.310.0060.03712.45
5.4.300.0050.03612.46
5.4.290.0050.03712.45
5.4.280.0060.03312.35
5.4.270.0040.03712.35
5.4.260.0070.03812.35
5.4.250.0030.03912.35
5.4.240.0090.03112.35
5.4.230.0050.03712.34
5.4.220.0020.03912.34
5.4.210.0070.03512.34
5.4.200.0050.03712.34
5.4.190.0030.03712.34
5.4.180.0040.03812.34
5.4.170.0050.03612.35
5.4.160.0040.03612.34
5.4.150.0040.03712.34
5.4.140.0040.03712.02
5.4.130.0050.03512.01
5.4.120.0040.03611.97
5.4.110.0060.03411.96
5.4.100.0040.03611.96
5.4.90.0050.03611.97
5.4.80.0050.03611.97
5.4.70.0030.03711.96
5.4.60.0050.03411.96
5.4.50.0070.03211.96
5.4.40.0080.03211.95
5.4.30.0050.03511.95
5.4.20.0070.03211.95
5.4.10.0050.03411.95
5.4.00.0030.03811.44
5.3.290.0070.04812.80
5.3.280.0050.03812.71
5.3.270.0040.04012.73
5.3.260.0070.03712.72
5.3.250.0060.03712.72
5.3.240.0080.03712.72
5.3.230.0040.03912.71
5.3.220.0040.03912.68
5.3.210.0060.03812.68
5.3.200.0050.03912.68
5.3.190.0040.03912.68
5.3.180.0100.03112.67
5.3.170.0040.03812.67
5.3.160.0030.03912.67
5.3.150.0060.03812.68
5.3.140.0050.03612.66
5.3.130.0060.03812.66
5.3.120.0050.03912.66
5.3.110.0070.03712.66
5.3.100.0040.03812.11
5.3.90.0060.03512.08
5.3.80.0050.03612.07
5.3.70.0070.03412.08
5.3.60.0060.03512.06
5.3.50.0070.03512.00
5.3.40.0030.03812.00
5.3.30.0050.03411.96
5.3.20.0050.03511.73
5.3.10.0060.03311.70
5.3.00.0040.03711.69
5.2.170.0090.0259.20
5.2.160.0050.0299.19
5.2.150.0020.0329.19
5.2.140.0040.0309.19
5.2.130.0030.0309.15
5.2.120.0040.0299.15
5.2.110.0060.0279.16
5.2.100.0020.0309.14
5.2.90.0050.0309.15
5.2.80.0060.0299.15
5.2.70.0050.0349.15
5.2.60.0040.0299.10
5.2.50.0050.0289.07
5.2.40.0000.0329.05
5.2.30.0020.0319.03
5.2.20.0030.0299.02
5.2.10.0030.0288.92
5.2.00.0060.0268.78
5.1.60.0060.0228.07
5.1.50.0020.0268.07
5.1.40.0050.0238.04
5.1.30.0020.0278.39
5.1.20.0050.0248.41
5.1.10.0030.0268.14
5.1.00.0040.0248.14
5.0.50.0040.0196.63
5.0.40.0050.0176.49
5.0.30.0020.0326.30
5.0.20.0030.0226.27
5.0.10.0030.0206.25
5.0.00.0020.0306.24
4.4.90.0030.0154.78
4.4.80.0040.0134.76
4.4.70.0050.0124.76
4.4.60.0020.0154.76
4.4.50.0000.0174.77
4.4.40.0060.0214.71
4.4.30.0030.0154.76
4.4.20.0040.0144.84
4.4.10.0030.0154.85
4.4.00.0020.0264.76
4.3.110.0000.0184.67
4.3.100.0020.0154.66
4.3.90.0040.0134.63
4.3.80.0030.0234.58
4.3.70.0040.0134.63
4.3.60.0050.0114.63
4.3.50.0020.0164.63
4.3.40.0010.0254.53
4.3.30.0030.0153.29
4.3.20.0040.0163.27
4.3.10.0050.0153.23
4.3.00.0200.0176.70

preferences:
58.45 ms | 401 KiB | 5 Q