3v4l.org

run code in 500+ PHP versions simultaneously
<?php libxml_set_external_entity_loader(function ($public_id, $system_id, $context) { var_dump($public_id, $system_id, $context); return "other"; }); $doc = new DOMDocument; $doc->loadHTMLFile("foobar");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rJTTc
function name:  (null)
number of ops:  11
compiled vars:  !0 = $doc
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'libxml_set_external_entity_loader'
          1        DECLARE_LAMBDA_FUNCTION                              ~1      [0]
    6     2        SEND_VAL                                                     ~1
    3     3        DO_ICALL                                                     
    8     4        NEW                                                  $3      'DOMDocument'
          5        DO_FCALL                                          0          
          6        ASSIGN                                                       !0, $3
    9     7        INIT_METHOD_CALL                                             !0, 'loadHTMLFile'
          8        SEND_VAL_EX                                                  'foobar'
          9        DO_FCALL                                          0          
         10      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rJTTc
function name:  {closure:/in/rJTTc:3}
number of ops:  10
compiled vars:  !0 = $public_id, !1 = $system_id, !2 = $context
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
    4     3        INIT_FCALL                                                   'var_dump'
          4        SEND_VAR                                                     !0
          5        SEND_VAR                                                     !1
          6        SEND_VAR                                                     !2
          7        DO_ICALL                                                     
    5     8      > RETURN                                                       'other'
    6     9*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.67 ms | 1811 KiB | 15 Q