3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B extends A {} class Test { public function run(A $object){ return true; } } $test = new Test; $b = new B; var_dump($test->run($b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CkL6u
function name:  (null)
number of ops:  13
compiled vars:  !0 = $test, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $2      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   16     3        NEW                                              $5      'B'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   18     6        INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         !0, 'run'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $8      
         10        SEND_VAR                                                 $8
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]
Class Test:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CkL6u
function name:  run
number of ops:  3
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1      > RETURN                                                   <true>
   11     2*     > RETURN                                                   null

End of function run

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.89 ms | 1395 KiB | 15 Q