3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_NOTICE | E_STRICT); class a { public function test($aArug) { echo $aArug; } } class b extends a { public function test($newName) { echo $newName; } } $b = new b(); $b->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bEvlS
function name:  (null)
number of ops:  9
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 2056
          2        DO_ICALL                                                 
   18     3        NEW                                              $2      'b'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   19     6        INIT_METHOD_CALL                                         !0, 'test'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class a:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bEvlS
function name:  test
number of ops:  3
compiled vars:  !0 = $aArug
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        ECHO                                                     !0
    8     2      > RETURN                                                   null

End of function test

End of class a.

Class b:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bEvlS
function name:  test
number of ops:  3
compiled vars:  !0 = $newName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1        ECHO                                                     !0
   15     2      > RETURN                                                   null

End of function test

End of class b.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.3 ms | 1395 KiB | 15 Q