3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = ' [My Test URL 1|https://www.mywebsite.com/test?param=1] [My Test URL 2|https://www.mywebsite.com/test?param=2] [My Test URL 3|https://www.mywebsite.com/test?param=3] [My Test URL 4|https://www.mywebsite.com/test?param=4] '; echo preg_replace('/\[(.*?)[|](.*?)\]/', '<a href="$2">$1</a>', $html);

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.0080.01018.59
8.5.00.0120.01120.15
8.4.160.0130.01119.74
8.4.150.0020.00014.05
8.4.140.0100.01117.75
8.4.130.0100.00717.97
8.4.120.0130.00624.05
8.4.110.0100.00722.47
8.4.100.0110.00719.07
8.4.90.0090.00220.50
8.4.80.0120.01018.86
8.4.70.0060.00218.05
8.4.60.0130.00818.80
8.4.50.0060.00518.60
8.4.40.0170.00318.04
8.4.30.0110.00018.53
8.4.20.0070.01319.74
8.4.10.0060.00319.62
8.3.280.0130.00618.43
8.3.270.0140.00716.88
8.3.260.0040.00417.04
8.3.250.0110.00718.69
8.3.240.0150.00516.54
8.3.230.0100.00916.67
8.3.220.0100.00818.74
8.3.210.0130.00716.60
8.3.200.0060.00316.63
8.3.190.0100.00517.18
8.3.180.0100.00617.29
8.3.170.0130.00618.80
8.3.160.0060.01316.85
8.3.150.0100.00617.16
8.3.140.0030.00616.66
8.3.130.0040.00418.47
8.3.120.0070.01118.81
8.3.110.0040.00820.94
8.3.100.0030.00616.45
8.3.90.0150.00326.77
8.3.80.0030.00616.50
8.3.70.0140.00718.43
8.3.60.0120.00316.75
8.3.50.0070.01418.22
8.3.40.0130.00320.48
8.3.30.0090.00618.61
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0080.00026.16
8.2.290.0110.00820.19
8.2.280.0110.00818.75
8.2.270.0110.00717.37
8.2.260.0040.00717.05
8.2.250.0030.00616.43
8.2.240.0040.01216.96
8.2.230.0060.00322.58
8.2.220.0050.00524.06
8.2.210.0070.01326.77
8.2.200.0060.00316.88
8.2.190.0110.00416.88
8.2.180.0160.00325.92
8.2.170.0110.00719.07
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0000.00822.43
8.2.100.0140.00018.03
8.2.90.0080.00017.75
8.2.80.0060.00318.86
8.2.70.0000.00817.75
8.2.60.0040.00418.03
8.2.50.0000.00817.98
8.2.40.0000.00818.16
8.2.30.0000.00718.09
8.2.20.0000.00720.39
8.2.10.0000.00717.64
8.2.00.0040.00419.08
8.1.330.0090.00921.88
8.1.320.0100.00918.02
8.1.310.0060.00318.12
8.1.300.0040.00416.19
8.1.290.0060.00330.84
8.1.280.0100.00325.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00622.12
8.1.230.0080.00417.70
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0000.00917.23
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0070.00017.62
8.1.160.0000.00718.75
8.1.150.0080.00018.74
8.1.140.0000.00717.49
8.1.130.0050.00218.77
8.1.120.0040.00417.60
8.1.110.0000.00817.52
8.1.100.0050.00217.60
8.1.90.0000.00717.53
8.1.80.0040.00417.42
8.1.70.0000.00817.51
8.1.60.0000.00817.65
8.1.50.0040.00417.60
8.1.40.0000.00817.53
8.1.30.0050.00317.72
8.1.20.0000.00817.73
8.1.10.0130.00417.62
8.1.00.0170.00717.41
8.0.300.0000.00820.58
8.0.290.0000.00716.88
8.0.280.0100.00018.50
8.0.270.0030.00317.01
8.0.260.0030.00318.51
8.0.250.0070.00017.06
8.0.240.0000.00717.06
8.0.230.0030.00316.99
8.0.220.0040.00416.97
8.0.210.0070.00016.86
8.0.200.0050.00517.07
8.0.190.0110.00016.90
8.0.180.0080.00016.83
8.0.170.0050.00317.03
8.0.160.0000.00816.88
8.0.150.0040.00416.89
8.0.140.0200.00016.93
8.0.130.0080.00816.89
8.0.120.0170.00016.78
8.0.110.0060.01116.92
8.0.100.0110.00716.95
8.0.90.0030.01016.70
8.0.80.0130.00616.98
8.0.70.0130.00716.94
8.0.60.0140.00316.96
8.0.50.0170.00316.86
8.0.30.0120.00616.98
8.0.20.0130.00717.00
8.0.10.0140.00417.04
8.0.00.0110.00016.96
7.4.330.0030.00315.55
7.4.320.0000.00716.56
7.4.300.0000.00616.63
7.4.290.0030.00316.57
7.4.280.0070.00016.66
7.4.270.0040.00416.69
7.4.260.0160.00516.57
7.4.250.0080.01116.63
7.4.240.0180.00316.69
7.4.230.0170.00316.68
7.4.220.0160.00316.73
7.4.210.0140.00416.75
7.4.200.0130.00516.61
7.4.190.0160.00216.75
7.4.180.0180.00016.76
7.4.160.0090.00916.71
7.4.150.0120.00616.67
7.4.140.0160.00316.64
7.4.130.0190.00016.52
7.4.120.0110.00716.64
7.4.110.0140.00416.63
7.4.100.0140.00416.69
7.4.90.0080.01116.64
7.4.80.0160.00416.64
7.4.70.0130.00616.73
7.4.60.0170.00316.73
7.4.50.0170.00316.52
7.4.40.0120.00616.45
7.4.30.0190.00016.70
7.4.20.0150.00416.61
7.4.10.0150.00316.52
7.4.00.0100.01016.50
7.3.330.0130.00816.33
7.3.320.0140.00716.17
7.3.310.0100.00816.36
7.3.300.0160.00416.02
7.3.290.0200.00016.10
7.3.280.0220.00016.07
7.3.270.0160.00716.35
7.3.260.0180.00516.06
7.3.250.0180.00416.42
7.3.240.0160.00416.17
7.3.230.0150.00516.03
7.3.220.0170.00416.02
7.3.210.0190.00316.22
7.3.200.0140.00616.14
7.3.190.0140.00616.18
7.3.180.0100.01016.14
7.3.170.0120.00016.11
7.3.160.0090.00716.11
7.3.150.0140.00616.27
7.3.140.0080.00816.16
7.3.130.0120.00816.22

preferences:
35.78 ms | 403 KiB | 5 Q