3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Father { /** * Father Controller */ public function __construct() { // CSRF basic Protection $this->beforeFilter('csrf', ['on' => 'post']); $this->beforeFilter('csrf', ['on' => 'put']); $this->beforeFilter('csrf', ['on' => 'patch']); $this->beforeFilter('csrf', ['on' => 'delete']); // Set the bag $this->messageBag = new MessageBag; } } class Child extends Father { /** * Child Controller that extend Father */ public function __construct($a /** Some parameters **/) { parent::__construct(); } } $a = new Child(1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9bvDe
function name:  (null)
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   NEW                                              $1      'Child'
          1        SEND_VAL_EX                                              1
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

Class Father:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9bvDe
function name:  __construct
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_METHOD_CALL                                         'beforeFilter'
          1        SEND_VAL_EX                                              'csrf'
          2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0          
   11     4        INIT_METHOD_CALL                                         'beforeFilter'
          5        SEND_VAL_EX                                              'csrf'
          6        SEND_VAL_EX                                              <array>
          7        DO_FCALL                                      0          
   12     8        INIT_METHOD_CALL                                         'beforeFilter'
          9        SEND_VAL_EX                                              'csrf'
         10        SEND_VAL_EX                                              <array>
         11        DO_FCALL                                      0          
   13    12        INIT_METHOD_CALL                                         'beforeFilter'
         13        SEND_VAL_EX                                              'csrf'
         14        SEND_VAL_EX                                              <array>
         15        DO_FCALL                                      0          
   16    16        NEW                                              $5      'MessageBag'
         17        DO_FCALL                                      0          
         18        ASSIGN_OBJ                                               'messageBag'
         19        OP_DATA                                                  $5
   17    20      > RETURN                                                   null

End of function __construct

End of class Father.

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

End of function __construct

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.17 ms | 1399 KiB | 13 Q