3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<HTML <b>Atmosp'Hair, Caroline Michellod</b><i> in <a href="1" target="_top">Leytron</a></i>, Einzelunt., <a href="1" target="result">+++</a>, <a href="google.com" target="_blank">CHE-137.645.261</a><a href="pdf" target="_blank">Download pdf</a> <b>Bar La Gouttière, Y. Maret</b><i> in <a href="http://www.example.com">Dolor</a><a href="2" target="_top">Martigny</a></i>, Einzelunt., <a href="2" target="result">+++</a>, <a href="yahoo.com" target="_blank">CHE-112.712.556</a><a href="http:/wwww.coocc.com">Doloo</a> <b>Catherine Michellod</b><i> in <a href="3" target="_top">Bagnes</a></i>, Einzelunt., <a href="3" target="result">+</a>, <a href="bing.com" target="_blank">CHE-111.755.770</a><a href="pdf" target="_blank">Download pdf</a> HTML; preg_match_all("/<.*?href=\"([^\"]*)\"[^>]*>(CHE[^<]*)<[^>]*>/", $str, $m); $result = array_map(function($link, $name){ return ["link" => $link, "name" => $name]; }, $m[1], $m[2]); print_r($result);

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.70.0120.00918.68
8.3.60.0120.00616.75
8.3.50.0140.00822.08
8.3.40.0040.01119.04
8.3.30.0120.00318.86
8.3.20.0090.00020.34
8.3.10.0050.00323.65
8.3.00.0160.00319.79
8.2.180.0070.01416.75
8.2.170.0110.00322.96
8.2.160.0120.00620.27
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00419.44
8.2.120.0000.00826.35
8.2.110.0030.00620.35
8.2.100.0040.00818.05
8.2.90.0040.00419.21
8.2.80.0000.00817.97
8.2.70.0100.00017.84
8.2.60.0000.01317.68
8.2.50.0050.00318.07
8.2.40.0000.00822.41
8.2.30.0000.00720.79
8.2.20.0040.00417.98
8.2.10.0070.00018.32
8.2.00.0000.00718.04
8.1.280.0150.00325.92
8.1.270.0040.00423.99
8.1.260.0030.00628.09
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0040.00717.83
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00717.60
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0040.00418.71
8.1.160.0020.00520.69
8.1.150.0000.00718.90
8.1.140.0040.00419.50
8.1.130.0030.00317.74
8.1.120.0040.00417.57
8.1.110.0040.00417.69
8.1.100.0000.00817.63
8.1.90.0000.01117.66
8.1.80.0000.00717.51
8.1.70.0050.00217.57
8.1.60.0040.00417.68
8.1.50.0030.00617.75
8.1.40.0000.00817.70
8.1.30.0000.00817.77
8.1.20.0000.00817.82
8.1.10.0000.00717.70
8.1.00.0040.00417.51
8.0.300.0000.00918.77
8.0.290.0050.00216.88
8.0.280.0000.00818.34
8.0.270.0000.00717.17
8.0.260.0030.00317.23
8.0.250.0000.00717.15
8.0.240.0040.00417.03
8.0.230.0030.00317.13
8.0.220.0000.00716.93
8.0.210.0040.00416.93
8.0.200.0030.00317.06
8.0.190.0080.00317.06
8.0.180.0050.00317.12
8.0.170.0050.00317.01
8.0.160.0020.00517.24
8.0.150.0040.00417.09
8.0.140.0070.00417.05
8.0.130.0090.00013.52
8.0.120.0060.00317.08
8.0.110.0070.00016.93
8.0.100.0040.00417.08
8.0.90.0070.00016.91
8.0.80.0130.00917.08
8.0.70.0000.00717.16
8.0.60.0050.00317.00
8.0.50.0000.00817.12
8.0.30.0080.01117.20
8.0.20.0100.01017.40
8.0.10.0000.00817.13
8.0.00.0090.00916.89
7.4.330.0000.00516.84
7.4.320.0000.00716.72
7.4.300.0000.00616.80
7.4.290.0000.00716.77
7.4.280.0030.00316.71
7.4.270.0070.00016.84
7.4.260.0030.00316.64
7.4.250.0030.00616.69
7.4.240.0000.00816.67
7.4.230.0000.00716.80
7.4.220.0070.01016.94
7.4.210.0060.01316.78
7.4.200.0030.00316.73
7.4.160.0170.00316.52
7.4.150.0130.00317.40
7.4.140.0160.00717.86
7.4.130.0100.00916.79
7.4.120.0070.01216.75
7.4.110.0090.00916.67
7.4.100.0100.00716.66
7.4.90.0060.01116.73
7.4.80.0100.01019.39
7.4.70.0130.00316.73
7.4.60.0110.00516.58
7.4.50.0100.00316.89
7.4.40.0130.00316.70
7.4.30.0040.01316.72
7.4.00.0000.01815.07
7.3.330.0030.00313.53
7.3.320.0000.00613.54
7.3.310.0040.00416.48
7.3.300.0070.00016.54
7.3.290.0110.00516.49
7.3.280.0080.00916.52
7.3.270.0100.00717.40
7.3.260.0130.01016.71
7.3.250.0080.00916.52
7.3.240.0100.00816.73
7.3.230.0140.00916.63
7.3.210.0120.00916.68
7.3.200.0090.00916.78
7.3.190.0140.00316.66
7.3.180.0030.01316.62
7.3.170.0150.00916.74
7.3.160.0070.01016.66
7.3.10.0090.00616.81
7.3.00.0040.00816.70
7.2.330.0110.00716.66
7.2.320.0040.01416.82
7.2.310.0030.01416.88
7.2.300.0100.00716.68
7.2.290.0070.01016.79
7.2.130.0000.01216.97
7.2.120.0060.00716.87
7.2.110.0030.00816.56
7.2.100.0040.01116.93
7.2.90.0060.00916.94
7.2.80.0040.01116.94
7.2.70.0150.00016.76
7.2.60.0090.00916.67
7.2.50.0040.00716.72
7.2.40.0080.00816.75
7.2.30.0120.00816.98
7.2.20.0090.00616.53
7.2.10.0190.00016.89
7.2.00.0130.00418.18
7.1.250.0030.00615.96
7.1.100.0040.00718.35
7.1.70.0000.00717.25
7.1.60.0070.01619.52
7.1.50.0070.01117.21
7.1.00.0070.06722.35
7.0.200.0000.00716.63
7.0.60.0130.05319.94
7.0.50.0100.07317.88
7.0.40.0070.08320.28
7.0.30.0300.07720.10
7.0.20.0330.06720.13
7.0.10.0070.04020.31
7.0.00.0100.07020.25
5.6.280.0000.03320.89
5.6.210.0070.06320.73
5.6.200.0100.06318.29
5.6.190.0130.05720.48
5.6.180.0330.05320.46
5.6.170.0200.05320.50
5.6.160.0070.07020.52
5.6.150.0000.07018.19
5.6.140.0070.04718.24
5.6.130.0070.06318.11
5.6.120.0170.06320.98
5.6.110.0070.08021.12
5.6.100.0000.09321.09
5.6.90.0100.03320.99
5.6.80.0070.03720.38
5.5.350.0200.07320.44
5.5.340.0100.04717.94
5.5.330.0100.06020.43
5.5.320.0430.06720.30
5.5.310.0330.07320.27
5.5.300.0070.08018.04
5.5.290.0100.06717.95
5.5.280.0100.04720.69
5.5.270.0070.06020.84
5.5.260.0100.06020.77
5.5.250.0070.07720.71
5.5.240.0200.08020.36

preferences:
60.87 ms | 401 KiB | 5 Q