3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { public function __construct(array $a){} } class Child extends ParentClass { public function __construct($string){ echo 'Child'; } } $child = new Child('child'); $parent = new ParentClass('father');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Oj14s
function name:  (null)
number of ops:  9
compiled vars:  !0 = $child, !1 = $parent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $2      'Child'
          1        SEND_VAL_EX                                              'child'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   13     4        NEW                                              $5      'ParentClass'
          5        SEND_VAL_EX                                              'father'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
          8      > RETURN                                                   1

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

End of function __construct

End of class ParentClass.

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

End of function __construct

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.12 ms | 1393 KiB | 13 Q