3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { } class B { public function setA(A $a) { echo okay; } } $b = new B; $b->setA(null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1SHH1
function name:  (null)
number of ops:  7
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 'setA'
          4        SEND_VAL_EX                                              null
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class A: [no user functions]
Class B:
Function seta:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1SHH1
function name:  setA
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        FETCH_CONSTANT                                   ~1      'okay'
          2        ECHO                                                     ~1
   10     3      > RETURN                                                   null

End of function seta

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
352.38 ms | 1392 KiB | 14 Q