3v4l.org

run code in 300+ PHP versions simultaneously
<?php class derivatives { protected $derivatives = array(); public function addDerivatives($d) { $this->derivatives[] = $d; } } $der = new derivatives(); foreach (array("frabz", "deleon") as $d) { $der->addDerivatives($d); } var_dump($der);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/E1jIJ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $der, !1 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $2      'derivatives'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   13     3      > FE_RESET_R                                       $5      <array>, ->9
          4    > > FE_FETCH_R                                               $5, !1, ->9
   14     5    >   INIT_METHOD_CALL                                         !0, 'addDerivatives'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0          
   13     8      > JMP                                                      ->4
          9    >   FE_FREE                                                  $5
   18    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class derivatives:
Function addderivatives:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E1jIJ
function name:  addDerivatives
number of ops:  5
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        FETCH_OBJ_W                                      $1      'derivatives'
          2        ASSIGN_DIM                                               $1
          3        OP_DATA                                                  !0
    9     4      > RETURN                                                   null

End of function addderivatives

End of class derivatives.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.25 ms | 1395 KiB | 15 Q