3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = <<<HTML <table> <thead> <tr> <th>1</th> <th>2</th> </tr> </thead> <tbody> <tr> <td> <table> <thead> <tr> <th>A</th> <th>B</th> </tr> </thead> <tbody> <tr> <td>C</td> <td>D</td> </tr> </tbody> </table> </td> <td>4</td> </tr> </tbody> </table> HTML; var_dump( preg_replace_callback('~<table.*?</table>~is', function ($match) { return '<div>' . $match[0] . '</div>'; }, $content) );

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.130.0160.00617.80
8.4.120.0120.01020.67
8.4.110.0090.01118.75
8.4.100.0040.00618.08
8.4.90.0060.00417.91
8.4.80.0120.00917.91
8.4.70.0110.00817.91
8.4.60.0130.00818.92
8.4.50.0090.01217.88
8.4.40.0100.01018.05
8.4.30.0160.00018.64
8.4.20.0100.01021.56
8.4.10.0000.00819.76
8.3.260.0030.00616.70
8.3.250.0080.00818.97
8.3.240.0060.00216.81
8.3.230.0090.01116.59
8.3.220.0090.01017.25
8.3.210.0130.00716.60
8.3.200.0060.00517.00
8.3.190.0100.01016.87
8.3.180.0110.00816.64
8.3.170.0040.01518.87
8.3.160.0070.01117.34
8.3.150.0150.00317.36
8.3.140.0130.00618.46
8.3.130.0100.00718.47
8.3.120.0090.00020.81
8.3.110.0060.00316.83
8.3.100.0060.00324.06
8.3.90.0150.00418.05
8.3.80.0090.00318.55
8.3.70.0430.01017.97
8.3.60.0520.00017.97
8.3.50.0140.01117.97
8.3.40.0340.00717.97
8.3.30.0320.00417.97
8.3.20.0260.00917.97
8.3.10.0300.00417.97
8.3.00.0270.00817.97
8.2.290.0110.00720.51
8.2.280.0130.00618.39
8.2.270.0080.00817.18
8.2.260.0070.01117.05
8.2.250.0040.01118.75
8.2.240.0030.00617.47
8.2.230.0090.00020.94
8.2.220.0110.00437.54
8.2.210.0190.00026.77
8.2.200.0060.00318.66
8.2.190.0210.00617.97
8.2.180.0270.00717.97
8.2.170.0290.00717.97
8.2.160.0250.00417.97
8.2.150.0230.00517.97
8.2.140.0210.00617.97
8.2.130.0230.00017.97
8.2.120.0210.00717.97
8.2.110.0300.00017.97
8.2.100.0220.00417.97
8.2.90.0260.00317.97
8.2.80.0190.00317.97
8.2.70.0190.00617.97
8.2.60.0190.00617.97
8.2.50.0160.00517.97
8.2.40.0330.00617.97
8.2.30.0390.00417.97
8.2.20.0290.01317.97
8.2.10.0270.01417.97
8.2.00.0240.01717.97
8.1.330.0140.00518.69
8.1.320.0110.00916.38
8.1.310.0110.00716.89
8.1.300.0090.00020.18
8.1.290.0070.00330.84
8.1.280.0350.01017.97
8.1.270.0320.01317.97
8.1.260.0310.00917.97
8.1.250.0260.00417.97
8.1.240.0210.00017.97
8.1.230.0250.00417.97
8.1.220.0330.00717.97
8.1.210.0420.00317.97
8.1.200.0300.01517.97
8.1.190.0340.01117.97
8.1.180.0330.00817.97
8.1.170.0300.00717.97
8.1.160.0320.01217.97
8.1.150.0290.00617.97
8.1.140.0270.01017.97
8.1.130.0400.00017.97
8.1.120.0210.01417.97
8.1.110.0110.01517.97
8.1.100.0180.00417.97
8.1.90.0190.00617.97
8.1.80.0250.01617.97
8.1.70.0250.01217.97
8.1.60.0360.00417.97
8.1.50.0350.01017.97
8.1.40.0310.01017.97
8.1.30.0320.01117.97
8.1.20.0270.01617.97
8.1.10.0350.01017.97
8.1.00.0330.00817.97

preferences:
53.15 ms | 403 KiB | 5 Q