3v4l.org

run code in 500+ PHP versions simultaneously
<?php class NodeViewController { private function isValidRel($rel):bool { return true; } } class Othercontroller extends NodeViewController { public function test() { return $this->isValidRel('yep', 'nope'); } private function isValidRel($rel, $different) { return true; } } $x = new Othercontroller(); var_export($x->test());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q9UOD
function name:  (null)
number of ops:  9
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   NEW                                                  $1      'Othercontroller'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   20     3        INIT_FCALL                                                   'var_export'
          4        INIT_METHOD_CALL                                             !0, 'test'
          5        DO_FCALL                                          0  $4      
          6        SEND_VAR                                                     $4
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

Class NodeViewController:
Function isvalidrel:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q9UOD
function name:  isValidRel
number of ops:  4
compiled vars:  !0 = $rel
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
    5     1      > RETURN                                                       <true>
    6     2*       VERIFY_RETURN_TYPE                                           
          3*     > RETURN                                                       null

End of function isvalidrel

End of class NodeViewController.

Class Othercontroller:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q9UOD
function name:  test
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   INIT_METHOD_CALL                                             'isValidRel'
          1        SEND_VAL_EX                                                  'yep'
          2        SEND_VAL_EX                                                  'nope'
          3        DO_FCALL                                          0  $0      
          4      > RETURN                                                       $0
   12     5*     > RETURN                                                       null

End of function test

Function isvalidrel:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q9UOD
function name:  isValidRel
number of ops:  4
compiled vars:  !0 = $rel, !1 = $different
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   14     2      > RETURN                                                       <true>
   15     3*     > RETURN                                                       null

End of function isvalidrel

End of class Othercontroller.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.69 ms | 1960 KiB | 14 Q