3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { public function __construct($a, $b = 0) { } } class Extension extends Example { public function __construct($a, $b = 0, Exception $c = null) { } } new Extension('cake');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4QXM1
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $0      'Extension'
          1        SEND_VAL_EX                                              'cake'
          2        DO_FCALL                                      0          
          3        FREE                                                     $0
          4      > RETURN                                                   1

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

End of function __construct

End of class Example.

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

End of function __construct

End of class Extension.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.7 ms | 1393 KiB | 13 Q