3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'some text [BUTTON link="www.test.com" label="Click here"] some text'; echo preg_replace( '/\[button link="([^"]+)" label="([^"]+)"]/i', '<a href="$1">$2</a>', $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.0060.01216.50
8.3.50.0080.00820.04
8.3.40.0090.00622.01
8.3.30.0120.00318.83
8.3.20.0070.00324.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.180.0170.00325.92
8.2.170.0130.00719.07
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00821.37
8.2.110.0060.00320.38
8.2.100.0110.00018.03
8.2.90.0040.00417.88
8.2.80.0030.00918.90
8.2.70.0030.00617.63
8.2.60.0040.00717.90
8.2.50.0000.00818.05
8.2.40.0000.00917.91
8.2.30.0000.00718.04
8.2.20.0040.00419.15
8.2.10.0000.00718.06
8.2.00.0080.00319.09
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0100.00020.73
8.1.230.0120.00022.06
8.1.220.0090.00017.74
8.1.210.0030.00618.77
8.1.200.0040.00417.25
8.1.190.0040.00417.38
8.1.180.0050.00318.10
8.1.170.0000.00918.59
8.1.160.0030.00618.90
8.1.150.0030.00618.77
8.1.140.0110.00017.54
8.1.130.0000.00718.86
8.1.120.0000.00717.45
8.1.110.0040.01217.39
8.1.100.0150.00017.53
8.1.90.0120.00417.50
8.1.80.0080.00817.46
8.1.70.0150.00017.41
8.1.60.0110.00717.61
8.1.50.0110.00617.64
8.1.40.0070.01117.54
8.1.30.0180.00017.55
8.1.20.0150.00317.72
8.1.10.0110.00717.64
8.1.00.0190.00017.44
8.0.300.0030.00518.77
8.0.290.0000.01016.88
8.0.280.0050.00318.46
8.0.270.0050.00517.19
8.0.260.0030.00318.48
8.0.250.0050.00217.08
8.0.240.0030.00517.09
8.0.230.0100.00517.02
8.0.220.0150.00016.96
8.0.210.0090.00616.86
8.0.200.0080.00816.96
8.0.190.0100.00517.01
8.0.180.0040.00417.03
8.0.170.0090.00516.91
8.0.160.0000.01416.91
8.0.150.0000.01516.96
8.0.140.0110.00316.94
8.0.130.0060.00916.86
8.0.120.0110.00616.88
8.0.110.0090.00516.86
8.0.100.0070.00716.94
8.0.90.0150.00016.96
8.0.80.0070.00716.89
8.0.70.0110.00416.94
8.0.60.0120.00216.94
8.0.50.0090.00516.86
8.0.30.0150.00016.84
8.0.20.0070.00716.93
8.0.10.0050.01017.02
7.4.330.0050.00015.55
7.4.320.0100.00016.63
7.4.300.0050.01016.64
7.4.290.0120.00516.64
7.4.280.0100.00716.77
7.4.270.0090.00616.65
7.4.260.0110.00516.60
7.4.250.0050.01016.75
7.4.240.0080.00816.72
7.4.230.0100.00516.72
7.4.220.0070.00716.65
7.4.210.0100.00316.55
7.4.200.0110.00316.79
7.4.190.0120.00016.61
7.4.180.0040.00416.63
7.4.160.0110.00316.68
7.4.150.0140.00016.80
7.4.140.0020.00716.66
7.4.130.0090.00016.72
7.4.120.0030.00516.62
7.4.110.0030.00316.71
7.4.100.0000.00616.71
7.4.90.0030.00316.64
7.4.80.0030.00316.53
7.4.70.0030.00316.67
7.4.60.0000.00616.71
7.4.50.0000.00916.58
7.4.40.0070.00316.48
7.4.30.0100.00016.77
7.4.20.0060.00316.51
7.4.10.0040.00416.43
7.4.00.0030.00616.70

preferences:
54.61 ms | 400 KiB | 5 Q