3v4l.org

run code in 300+ PHP versions simultaneously
<?php function replace_text($text) { return preg_replace('/`([^`]*)`/', '<code>$1</code>', $text); } $text = 'some words and `some code` and some more words'; 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.3.60.0120.00318.55
8.3.50.0120.00618.34
8.3.40.0060.00918.79
8.3.30.0110.00418.93
8.3.20.0080.00020.77
8.3.10.0050.00223.48
8.3.00.0040.00423.66
8.2.180.0120.00616.63
8.2.170.0070.00722.96
8.2.160.0030.01320.53
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00020.94
8.2.110.0040.00420.54
8.2.100.0160.00017.90
8.2.90.0040.00817.84
8.2.80.0030.00518.03
8.2.70.0000.00918.04
8.2.60.0040.00418.16
8.2.50.0030.00518.10
8.2.40.0000.00819.21
8.2.30.0050.00219.34
8.2.20.0000.00817.95
8.2.10.0080.00019.26
8.2.00.0040.00418.01
8.1.280.0120.00625.92
8.1.270.0060.00318.95
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00417.54
8.1.230.0080.00422.76
8.1.220.0060.00317.74
8.1.210.0040.00418.80
8.1.200.0060.00617.48
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0000.00918.72
8.1.160.0050.00218.86
8.1.150.0070.00018.72
8.1.140.0030.00618.82
8.1.130.0000.00719.97
8.1.120.0040.00417.55
8.1.110.0050.00317.50
8.1.100.0070.00417.51
8.1.90.0100.00217.50
8.1.80.0080.00317.50
8.1.70.0100.00217.46
8.1.60.0090.00517.69
8.1.50.0060.00717.66
8.1.40.0060.00817.66
8.1.30.0120.00517.72
8.1.20.0120.00617.66
8.1.10.0100.00517.67
8.1.00.0110.00517.51
8.0.300.0000.00719.85
8.0.290.0000.00716.88
8.0.280.0000.00818.33
8.0.270.0080.00017.27
8.0.260.0000.00618.52
8.0.250.0020.00517.11
8.0.240.0030.00617.07
8.0.230.0040.00716.93
8.0.220.0090.00216.89
8.0.210.0060.00516.91
8.0.200.0090.00516.91
8.0.190.0060.00516.87
8.0.180.0050.00716.93
8.0.170.0070.00416.97
8.0.160.0110.00316.95
8.0.150.0080.00716.89
8.0.140.0110.00416.82
8.0.130.0080.00515.79
8.0.120.0110.00216.99
8.0.110.0080.00616.88
8.0.100.0080.00416.91
8.0.90.0050.00716.92
8.0.80.0060.01116.92
8.0.70.0100.00316.89
8.0.60.0080.00616.88
8.0.50.0090.00516.93
8.0.30.0120.00617.13
8.0.20.0100.01017.15
8.0.10.0100.00517.09
8.0.00.0120.00716.99
7.4.330.0000.00515.55
7.4.320.0030.00316.60
7.4.300.0060.00216.71
7.4.290.0060.00516.71
7.4.280.0120.00416.68
7.4.270.0120.00416.69
7.4.260.0110.00416.65
7.4.250.0050.00716.68
7.4.240.0080.00516.67
7.4.230.0060.00816.80
7.4.220.0070.00416.75
7.4.210.0080.00616.79
7.4.200.0080.00316.76
7.4.190.0100.00216.79
7.4.180.0100.00516.80
7.4.160.0110.00516.67
7.4.150.0100.00216.63
7.4.140.0090.00917.51
7.4.130.0110.00416.56
7.4.120.0130.00316.67
7.4.110.0120.00516.69
7.4.100.0110.00616.68
7.4.90.0080.00816.68
7.4.80.0080.00917.37
7.4.70.0120.00716.66
7.4.60.0100.00816.62
7.4.50.0120.00616.60
7.4.40.0080.00616.63
7.4.30.0070.00516.63
7.4.20.0060.00516.59
7.4.10.0080.00416.59
7.4.00.0090.00416.44
7.3.330.0090.00415.33
7.3.320.0140.00015.36
7.3.310.0100.00416.30
7.3.300.0060.00816.31
7.3.290.0110.00216.33
7.3.280.0130.00416.31
7.3.270.0100.00716.23
7.3.260.0120.00616.53
7.3.250.0110.00616.42
7.3.240.0090.00816.54
7.3.230.0130.00316.37
7.3.220.0090.00916.39
7.3.210.0130.00516.43
7.3.200.0100.00716.41
7.3.190.0130.00616.32
7.3.180.0110.00516.52
7.3.170.0120.00616.35
7.3.160.0100.00716.43
7.3.150.0120.00516.42
7.3.140.0200.00216.29
7.3.130.0130.00616.38
7.3.120.0090.00816.03
7.3.110.0100.00616.05
7.3.100.0090.00816.06
7.3.90.0080.00916.21
7.3.80.0100.00516.18
7.3.70.0100.00816.15
7.3.60.0100.00616.21
7.3.50.0100.00616.21
7.3.40.0090.00616.20
7.3.30.0110.00616.11
7.3.20.0140.00516.87
7.3.10.0250.00616.53
7.3.00.0120.00616.54
7.2.340.0140.00216.47
7.2.330.0130.00616.59
7.2.320.0140.00516.47
7.2.310.0090.00816.57
7.2.300.0130.00516.62
7.2.290.0090.00916.57
7.2.280.0090.00816.60
7.2.270.0130.00416.56
7.2.260.0100.00616.62
7.2.250.0130.00516.52
7.2.240.0100.00816.32
7.2.230.0120.00516.27
7.2.220.0100.00516.24
7.2.210.0060.01016.24
7.2.200.0090.00716.23
7.2.190.0100.00616.28
7.2.180.0100.00616.25
7.2.170.0110.00816.34
7.2.160.0080.00916.40
7.2.150.0120.00517.04
7.2.140.0080.00917.05
7.2.130.0120.00816.86
7.2.120.0080.00816.80
7.2.110.0100.00916.72
7.2.100.0100.00916.73
7.2.90.0130.00816.79
7.2.80.0170.01116.81
7.2.70.0120.00716.74
7.2.60.0100.00816.77
7.2.50.0110.00816.81
7.2.40.0170.00516.80
7.2.30.0100.00716.72
7.2.20.0120.00516.85
7.2.10.0100.00916.75
7.2.00.0130.00716.76
7.1.330.0150.00716.10
7.1.320.0160.00816.06
7.1.310.0120.00716.02
7.1.300.0110.01016.09
7.1.290.0120.00716.08
7.1.280.0140.00715.95
7.1.270.0160.00416.03
7.1.260.0150.00715.99
7.1.250.0110.00815.67
7.1.240.0140.00816.09
7.1.230.0150.00815.99
7.1.220.0160.00716.10
7.1.210.0240.01516.01
7.1.200.0220.01216.00
7.1.190.0240.00716.08
7.1.180.0160.00515.99
7.1.170.0230.00615.93
7.1.160.0130.01015.97
7.1.150.0170.00716.03
7.1.140.0210.00716.01
7.1.130.0180.00616.11
7.1.120.0170.00416.07
7.1.110.0180.00516.18
7.1.100.0220.00816.01
7.1.90.0140.00916.18
7.1.80.0180.00916.10
7.1.70.0170.00716.03
7.1.60.0200.00516.14
7.1.50.0150.00616.20
7.1.40.0150.00716.24
7.1.30.0140.00816.08
7.1.20.0170.00616.22
7.1.10.0160.00816.19
7.1.00.0250.00416.06

preferences:
57.08 ms | 400 KiB | 5 Q