3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "* XML:\n"; echo simplexml_load_string('<foo>123</foo>'); echo "\n---\n"; echo "* PHP <?= echo shortcut:\n"; echo simplexml_load_string('<foo>456<?= bar(); ?></foo>'); echo "\n---\n"; echo "* PHP <?php but no ?>:\n"; echo simplexml_load_string('<foo>789<?php baz();</foo>'); echo "\n---\n"; echo "* PHP block with the ending tag:\n"; echo simplexml_load_string('<foo>abc<?php abc(); ?></foo>');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2sQ6N
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '%2A+XML%3A%0A'
    3     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAL                                                 '%3Cfoo%3E123%3C%2Ffoo%3E'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    4     5        ECHO                                                     '%0A---%0A'
    6     6        ECHO                                                     '%2A+PHP+%3C%3F%3D+echo+shortcut%3A%0A'
    7     7        INIT_FCALL                                               'simplexml_load_string'
          8        SEND_VAL                                                 '%3Cfoo%3E456%3C%3F%3D+bar%28%29%3B+%3F%3E%3C%2Ffoo%3E'
          9        DO_ICALL                                         $1      
         10        ECHO                                                     $1
    8    11        ECHO                                                     '%0A---%0A'
   10    12        ECHO                                                     '%2A+PHP+%3C%3Fphp+but+no+%3F%3E%3A%0A'
   11    13        INIT_FCALL                                               'simplexml_load_string'
         14        SEND_VAL                                                 '%3Cfoo%3E789%3C%3Fphp+baz%28%29%3B%3C%2Ffoo%3E'
         15        DO_ICALL                                         $2      
         16        ECHO                                                     $2
   12    17        ECHO                                                     '%0A---%0A'
   14    18        ECHO                                                     '%2A+PHP+block+with+the+ending+tag%3A%0A'
   15    19        INIT_FCALL                                               'simplexml_load_string'
         20        SEND_VAL                                                 '%3Cfoo%3Eabc%3C%3Fphp+abc%28%29%3B+%3F%3E%3C%2Ffoo%3E'
         21        DO_ICALL                                         $3      
         22        ECHO                                                     $3
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.89 ms | 1445 KiB | 14 Q