3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<SOURCE <header class="ipl-header"> <div class="ipl-header__content"> <h4 name="producers" id="producers" class="ipl-header__content ipl-list-title"> Produced by </h4> </div> <a class="ipl-header__edit-link" href="https://contribute.imdb.com/updates?update=tt2527336:producers">Edit</a> </header> <table class="subpage_data spFirst crew_list"> <tbody> <tr class="even"> <td class="name"> <a href="/name/nm0009190/?ref_=tt_rv" >J.J. Abrams</a> </td> <td>...</td> <td>executive producer</td> </tr> <tr class="odd"> <td class="name"> <a href="/name/nm0027297/?ref_=tt_rv" >Pippa Anderson</a> </td> <td>...</td> <td>co-producer</td> </tr> </tbody> </table> SOURCE; $pattern = "/<td class=\"name\">\n\s+<a[^>]+>\K.*(?=<\/a>)/"; preg_match_all($pattern, $html, $matches); print_r($matches[0]);

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.140.0160.01217.54
8.4.130.0060.00517.73
8.4.120.0140.00620.38
8.4.110.0120.00922.47
8.4.100.0130.00818.11
8.4.90.0140.00619.82
8.4.80.0050.00417.93
8.4.70.0140.00618.11
8.4.60.0090.00918.91
8.4.50.0090.01117.79
8.4.40.0090.01219.45
8.4.30.0120.00817.84
8.4.20.0130.00319.71
8.4.10.0060.01517.59
8.3.270.0140.00616.73
8.3.260.0100.01016.76
8.3.250.0120.00818.79
8.3.240.0120.00716.54
8.3.230.0110.00616.86
8.3.220.0040.00416.92
8.3.210.0080.00716.68
8.3.200.0040.00516.48
8.3.190.0090.00818.93
8.3.180.0130.00816.66
8.3.170.0100.01016.71
8.3.160.0090.00916.91
8.3.150.0120.00916.85
8.3.140.0110.00416.80
8.3.130.0120.00318.30
8.3.120.0030.00618.86
8.3.110.0040.00420.94
8.3.100.0130.00724.06
8.3.90.0090.00026.77
8.3.80.0060.00316.63
8.3.70.0040.01516.63
8.3.60.0130.00618.27
8.3.50.0050.01017.46
8.3.40.0070.00718.77
8.3.30.0110.00418.92
8.3.20.0080.00021.77
8.3.10.0040.00423.78
8.3.00.0040.00421.89
8.2.290.0040.00520.59
8.2.280.0100.00920.28
8.2.270.0170.00316.69
8.2.260.0030.00620.67
8.2.250.0070.00316.73
8.2.240.0070.01317.17
8.2.230.0130.00322.58
8.2.220.0060.00337.54
8.2.210.0070.00726.77
8.2.200.0050.00516.75
8.2.190.0140.00716.63
8.2.180.0070.00718.39
8.2.170.0150.00619.09
8.2.160.0040.01122.96
8.2.150.0080.00025.66
8.2.140.0090.00024.66
8.2.130.0040.00826.16
8.2.120.0030.00719.06
8.2.110.0060.00321.24
8.2.100.0080.00417.84
8.2.90.0000.00817.87
8.2.80.0030.00517.97
8.2.70.0060.00317.80
8.2.60.0040.00718.09
8.2.50.0030.00518.10
8.2.40.0030.00519.73
8.2.30.0080.00019.17
8.2.20.0030.00518.02
8.2.10.0040.00418.04
8.2.00.0000.00717.91
8.1.330.0100.01018.42
8.1.320.0090.00616.41
8.1.310.0050.00316.76
8.1.300.0120.00017.95
8.1.290.0060.00318.88
8.1.280.0070.01425.92
8.1.270.0070.00022.17
8.1.260.0090.00626.35
8.1.250.0040.00428.09
8.1.240.0130.00322.22
8.1.230.0120.00022.68
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0030.00618.52
8.1.160.0000.00718.80
8.1.150.0040.00418.89
8.1.140.0000.00819.16
8.1.130.0030.00517.85
8.1.120.0030.00517.57
8.1.110.0080.00017.45
8.1.100.0040.00417.55
8.1.90.0000.00817.57
8.1.80.0040.00417.55
8.1.70.0050.00317.45
8.1.60.0050.00317.57
8.1.50.0000.00817.56
8.1.40.0040.00417.52
8.1.30.0040.00417.80
8.1.20.0000.00917.79
8.1.10.0040.00417.78
8.1.00.0040.00417.71
8.0.300.0040.00419.91
8.0.290.0040.00416.75
8.0.280.0000.00818.44
8.0.270.0070.00016.88
8.0.260.0030.00317.16
8.0.250.0050.00217.10
8.0.240.0070.00017.18
8.0.230.0040.00417.03
8.0.220.0000.00716.95
8.0.210.0030.00517.02
8.0.200.0040.00417.11
8.0.190.0030.00517.10
8.0.180.0040.00417.05
8.0.170.0030.00616.95
8.0.160.0080.00016.96
8.0.150.0000.00717.00
8.0.140.0000.00717.04
8.0.130.0050.00013.44
8.0.120.0060.00317.05
8.0.110.0040.00417.02
8.0.100.0000.00717.01
8.0.90.0040.00417.07
8.0.80.0030.01717.02
8.0.70.0050.00217.09
8.0.60.0080.00016.95
8.0.50.0040.00417.05
8.0.30.0120.00817.20
8.0.20.0130.00917.42
8.0.10.0000.00717.18
8.0.00.0110.00716.93
7.4.330.0030.00315.55
7.4.320.0030.00316.69
7.4.300.0000.00816.67
7.4.290.0030.00316.64
7.4.280.0000.00716.64
7.4.270.0030.00316.75
7.4.260.0000.00816.74
7.4.250.0000.00816.62
7.4.240.0000.00816.67
7.4.230.0030.00316.77
7.4.220.0000.00716.50
7.4.210.0050.01216.72
7.4.200.0030.00316.77
7.4.160.0130.00616.65
7.4.150.0090.01017.40
7.4.140.0090.00917.86
7.4.130.0030.01816.63
7.4.120.0090.01216.72
7.4.110.0100.01016.67
7.4.100.0030.01416.61
7.4.90.0070.01016.57
7.4.80.0100.00919.39
7.4.70.0150.00916.65
7.4.60.0090.01516.57
7.4.50.0100.00616.50
7.4.40.0090.01516.72
7.4.00.0100.00315.05
7.3.330.0050.00013.25
7.3.320.0060.00013.21
7.3.310.0000.00616.27
7.3.300.0050.00216.41
7.3.290.0030.00316.41
7.3.280.0090.00616.41
7.3.270.0120.00817.40
7.3.260.0120.00816.54
7.3.250.0120.00816.43
7.3.240.0110.00816.48
7.3.230.0100.00716.49
7.3.210.0150.00316.34
7.3.200.0130.00316.35
7.3.190.0090.00616.62
7.3.180.0100.00616.67
7.3.170.0070.01016.63
7.3.160.0060.01616.51
7.3.10.0060.00816.52
7.3.00.0110.00516.53
7.2.330.0160.00616.71
7.2.320.0060.01016.78
7.2.310.0100.00716.68
7.2.300.0070.01716.74
7.2.290.0080.00816.66
7.2.130.0100.00916.76
7.2.120.0090.00816.66
7.2.110.0110.01116.79
7.2.100.0090.00516.67
7.2.90.0090.01016.63
7.2.80.0060.00916.72
7.2.70.0100.00516.80
7.2.60.0120.00416.88
7.2.50.0080.01116.76
7.2.40.0040.01016.76
7.2.30.0110.00516.70
7.2.20.0070.01116.90
7.2.10.0120.00816.52
7.2.00.0380.01217.27
7.1.250.0070.00915.54
7.1.200.0120.00615.94
7.1.120.0220.00716.82
7.1.110.0250.00716.33
7.1.100.0490.00916.21
7.1.90.0210.01216.61
7.1.80.0240.00316.48
7.1.70.0220.00415.50
7.1.60.0290.01433.59
7.1.50.0250.01833.35
7.1.40.0290.01332.90
7.1.30.0330.00932.80
7.1.20.0250.01633.07
7.1.10.0170.01114.89
7.1.00.0290.00015.36

preferences:
30.43 ms | 403 KiB | 5 Q