3v4l.org

run code in 300+ PHP versions simultaneously
<?php version_compare(PHP_VERSION, '7.1', '<') && die; $doc = new DOMDocument(); $doc->load('book.xml'); echo $doc->saveXML();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JUH77
function name:  (null)
number of ops:  18
compiled vars:  !0 = $doc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '8.0.0'
          2        SEND_VAL                                                 '7.1'
          3        SEND_VAL                                                 '%3C'
          4        DO_ICALL                                         $1      
          5      > JMPZ_EX                                          ~2      $1, ->8
          6    > > EXIT                                                     
          7*       BOOL                                             ~2      <true>
    3     8    >   NEW                                              $3      'DOMDocument'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !0, $3
    4    11        INIT_METHOD_CALL                                         !0, 'load'
         12        SEND_VAL_EX                                              'book.xml'
         13        DO_FCALL                                      0          
    5    14        INIT_METHOD_CALL                                         !0, 'saveXML'
         15        DO_FCALL                                      0  $7      
         16        ECHO                                                     $7
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.64 ms | 1394 KiB | 15 Q