3v4l.org

run code in 300+ PHP versions simultaneously
<?php $eggCount = 3; for($i = 1; $i <= $eggCount; $i++) { create("eggs", array($i => array("ID" => $i))); } function create($arrName, Array $arrKeys) { $lName = strtolower($arrName); $$lName = array(); foreach($arrKeys as $key => $value) { $$lName[$key] = $value; } for($i = 1; $i <= $GLOBALS['eggCount']; $i++) { // echo "Egg $i's ID: " . $eggs[$i]['ID']; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
filename:       /in/0T3rs
function name:  (null)
number of ops:  13
compiled vars:  !0 = $eggCount, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 3
    5     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->10
    6     3    >   INIT_FCALL_BY_NAME                                       'create'
          4        SEND_VAL_EX                                              'eggs'
          5        INIT_ARRAY                                       ~4      !1, 'ID'
          6        INIT_ARRAY                                       ~5      ~4, !1
          7        SEND_VAL_EX                                              ~5
          8        DO_FCALL                                      0          
    5     9        PRE_INC                                                  !1
         10    >   IS_SMALLER_OR_EQUAL                                      !1, !0
         11      > JMPNZ                                                    ~8, ->3
   18    12    > > RETURN                                                   1

Function create:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 18
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 18
Branch analysis from position: 23
Branch analysis from position: 18
Branch analysis from position: 15
filename:       /in/0T3rs
function name:  create
number of ops:  24
compiled vars:  !0 = $arrName, !1 = $arrKeys, !2 = $lName, !3 = $value, !4 = $key, !5 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        INIT_FCALL                                               'strtolower'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !2, $6
   11     6        FETCH_W                      local               $8      !2
          7        ASSIGN                                                   $8, <array>
   12     8      > FE_RESET_R                                       $10     !1, ->15
          9    > > FE_FETCH_R                                       ~11     $10, !3, ->15
         10    >   ASSIGN                                                   !4, ~11
   13    11        FETCH_W                      local               $13     !2
         12        ASSIGN_DIM                                               $13, !4
         13        OP_DATA                                                  !3
   12    14      > JMP                                                      ->9
         15    >   FE_FREE                                                  $10
   15    16        ASSIGN                                                   !5, 1
         17      > JMP                                                      ->19
         18    >   PRE_INC                                                  !5
         19    >   FETCH_R                      global              ~17     'GLOBALS'
         20        FETCH_DIM_R                                      ~18     ~17, 'eggCount'
         21        IS_SMALLER_OR_EQUAL                                      !5, ~18
         22      > JMPNZ                                                    ~19, ->18
   18    23    > > RETURN                                                   null

End of function create

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.21 ms | 1400 KiB | 15 Q