3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<html> <body> <table style="width: 100%"> <tr> <th>Firstname</th> <th>Lastname</th> <th>Age</th> </tr> <tr> <td>Jill</td> <td>Smith</td> <td>50</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> <td>94</td> </tr> </table> </body> </html>'; $xmlObj = simplexml_load_string($xml); echo json_encode($xmlObj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TZ4BP
function name:  (null)
number of ops:  10
compiled vars:  !0 = $xml, !1 = $xmlObj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Chtml%3E%0A%3Cbody%3E%0A%3Ctable+style%3D%22width%3A+100%25%22%3E%0A++++%3Ctr%3E%0A++++++++%3Cth%3EFirstname%3C%2Fth%3E%0A++++++++%3Cth%3ELastname%3C%2Fth%3E%0A++++++++%3Cth%3EAge%3C%2Fth%3E%0A++++%3C%2Ftr%3E%0A++++%3Ctr%3E%0A++++++++%3Ctd%3EJill%3C%2Ftd%3E%0A++++++++%3Ctd%3ESmith%3C%2Ftd%3E%0A++++++++%3Ctd%3E50%3C%2Ftd%3E%0A++++%3C%2Ftr%3E%0A++++%3Ctr%3E%0A++++++++%3Ctd%3EEve%3C%2Ftd%3E%0A++++++++%3Ctd%3EJackson%3C%2Ftd%3E%0A++++++++%3Ctd%3E94%3C%2Ftd%3E%0A++++%3C%2Ftr%3E%0A%3C%2Ftable%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   25     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   27     5        INIT_FCALL                                               'json_encode'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $5      
          8        ECHO                                                     $5
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.16 ms | 999 KiB | 15 Q