3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a[]=15; $a[] = '16'; $i= 0; foreach($a as $key=>$value){ $i++; $b['app']='apple'; $b['ora']='orange'; $c = array('iphone','nexus','iphone','micromax'); foreach($c as $ckey=>$cvalue){ if($cvalue=='iphone'){ $b['phone']=$cvalue; } var_dump($b)."<br>"; echo "calling a function<br>"; unset($b['phone']); } } var_dump($a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 32
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 32
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 30
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 30
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 22
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 30
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/oQLVK
function name:  (null)
number of ops:  37
compiled vars:  !0 = $a, !1 = $i, !2 = $value, !3 = $key, !4 = $b, !5 = $c, !6 = $cvalue, !7 = $ckey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  15
    5     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  '16'
    6     5        ASSIGN                                                   !1, 0
    7     6      > FE_RESET_R                                       $12     !0, ->32
          7    > > FE_FETCH_R                                       ~13     $12, !2, ->32
          8    >   ASSIGN                                                   !3, ~13
    8     9        PRE_INC                                                  !1
    9    10        ASSIGN_DIM                                               !4, 'app'
         11        OP_DATA                                                  'apple'
   10    12        ASSIGN_DIM                                               !4, 'ora'
         13        OP_DATA                                                  'orange'
   11    14        ASSIGN                                                   !5, <array>
   12    15      > FE_RESET_R                                       $19     !5, ->30
         16    > > FE_FETCH_R                                       ~20     $19, !6, ->30
         17    >   ASSIGN                                                   !7, ~20
   14    18        IS_EQUAL                                                 !6, 'iphone'
         19      > JMPZ                                                     ~22, ->22
   15    20    >   ASSIGN_DIM                                               !4, 'phone'
         21        OP_DATA                                                  !6
   17    22    >   INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !4
         24        DO_ICALL                                         $24     
         25        CONCAT                                           ~25     $24, '%3Cbr%3E'
         26        FREE                                                     ~25
   18    27        ECHO                                                     'calling+a+function%3Cbr%3E'
   19    28        UNSET_DIM                                                !4, 'phone'
   12    29      > JMP                                                      ->16
         30    >   FE_FREE                                                  $19
    7    31      > JMP                                                      ->7
         32    >   FE_FREE                                                  $12
   22    33        INIT_FCALL                                               'var_dump'
         34        SEND_VAR                                                 !0
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.38 ms | 1400 KiB | 15 Q