3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'foo'; $b = 'bar'; $array = [&$a, $b]; var_dump($array); //$newArray = array_map(function($item){ return $item; }, $array); foreach ($array as $item) { $newArray[] = &$item; } var_dump($newArray);
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/Y3RuJ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $array, !3 = $item, !4 = $newArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'foo'
    4     1        ASSIGN                                                   !1, 'bar'
    5     2        INIT_ARRAY                                       ~7      !0
          3        ADD_ARRAY_ELEMENT                                ~7      !1
          4        ASSIGN                                                   !2, ~7
    7     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                                 
   11     8      > FE_RESET_R                                       $10     !2, ->13
          9    > > FE_FETCH_R                                               $10, !3, ->13
   13    10    >   FETCH_DIM_W                                      $11     !4
         11        ASSIGN_REF                                               $11, !3
   11    12      > JMP                                                      ->9
         13    >   FE_FREE                                                  $10
   16    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !4
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.15 ms | 1395 KiB | 15 Q