3v4l.org

run code in 300+ PHP versions simultaneously
<?php class base { public function __construct($expire = 604800) { print $expire; } } class child extends base { public function __construct($expire = 604800) { parent::__construct($expire = 604800); } } new child(9001);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a56EU
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $0      'child'
          1        SEND_VAL_EX                                              9001
          2        DO_FCALL                                      0          
          3        FREE                                                     $0
          4      > RETURN                                                   1

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

End of function __construct

End of class base.

Class child:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a56EU
function name:  __construct
number of ops:  6
compiled vars:  !0 = $expire
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV_INIT                                        !0      604800
          1        INIT_STATIC_METHOD_CALL                                  
          2        ASSIGN                                           ~1      !0, 604800
          3        SEND_VAL_EX                                              ~1
          4        DO_FCALL                                      0          
          5      > RETURN                                                   null

End of function __construct

End of class child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.71 ms | 1007 KiB | 13 Q