3v4l.org

run code in 300+ PHP versions simultaneously
<?php function replace_text($text) { return preg_replace(array('/(?<!\\\\)`((?:[^`\\\\]|\\\\.)*)`/', '/\\\\`/'), array('<code>$1</code>', '`'), $text); } $text = 'some words \` and `some code` and `some \`more code` again'; echo replace_text($text);

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.5.10.0130.00516.95
8.5.00.0130.01120.40
8.4.160.0070.00323.95
8.4.150.0020.00014.05
8.4.140.0140.00717.81
8.4.130.0140.00717.64
8.4.120.0050.00520.15
8.4.110.0070.00620.77
8.4.100.0060.00317.96
8.4.90.0120.00817.61
8.4.80.0130.00418.05
8.4.70.0140.00818.10
8.4.60.0070.00218.74
8.4.50.0050.00918.85
8.4.40.0100.01019.80
8.4.30.0030.00517.72
8.4.20.0100.00720.27
8.4.10.0060.00317.73
8.3.280.0170.00518.49
8.3.270.0110.00916.49
8.3.260.0100.00916.70
8.3.250.0100.00818.82
8.3.240.0110.00916.66
8.3.230.0050.00516.48
8.3.220.0110.00717.20
8.3.210.0080.00716.61
8.3.200.0050.00416.50
8.3.190.0080.01019.10
8.3.180.0130.00616.47
8.3.170.0060.01220.47
8.3.160.0060.00916.62
8.3.150.0030.00617.42
8.3.140.0110.00316.73
8.3.130.0050.00516.64
8.3.120.0000.00920.69
8.3.110.0100.00020.94
8.3.100.0130.00624.06
8.3.90.0040.00426.77
8.3.80.0090.00317.97
8.3.70.0160.00316.75
8.3.60.0090.00618.56
8.3.50.0090.00617.38
8.3.40.0120.00318.84
8.3.30.0120.00418.53
8.3.20.0060.00320.69
8.3.10.0060.00323.66
8.3.00.0040.00423.64
8.2.290.0150.00420.55
8.2.280.0120.00718.55
8.2.270.0130.00618.92
8.2.260.0110.00716.73
8.2.250.0040.00416.63
8.2.240.0000.00818.53
8.2.230.0040.00422.58
8.2.220.0080.00037.54
8.2.210.0070.00726.77
8.2.200.0060.00318.88
8.2.190.0130.00318.54
8.2.180.0110.00718.66
8.2.170.0110.00622.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0100.00721.07
8.2.110.0160.00322.38
8.2.100.0100.00317.91
8.2.90.0040.00419.88
8.2.80.0050.00317.97
8.2.70.0050.00318.00
8.2.60.0040.00418.22
8.2.50.0050.00318.10
8.2.40.0040.00419.34
8.2.30.0000.00719.32
8.2.20.0030.00618.14
8.2.10.0040.00419.20
8.2.00.0060.00317.89
8.1.330.0100.01022.21
8.1.320.0150.00618.49
8.1.310.0030.00618.60
8.1.300.0110.00719.88
8.1.290.0040.00430.84
8.1.280.0110.01125.92
8.1.270.0060.00323.73
8.1.260.0150.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00020.63
8.1.230.0000.01120.90
8.1.220.0040.00421.02
8.1.210.0000.00818.77
8.1.200.0080.00417.47
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0000.00818.63
8.1.160.0000.00718.90
8.1.150.0070.00018.84
8.1.140.0060.00318.92
8.1.130.0030.00320.09
8.1.120.0000.00817.53
8.1.110.0080.00017.41
8.1.100.0060.00317.43
8.1.90.0100.00017.54
8.1.80.0040.00417.43
8.1.70.0040.00417.48
8.1.60.0060.00317.61
8.1.50.0030.00617.67
8.1.40.0000.00817.53
8.1.30.0000.00917.71
8.1.20.0040.00417.63
8.1.10.0030.00617.55
8.1.00.0070.00017.63
8.0.300.0000.00819.77
8.0.290.0070.00016.88
8.0.280.0040.00418.33
8.0.270.0000.00717.21
8.0.260.0090.00018.38
8.0.250.0070.00017.13
8.0.240.0070.00016.98
8.0.230.0000.00716.96
8.0.220.0070.00016.91
8.0.210.0040.00416.93
8.0.200.0000.00716.98
8.0.190.0050.00316.99
8.0.180.0000.00817.03
8.0.170.0090.00017.00
8.0.160.0000.00716.97
8.0.150.0020.00517.00
8.0.140.0000.00716.96
8.0.130.0000.00713.44
8.0.120.0000.00716.88
8.0.110.0040.00416.96
8.0.100.0040.00417.08
8.0.90.0040.00416.77
8.0.80.0090.01216.94
8.0.70.0040.00416.98
8.0.60.0070.00016.95
8.0.50.0040.00416.86
8.0.30.0090.00617.52
8.0.20.0070.01317.21
8.0.10.0050.00316.96
8.0.00.0130.00716.87
7.4.330.0020.00215.55
7.4.320.0060.00016.66
7.4.300.0030.00316.81
7.4.290.0000.01216.81
7.4.280.0040.00416.70
7.4.270.0040.00416.78
7.4.260.0000.00716.70
7.4.250.0000.00716.83
7.4.240.0080.00016.71
7.4.230.0040.00416.81
7.4.220.0050.00316.68
7.4.210.0070.00916.74
7.4.200.0070.00016.70
7.4.160.0090.00716.74
7.4.140.0110.00917.86
7.4.130.0040.01416.84
7.4.120.0120.00616.78
7.4.110.0040.01416.85
7.4.100.0090.01416.64
7.4.90.0070.01416.72
7.4.80.0150.00619.39
7.4.70.0130.01016.65
7.4.60.0120.00416.51
7.4.50.0070.01016.75
7.4.40.0090.01216.73
7.4.00.0060.00915.30
7.3.330.0030.00313.37
7.3.320.0030.00313.40
7.3.310.0070.00016.42
7.3.300.0040.00416.39
7.3.290.0070.00016.27
7.3.280.0060.01016.32
7.3.260.0110.00816.55
7.3.240.0080.01116.44
7.3.230.0100.00916.34
7.3.210.0100.00716.63
7.3.200.0030.01616.37
7.3.190.0180.00416.79
7.3.180.0130.00316.77
7.3.170.0030.01416.46
7.3.160.0140.00316.82
7.3.10.1140.00314.88
7.3.00.0910.01714.94
7.2.330.0160.00616.69
7.2.320.0040.01216.44
7.2.310.0090.01316.69
7.2.300.0100.01016.84
7.2.290.0110.01316.73
7.2.130.0520.00715.29
7.2.120.0570.00615.22
7.2.110.0510.01015.22
7.2.100.0970.01015.23
7.2.90.0680.00315.21
7.2.80.0630.01415.00
7.2.70.0820.00315.29
7.2.60.0530.00715.14
7.2.50.0540.00615.15
7.2.40.0750.00315.19
7.2.30.0860.00614.89
7.2.20.0680.00714.87
7.2.10.0640.01615.11
7.2.00.0650.00715.00
7.1.250.0610.00314.07

preferences:
167.57 ms | 403 KiB | 5 Q