3v4l.org

run code in 300+ PHP versions simultaneously
<?php use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; $html = '<table> <thead> <tr> <th width="10">ID</th> <th width="20">Name</th> <th width="30">Value</th> </tr> </thead> <tbody> <tr> <td rowspan="2">1</td> <td rowspan="2">Test</td> <td rowspan="2">123</td> </tr> </tbody> </table>'; $reader = new \PhpOffice\PhpSpreadsheet\Reader\Html(); $spreadSheet = $reader->loadFromString($html); $writer = IOFactory::createWriter($spreadSheet, 'Xlsx');

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.5.00.0100.01119.92
8.4.150.0020.00114.05
8.4.140.0150.00717.81
8.4.130.0120.00918.55
8.4.120.0110.00420.75
8.4.110.0100.01017.92
8.4.100.0060.00217.85
8.4.90.0100.01020.41
8.4.80.0060.00218.69
8.4.70.0100.01022.16
8.4.60.0100.01220.36
8.4.50.0120.00818.89
8.4.40.0040.01117.68
8.4.30.0110.00820.52
8.4.20.0150.00017.94
8.4.10.0080.00019.76
8.3.280.0120.00818.44
8.3.270.0080.01316.63
8.3.260.0120.00716.63
8.3.250.0120.00616.62
8.3.240.0100.00816.62
8.3.230.0130.00616.62
8.3.220.0120.00718.67
8.3.210.0050.01316.81
8.3.200.0040.00516.51
8.3.190.0120.00817.05
8.3.180.0050.00318.98
8.3.170.0180.00018.67
8.3.160.0070.01118.36
8.3.150.0150.00317.00
8.3.140.0090.00620.82
8.3.130.0080.00018.35
8.3.120.0050.00318.68
8.3.110.0050.00316.80
8.3.100.0060.00318.31
8.3.90.0000.00826.77
8.3.80.0100.00019.36
8.3.70.0000.01416.58
8.3.60.0070.01116.75
8.3.50.0070.01123.68
8.3.40.0150.00618.96
8.3.30.0120.00418.62
8.3.20.0120.00324.18
8.3.10.0080.00024.66
8.3.00.0000.00826.16
8.2.290.0130.00618.41
8.2.280.0070.01120.32
8.2.270.0110.00716.66
8.2.260.0070.00017.05
8.2.250.0030.00616.62
8.2.240.0090.00618.83
8.2.230.0100.01020.94
8.2.220.0080.00024.06
8.2.210.0070.01026.77
8.2.200.0060.00318.88
8.2.190.0060.01218.51
8.2.180.0030.01325.92
8.2.170.0120.00418.91
8.2.160.0070.00722.96
8.2.150.0050.00225.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00826.35
8.2.110.0040.00421.00
8.2.100.0060.00617.72
8.2.90.0080.00017.91
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0060.00317.63
8.2.50.0030.00618.05
8.2.40.0040.00419.82
8.2.30.0000.00717.87
8.2.20.0000.00717.89
8.2.10.0040.00419.13
8.2.00.0040.00419.25
8.1.330.0100.00916.44
8.1.320.0120.00618.10
8.1.310.0090.00616.76
8.1.300.0040.01517.99
8.1.290.0080.00030.84
8.1.280.0070.01425.92
8.1.270.0090.00023.99
8.1.260.0030.00628.09
8.1.250.0000.00828.09
8.1.240.0060.00322.14
8.1.230.0040.00820.84
8.1.220.0040.00417.78
8.1.210.0050.00319.01
8.1.200.0090.00017.23
8.1.190.0050.00317.12
8.1.180.0060.00318.10
8.1.170.0070.00019.03
8.1.160.0050.00318.83
8.1.150.0070.00018.74
8.1.140.0040.00418.83
8.1.130.0000.00720.11
8.1.120.0030.00317.30
8.1.110.0060.00317.30
8.1.100.0050.00217.22
8.1.90.0000.00717.37
8.1.80.0090.00017.37
8.1.70.0040.00717.35
8.1.60.0000.00817.57
8.1.50.0040.00417.48
8.1.40.0000.00817.52
8.1.30.0000.00817.58
8.1.20.0030.00517.68
8.1.10.0000.00817.44
8.1.00.0000.00817.50
8.0.300.0000.00819.79
8.0.290.0000.00816.63
8.0.280.0000.00718.43
8.0.270.0030.00317.93
8.0.260.0000.00718.57
8.0.250.0000.00817.01
8.0.240.0070.00016.87
8.0.230.0070.00016.96
8.0.220.0000.00716.83
8.0.210.0030.00316.78
8.0.200.0030.00316.94
8.0.190.0080.00016.84
8.0.180.0000.00716.99
8.0.170.0000.00816.78
8.0.160.0050.00316.92
8.0.150.0000.00716.88
8.0.140.0070.00016.88
8.0.130.0050.00013.40
8.0.120.0040.00416.84
8.0.110.0000.00716.94
8.0.100.0000.00716.89
8.0.90.0000.00816.68
8.0.80.0080.00916.85
8.0.70.0070.00016.84
8.0.60.0040.00416.76
8.0.50.0040.00416.73
8.0.30.0100.00717.09
8.0.20.0130.01017.11
8.0.10.0000.00716.88
8.0.00.0130.00716.86
7.4.330.0000.00515.55
7.4.320.0070.00016.46
7.4.300.0080.00016.51
7.4.290.0020.00516.54
7.4.280.0060.00416.50
7.4.270.0000.00716.65
7.4.260.0000.00513.26
7.4.250.0000.00816.46
7.4.240.0000.00816.55
7.4.230.0020.00516.50
7.4.220.0070.00016.52
7.4.210.0070.00716.63
7.4.200.0070.00016.70
7.4.130.0070.01016.45
7.4.120.0070.01016.45
7.4.110.0110.00716.51
7.4.100.0090.00916.61
7.4.90.0090.00916.53
7.4.80.0090.00816.48
7.4.70.0070.01016.38
7.4.60.0070.01016.41
7.4.50.0040.01416.80
7.4.40.0150.00316.50
7.4.30.0290.01916.54
7.4.20.0110.00716.00
7.4.10.0030.01616.29
7.4.00.0100.00716.58
7.3.330.0100.00016.28
7.3.320.0000.00513.25
7.3.310.0030.00316.40
7.3.300.0050.00216.22
7.3.290.0050.00916.25
7.3.260.0070.01416.27
7.3.250.0060.01016.23
7.3.240.0040.01416.52
7.3.230.0060.01216.23
7.3.220.0080.00816.38
7.3.210.0150.00416.11
7.3.200.0160.00316.53
7.3.190.0100.00716.16
7.3.180.0070.01116.51
7.3.170.0120.00616.49
7.3.160.0100.00716.42
7.3.150.0120.00616.44
7.3.140.0100.01016.16
7.3.130.0100.01016.09
7.3.120.0100.00716.48
7.3.110.0090.00916.36
7.3.100.0070.01016.42
7.3.90.0070.01016.44
7.3.80.0130.00616.64
7.3.70.0100.01316.27
7.3.60.0210.00316.30
7.3.50.0000.01616.29
7.3.40.0160.00316.31
7.3.30.0120.00916.35
7.3.20.0080.01216.23
7.3.10.0060.01216.34
7.3.00.0110.00716.21

preferences:
31.28 ms | 403 KiB | 5 Q