3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace My; class XMLReader extends \XMLReader { public static function open(string $uri, string $encoding = null, int $flags = 0): bool|\XMLReader { echo 'overridden', PHP_EOL; return true; } } XMLReader::open('asdf'); $o = new XMLReader; $o->open('asdf');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7iLBU
function name:  (null)
number of ops:  10
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'My%5CXMLReader', 'open'
          1        SEND_VAL                                                 'asdf'
          2        DO_FCALL                                      0          
   14     3        NEW                                              $2      'My%5CXMLReader'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   15     6        INIT_METHOD_CALL                                         !0, 'open'
          7        SEND_VAL_EX                                              'asdf'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class My\XMLReader:
Function open:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7iLBU
function name:  open
number of ops:  9
compiled vars:  !0 = $uri, !1 = $encoding, !2 = $flags
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2        RECV_INIT                                        !2      0
    8     3        ECHO                                                     'overridden'
          4        FETCH_CONSTANT                                   ~3      'My%5CPHP_EOL'
          5        ECHO                                                     ~3
    9     6      > RETURN                                                   <true>
   10     7*       VERIFY_RETURN_TYPE                                       
          8*     > RETURN                                                   null

End of function open

End of class My\XMLReader.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.38 ms | 1001 KiB | 13 Q