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[^>]+>(.*)(?=<\/a>)/"; preg_match_all($pattern, $html, $matches); print_r($matches[1]);

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.130.0060.01018.35
8.3.120.0080.01118.82
8.3.110.0050.00320.94
8.3.100.0130.00624.06
8.3.90.0080.00026.77
8.3.80.0000.00916.75
8.3.70.0140.00718.56
8.3.60.0090.00918.30
8.3.50.0110.00217.41
8.3.40.0000.01419.00
8.3.30.0070.00718.84
8.3.20.0040.00421.92
8.3.10.0060.00323.66
8.3.00.0050.00221.94
8.2.250.0000.00818.90
8.2.240.0150.00317.28
8.2.230.0040.00422.58
8.2.220.0150.00437.54
8.2.210.0070.00326.77
8.2.200.0000.00816.63
8.2.190.0110.00716.63
8.2.180.0140.00416.63
8.2.170.0060.01222.96
8.2.160.0100.00322.22
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0000.00720.96
8.2.110.0070.00322.41
8.2.100.0040.00817.91
8.2.90.0000.00817.75
8.2.80.0060.00318.86
8.2.70.0080.00017.75
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0000.00818.13
8.2.30.0040.00418.09
8.2.20.0040.00418.08
8.2.10.0070.00018.03
8.2.00.0030.00518.04
8.1.300.0130.00717.92
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0070.00022.24
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.01320.68
8.1.230.0090.00317.89
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0000.00817.35
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0040.00418.85
8.1.160.0000.00818.78
8.1.150.0050.00218.84
8.1.140.0000.00719.06
8.1.130.0080.00017.91
8.1.120.0040.00417.52
8.1.110.0000.00817.57
8.1.100.0020.00517.46
8.1.90.0040.00417.56
8.1.80.0000.00717.46
8.1.70.0030.00517.59
8.1.60.0030.00617.67
8.1.50.0030.00617.56
8.1.40.0030.00617.65
8.1.30.0080.00317.80
8.1.20.0030.00617.76
8.1.10.0060.00317.69
8.1.00.0040.00417.68
8.0.300.0000.00918.77
8.0.290.0000.00716.75
8.0.280.0070.00018.33
8.0.270.0090.00017.14
8.0.260.0000.00817.14
8.0.250.0030.00317.03
8.0.240.0000.00817.12
8.0.230.0030.00617.14
8.0.220.0040.00417.07
8.0.210.0000.00716.93
8.0.200.0000.00717.13
8.0.190.0000.00717.02
8.0.180.0040.00417.04
8.0.170.0000.00817.08
8.0.160.0040.00417.05
8.0.150.0050.00217.01
8.0.140.0040.00316.93
8.0.130.0000.00713.45
8.0.120.0000.00717.05
8.0.110.0070.00016.89
8.0.100.0070.00017.11
8.0.90.0030.00516.98
8.0.80.0040.01417.00
8.0.70.0040.00417.09
8.0.60.0000.00717.06
8.0.50.0040.00417.02
8.0.30.0060.01417.33
8.0.20.0110.01117.40
8.0.10.0030.00517.19
8.0.00.0110.01017.01
7.4.330.0020.00215.55
7.4.320.0000.00616.81
7.4.300.0060.00016.66
7.4.290.0040.00416.64
7.4.280.0000.00916.63
7.4.270.0070.00016.72
7.4.260.0000.00816.74
7.4.250.0070.00016.71
7.4.240.0000.00716.81
7.4.230.0080.00016.71
7.4.220.0040.00416.74
7.4.210.0070.01316.79
7.4.200.0030.00316.82
7.4.160.0100.00816.60
7.4.150.0100.00717.40
7.4.140.0090.01017.86
7.4.130.0140.00916.75
7.4.120.0110.00816.68
7.4.110.0140.00316.45
7.4.100.0070.01016.55
7.4.90.0060.01016.71
7.4.80.0120.00619.39
7.4.70.0130.01016.67
7.4.60.0070.01116.76
7.4.50.0100.00716.49
7.4.40.0120.00616.77
7.4.00.0030.01015.26
7.3.330.0030.00313.16
7.3.320.0030.00313.32
7.3.310.0040.00416.29
7.3.300.0000.00716.40
7.3.290.0110.00616.41
7.3.280.0080.00916.38
7.3.270.0100.00717.40
7.3.260.0120.00916.51
7.3.250.0100.00816.64
7.3.240.0060.01116.59
7.3.230.0120.00616.69
7.3.210.0190.00016.47
7.3.200.0060.00916.70
7.3.190.0090.00616.47
7.3.180.0150.00616.53
7.3.170.0040.01216.63
7.3.160.0000.02116.36
7.2.330.0070.01316.70
7.2.320.0100.00716.80
7.2.310.0160.00016.64
7.2.300.0120.00616.70
7.2.290.0090.00616.60
7.2.60.0130.01016.81
7.2.00.0210.00918.03
7.1.200.0000.01015.77
7.1.120.0200.01217.02
7.1.110.0210.00716.41
7.1.100.0290.00016.13
7.1.90.0140.01416.32
7.1.80.0110.01516.68
7.1.70.0150.01215.50
7.1.60.0350.01033.24
7.1.50.0370.00633.26
7.1.40.0310.01632.92
7.1.30.0340.00732.81
7.1.20.0200.01733.08
7.1.10.0150.01515.05
7.1.00.0140.01015.19

preferences:
27.6 ms | 403 KiB | 5 Q