3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A1 { public function __construct($p1) { echo $p1; } } class B1 extends A1 { public function __construct($p1, $p2) { echo $p1.":".$p2; } } $b1 = new B1(1,2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XdM7m
function name:  (null)
number of ops:  6
compiled vars:  !0 = $b1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $1      'B1'
          1        SEND_VAL_EX                                              1
          2        SEND_VAL_EX                                              2
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
          5      > RETURN                                                   1

Class A1:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XdM7m
function name:  __construct
number of ops:  3
compiled vars:  !0 = $p1
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 __construct

End of class A1.

Class B1:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XdM7m
function name:  __construct
number of ops:  6
compiled vars:  !0 = $p1, !1 = $p2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   15     2        CONCAT                                           ~2      !0, '%3A'
          3        CONCAT                                           ~3      ~2, !1
          4        ECHO                                                     ~3
   16     5      > RETURN                                                   null

End of function __construct

End of class B1.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.76 ms | 1393 KiB | 13 Q