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) { parent::__construct($a, $b, $c); } } new Extension('cake', 12, new Exception("jam"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/telRV
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $0      'Extension'
          1        SEND_VAL_EX                                              'cake'
          2        SEND_VAL_EX                                              12
          3        NEW                                              $1      'Exception'
          4        SEND_VAL_EX                                              'jam'
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $1
          7        DO_FCALL                                      0          
          8        FREE                                                     $0
          9      > RETURN                                                   1

Class Example:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/telRV
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/telRV
function name:  __construct
number of ops:  9
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        INIT_STATIC_METHOD_CALL                                  
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        SEND_VAR_EX                                              !2
          7        DO_FCALL                                      0          
   11     8      > RETURN                                                   null

End of function __construct

End of class Extension.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.37 ms | 1395 KiB | 13 Q