3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "[[some_non-matching_text]] [[https://example.com|link]] [[this is not matching either]] [[http://example2.com|link2]]"; echo preg_replace('~\[\[((?:(?!\[\[).)*?)\|(.*?)]]~s', '<a href="$1">$2</a>', $string);

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.4.20.0130.00317.99
8.4.10.0090.00019.50
8.3.150.0090.00916.93
8.3.140.0170.00316.39
8.3.130.0060.00316.71
8.3.120.0090.00018.75
8.3.110.0090.00020.94
8.3.100.0160.00316.57
8.3.90.0080.01126.77
8.3.80.0060.00318.31
8.3.70.0120.00316.58
8.3.60.0110.01118.36
8.3.50.0220.00923.64
8.3.40.0080.00818.92
8.3.30.0060.00918.82
8.3.20.0040.00421.91
8.3.10.0060.00321.96
8.3.00.0000.00723.50
8.2.270.0060.00316.89
8.2.260.0040.01516.82
8.2.250.0060.00318.69
8.2.240.0030.00619.05
8.2.230.0000.00922.58
8.2.220.0040.00424.06
8.2.210.0100.01326.77
8.2.200.0110.00718.66
8.2.190.0100.01018.20
8.2.180.0080.00825.92
8.2.170.0070.00719.09
8.2.160.0030.01022.96
8.2.150.0100.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0030.00526.16
8.2.110.0070.00322.29
8.2.100.0070.00418.16
8.2.90.0000.00917.88
8.2.80.0080.00017.97
8.2.70.0060.00317.75
8.2.60.0070.00017.75
8.2.50.0040.00417.93
8.2.40.0030.00619.68
8.2.30.0020.00519.28
8.2.20.0020.00518.02
8.2.10.0000.00719.32
8.2.00.0040.00419.12
8.1.310.0100.00716.57
8.1.300.0040.00718.40
8.1.290.0030.01030.84
8.1.280.0110.00425.92
8.1.270.0000.00722.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.30
8.1.230.0040.00719.12
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0060.00317.36
8.1.190.0060.00317.35
8.1.180.0080.00018.10
8.1.170.0000.00717.62
8.1.160.0000.00719.15
8.1.150.0000.00718.73
8.1.140.0000.00718.78
8.1.130.0050.00317.54
8.1.120.0000.00817.52
8.1.110.0040.00417.46
8.1.100.0000.00717.55
8.1.90.0000.00717.55
8.1.80.0050.00317.42
8.1.70.0030.00317.43
8.1.60.0080.00017.68
8.1.50.0070.00017.50
8.1.40.0050.00317.66
8.1.30.0060.00317.68
8.1.20.0090.00017.74
8.1.10.0000.00817.57
8.1.00.0030.00617.49
8.0.300.0000.00719.80
8.0.290.0080.00016.75
8.0.280.0000.00718.50
8.0.270.0000.00717.05
8.0.260.0030.00316.98
8.0.250.0030.00317.12
8.0.240.0000.00617.10
8.0.230.0040.00417.00
8.0.220.0030.00517.00
8.0.210.0000.00716.96
8.0.200.0070.00017.09
8.0.190.0000.00716.93
8.0.180.0060.00316.89
8.0.170.0000.00916.98
8.0.160.0000.00716.95
8.0.150.0000.00716.94
8.0.140.0040.00416.87
8.0.130.0000.00513.39
8.0.120.0040.00416.87
8.0.110.0080.00017.05
8.0.100.0080.00017.00
8.0.90.0030.00616.81
8.0.80.0050.01216.92
8.0.70.0030.00516.95
8.0.60.0040.00417.02
8.0.50.0000.00716.87
8.0.30.0070.01017.16
8.0.20.0130.01017.37
8.0.10.0000.00717.17
8.0.00.0120.00616.95
7.4.330.0000.00515.55
7.4.320.0030.00316.76
7.4.300.0000.00616.76
7.4.290.0000.00716.73
7.4.280.0040.00416.73
7.4.270.0030.00316.77
7.4.260.0000.00513.32
7.4.250.0000.00716.76
7.4.240.0020.00516.65
7.4.230.0000.00716.76
7.4.220.0020.00516.67
7.4.210.0080.00816.67
7.4.200.0030.00316.76
7.4.130.0110.00916.85
7.4.120.0130.00716.60
7.4.110.0110.00616.66
7.4.100.0130.00316.40
7.4.90.0030.01316.56
7.4.80.0060.01319.39
7.4.70.0130.00316.65
7.4.60.0110.00816.59
7.4.50.0090.00616.45
7.4.40.0130.00716.37
7.4.30.0130.00916.39
7.4.20.0030.01316.59
7.4.10.0060.01216.55
7.4.00.0090.01316.60
7.3.330.0070.00016.13
7.3.320.0030.00313.09
7.3.310.0070.00016.35
7.3.300.0030.00316.11
7.3.290.0080.00716.31
7.3.280.0030.01116.30
7.3.260.0130.00416.56
7.3.240.0100.01116.43
7.3.230.0080.00816.48
7.3.210.0170.00016.39
7.3.200.0120.00616.52
7.3.190.0070.01016.40
7.3.180.0040.01116.30
7.3.170.0140.00316.69
7.3.160.0160.00316.65
7.3.150.0040.01516.48
7.3.140.0090.01016.28
7.3.130.0070.01416.72
7.3.120.0060.01416.32
7.3.110.0200.00016.39
7.3.100.0090.00916.20
7.3.90.0150.00316.49
7.3.80.0040.01216.26
7.3.70.0040.01416.43
7.3.60.0130.01316.29
7.3.50.0100.00716.43
7.3.40.0090.00716.48
7.3.30.0000.02216.46
7.3.20.0190.01216.45
7.3.10.0100.00716.34
7.3.00.0100.00716.47
7.2.330.0070.01016.74
7.2.320.0130.00416.71
7.2.310.0090.00916.63
7.2.300.0120.00916.60
7.2.290.0110.01116.48
7.2.280.0100.00816.72
7.2.270.0120.00616.76
7.2.260.0070.01316.50
7.2.250.0000.01716.58
7.2.240.0080.01116.64
7.2.230.0110.00816.66
7.2.220.0110.00816.66
7.2.210.0030.01416.73
7.2.200.0130.00516.56
7.2.190.0110.00816.65
7.2.180.0100.01116.52
7.2.170.0160.00616.57
7.2.160.0120.00616.64
7.2.150.0090.00916.78
7.2.140.0100.01116.62
7.2.130.0160.00616.68
7.2.120.0100.01316.71
7.2.110.0220.01116.66
7.2.100.0070.01016.72
7.2.90.0080.01116.55
7.2.80.0110.00716.83
7.2.70.0000.01816.77
7.2.60.0060.01516.68
7.2.50.0140.00516.76
7.2.40.0080.00916.73
7.2.30.0060.01216.68
7.2.20.0170.00016.67
7.2.10.0140.00416.71
7.2.00.0070.01016.59

preferences:
125.92 ms | 406 KiB | 6 Q