3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "[[Some text]] and [[one more here]]"; echo preg_replace_callback("/\[\[(.+?)]]/", function($m) { return '<a href="/XLab/?document=' . str_replace(' ', '_', $m[1]) . '">' . $m[1] . '</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.4.30.0070.00318.55
8.4.20.0100.01019.88
8.4.10.0110.01121.28
8.3.160.0130.00618.26
8.3.150.0150.00418.85
8.3.140.0070.00316.64
8.3.130.0000.00818.52
8.3.120.0110.00418.79
8.3.110.0030.00620.94
8.3.100.0090.00016.84
8.3.90.0100.01026.77
8.3.80.0110.00016.73
8.3.70.0090.00916.63
8.3.60.0030.01318.68
8.3.50.0090.00824.66
8.3.40.0110.00419.14
8.3.30.0150.00018.77
8.3.20.0000.00724.18
8.3.10.0000.00824.66
8.3.00.0000.00826.16
8.2.270.0090.00917.18
8.2.260.0000.00818.45
8.2.250.0040.00416.87
8.2.240.0000.00918.95
8.2.230.0060.00322.58
8.2.220.0030.00624.06
8.2.210.0150.00026.77
8.2.200.0100.00016.63
8.2.190.0100.01017.00
8.2.180.0110.00725.92
8.2.170.0040.01119.12
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0070.00320.38
8.2.100.0060.00619.76
8.2.90.0030.00517.86
8.2.80.0000.00919.03
8.2.70.0040.00417.75
8.2.60.0030.00617.75
8.2.50.0050.00318.05
8.2.40.0080.00018.16
8.2.30.0000.00918.11
8.2.20.0000.00718.16
8.2.10.0070.00019.27
8.2.00.0020.00519.34
8.1.310.0070.00718.35
8.1.300.0090.00317.54
8.1.290.0110.00030.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00319.25
8.1.230.0090.00317.82
8.1.220.0080.00017.78
8.1.210.0000.00818.77
8.1.200.0030.00617.50
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0000.00718.62
8.1.160.0040.00418.91
8.1.150.0000.00718.86
8.1.140.0040.00418.93
8.1.130.0040.00421.87
8.1.120.0000.00817.52
8.1.110.0040.00417.56
8.1.100.0040.00417.66
8.1.90.0040.00417.64
8.1.80.0040.00417.63
8.1.70.0000.00717.63
8.1.60.0050.00317.74
8.1.50.0040.00417.69
8.1.40.0000.00717.69
8.1.30.0000.00817.71
8.1.20.0040.00417.64
8.1.10.0030.00617.66
8.1.00.0040.00417.65
8.0.300.0040.00420.55
8.0.290.0060.00316.75
8.0.280.0030.00320.22
8.0.270.0000.00718.18
8.0.260.0030.00320.19
8.0.250.0030.00317.13
8.0.240.0040.00416.99
8.0.230.0000.00717.11
8.0.220.0000.00717.11
8.0.210.0070.00017.02
8.0.200.0030.00517.16
8.0.190.0000.00817.01
8.0.180.0000.00817.13
8.0.170.0080.00017.08
8.0.160.0040.00417.12
8.0.150.0030.00316.97
8.0.140.0050.00217.00
8.0.130.0050.00013.39
8.0.120.0050.00316.95
8.0.110.0070.00016.98
8.0.100.0050.00216.89
8.0.90.0000.00716.89
8.0.80.0100.00617.00
8.0.70.0040.00417.06
8.0.60.0000.00717.02
8.0.50.0040.00416.87
8.0.30.0140.00317.32
8.0.20.0100.01217.50
8.0.10.0000.00817.14
8.0.00.0060.01316.80
7.4.330.0050.00015.55
7.4.320.0000.00816.64
7.4.300.0030.00316.64
7.4.290.0070.00016.80
7.4.280.0040.00416.82
7.4.270.0070.00016.71
7.4.260.0030.00313.46
7.4.250.0000.00716.62
7.4.240.0050.00316.72
7.4.230.0040.00416.63
7.4.220.0030.00316.79
7.4.210.0060.00916.77
7.4.200.0030.00316.72
7.4.130.0120.01016.75
7.4.120.0070.01116.73
7.4.110.0030.01316.64
7.4.100.0040.01816.76
7.4.90.0060.01216.83
7.4.80.0090.01916.66
7.4.70.0160.00416.59
7.4.60.0110.01016.65
7.4.50.0080.01616.72
7.4.40.0060.01516.41
7.4.30.0120.01216.59
7.4.20.0090.01516.39
7.4.10.0150.00716.83
7.4.00.0090.00916.50
7.3.330.0000.00716.33
7.3.320.0030.00313.47
7.3.310.0070.00016.28
7.3.300.0000.00716.50
7.3.290.0070.00816.36
7.3.260.0090.00916.74
7.3.230.0120.00616.62
7.3.210.0060.01116.63
7.3.200.0120.00916.59
7.3.190.0230.00616.53
7.3.180.0110.01116.43
7.3.170.0210.00916.54
7.3.160.0110.01116.42
7.3.150.0170.00716.49
7.3.140.0250.00416.58
7.3.130.0190.00616.50
7.3.120.0070.01616.34
7.3.110.0120.01216.35
7.3.100.0150.00816.53
7.3.90.0100.01016.63
7.3.80.0190.00416.66
7.3.70.0090.01416.60
7.3.60.0180.00416.54
7.3.50.0060.01316.54
7.3.40.0070.01316.54
7.3.30.0120.00416.46
7.3.20.0100.00716.57
7.3.10.0070.01016.60
7.3.00.0090.00616.46
7.2.330.0110.00616.92
7.2.320.0160.00516.70
7.2.310.0070.01416.68
7.2.300.0120.01216.79
7.2.290.0100.01516.85
7.2.280.0150.00916.66
7.2.270.0260.00616.79
7.2.260.0220.00416.82
7.2.250.0190.00516.84
7.2.240.0100.01416.73
7.2.230.0140.00916.81
7.2.220.0170.00916.79
7.2.210.0160.00516.71
7.2.200.0120.01216.61
7.2.190.0160.00816.75
7.2.180.0110.00616.77
7.2.170.0090.00916.73
7.2.160.0090.00716.74
7.2.150.0140.00316.71
7.2.140.0080.00816.70
7.2.130.0100.00716.79
7.2.120.0130.00616.79
7.2.110.0070.01016.78
7.2.100.0060.01116.82
7.2.90.0110.00716.87
7.2.80.0030.01416.82
7.2.70.0070.01116.75
7.2.60.0000.01716.72
7.2.50.0100.00716.76
7.2.40.0030.01716.87
7.2.30.0090.00916.82
7.2.20.0070.01116.90
7.2.10.0060.01216.74
7.2.00.0050.01416.74

preferences:
27.96 ms | 403 KiB | 5 Q