3v4l.org

run code in 300+ PHP versions simultaneously
<?php $description = "<table border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Material:</td><td>Solid Ash frame. Composite panels. </td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Finish:</td><td>Available in Grey Wash & White Wash </td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Dimensions:</td><td>H 57cm x W 42cm x D 40cm </td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Features:</td><td>Drawer and lower shelf </td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>Assembly:</td><td>Self assembly - assembly service available at additional cost </td></tr><tr><td style='padding-right:3px; white-space:nowrap; vertical-align:top;'>ASPACE Exclusive</td><td></td></tr></table>"; $s = html_entity_decode($description, ENT_COMPAT, 'UTF-8'); simplexml_load_string('<validation>' . $description . '</validation>'); var_dump(libxml_get_errors(), $s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZasfQ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $description, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Ctable+border%3D%270%27+cellspacing%3D%270%27+cellpadding%3D%270%27%3E%3Ctr%3E%3Ctd+style%3D%27padding-right%3A3px%3B+white-space%3Anowrap%3B+vertical-align%3Atop%3B%27%3EMaterial%3A%3C%2Ftd%3E%3Ctd%3ESolid+Ash+frame.+Composite+panels.%0A%3C%2Ftd%3E%3C%2Ftr%3E%3Ctr%3E%3Ctd+style%3D%27padding-right%3A3px%3B+white-space%3Anowrap%3B+vertical-align%3Atop%3B%27%3EFinish%3A%3C%2Ftd%3E%3Ctd%3EAvailable+in+Grey+Wash+%26+White+Wash%0A%3C%2Ftd%3E%3C%2Ftr%3E%3Ctr%3E%3Ctd+style%3D%27padding-right%3A3px%3B+white-space%3Anowrap%3B+vertical-align%3Atop%3B%27%3EDimensions%3A%3C%2Ftd%3E%3Ctd%3EH+57cm+x+W+42cm+x+D+40cm%0A%3C%2Ftd%3E%3C%2Ftr%3E%3Ctr%3E%3Ctd+style%3D%27padding-right%3A3px%3B+white-space%3Anowrap%3B+vertical-align%3Atop%3B%27%3EFeatures%3A%3C%2Ftd%3E%3Ctd%3EDrawer+and+lower+shelf%0A%3C%2Ftd%3E%3C%2Ftr%3E%3Ctr%3E%3Ctd+style%3D%27padding-right%3A3px%3B+white-space%3Anowrap%3B+vertical-align%3Atop%3B%27%3EAssembly%3A%3C%2Ftd%3E%3Ctd%3ESelf+assembly+-+assembly+service+available+at+additional+cost%0A%3C%2Ftd%3E%3C%2Ftr%3E%3Ctr%3E%3Ctd+style%3D%27padding-right%3A3px%3B+white-space%3Anowrap%3B+vertical-align%3Atop%3B%27%3EASPACE+Exclusive%3C%2Ftd%3E%3Ctd%3E%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Ftable%3E'
    9     1        INIT_FCALL                                               'html_entity_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
   11     7        INIT_FCALL                                               'simplexml_load_string'
          8        CONCAT                                           ~5      '%3Cvalidation%3E', !0
          9        CONCAT                                           ~6      ~5, '%3C%2Fvalidation%3E'
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
   13    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'libxml_get_errors'
         14        DO_ICALL                                         $8      
         15        SEND_VAR                                                 $8
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.81 ms | 1400 KiB | 21 Q