3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = ['one'=>['two' =>['t' => false]]]; $p = explode('.', 'one.two.tree'); $v = true; $cf = &$c; foreach($p as $t) { $cf = &$cf[$t]; } $cf = $v; var_dump($cf, $c);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/VGjb1
function name:  (null)
number of ops:  20
compiled vars:  !0 = $c, !1 = $p, !2 = $v, !3 = $cf, !4 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '.'
          3        SEND_VAL                                                 'one.two.tree'
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    5     6        ASSIGN                                                   !2, <true>
    6     7        ASSIGN_REF                                               !3, !0
    7     8      > FE_RESET_R                                       $10     !1, ->13
          9    > > FE_FETCH_R                                               $10, !4, ->13
    8    10    >   FETCH_DIM_W                                      $11     !3, !4
         11        ASSIGN_REF                                               !3, $11
    7    12      > JMP                                                      ->9
         13    >   FE_FREE                                                  $10
   10    14        ASSIGN                                                   !3, !2
   12    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !3
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.73 ms | 1395 KiB | 17 Q