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');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Oafu8
function name:  (null)
number of ops:  14
compiled vars:  !0 = $html, !1 = $reader, !2 = $spreadSheet, !3 = $writer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, '%3Ctable%3E%0A++++%3Cthead%3E%0A++++++++%3Ctr%3E%0A++++++++++++%3Cth+width%3D%2210%22%3EID%3C%2Fth%3E%0A++++++++++++%3Cth+width%3D%2220%22%3EName%3C%2Fth%3E%0A++++++++++++%3Cth+width%3D%2230%22%3EValue%3C%2Fth%3E%0A++++++++%3C%2Ftr%3E%0A++++%3C%2Fthead%3E%0A%09%3Ctbody%3E%0A++++++++%3Ctr%3E%0A++++++++++++%3Ctd+rowspan%3D%222%22%3E1%3C%2Ftd%3E%0A++++++++++++%3Ctd+rowspan%3D%222%22%3ETest%3C%2Ftd%3E%0A++++++++++++%3Ctd+rowspan%3D%222%22%3E123%3C%2Ftd%3E%0A++++++++%3C%2Ftr%3E%0A%09%3C%2Ftbody%3E%0A%3C%2Ftable%3E'
   23     1        NEW                                              $5      'PhpOffice%5CPhpSpreadsheet%5CReader%5CHtml'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $5
   24     4        INIT_METHOD_CALL                                         !1, 'loadFromString'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $8      
          7        ASSIGN                                                   !2, $8
   25     8        INIT_STATIC_METHOD_CALL                                  'PhpOffice%5CPhpSpreadsheet%5CIOFactory', 'createWriter'
          9        SEND_VAR_EX                                              !2
         10        SEND_VAL_EX                                              'Xlsx'
         11        DO_FCALL                                      0  $10     
         12        ASSIGN                                                   !3, $10
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.21 ms | 1002 KiB | 13 Q