3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyImplementation extends \DOMImplementation { function commonfunc() { echo "implementation"; } } $implementation = new MyImplementation(); $doc = $implementation->createDocument(); var_dump($doc->implementation === $implementation);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rWlgt
function name:  (null)
number of ops:  12
compiled vars:  !0 = $implementation, !1 = $doc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'MyImplementation'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   11     3        INIT_METHOD_CALL                                         !0, 'createDocument'
          4        DO_FCALL                                      0  $5      
          5        ASSIGN                                                   !1, $5
   12     6        INIT_FCALL                                               'var_dump'
          7        FETCH_OBJ_R                                      ~7      !1, 'implementation'
          8        IS_IDENTICAL                                     ~8      !0, ~7
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class MyImplementation:
Function commonfunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rWlgt
function name:  commonfunc
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'implementation'
    7     1      > RETURN                                                   null

End of function commonfunc

End of class MyImplementation.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.69 ms | 1399 KiB | 15 Q