3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Some variables. $france = 'France'; $england = 'England'; // Set up keys of an array as pointers to the variables above. $storage = array(); $storage['fr'] = &$france; $storage['en'] = &$england; // Update the variable. $france = 'Angleterre'; $storage['en'] = 'lolwut'; // Updates the pointer map. print_r($storage); echo $england;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZYMob
function name:  (null)
number of ops:  15
compiled vars:  !0 = $france, !1 = $england, !2 = $storage
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'France'
    5     1        ASSIGN                                                   !1, 'England'
    8     2        ASSIGN                                                   !2, <array>
    9     3        FETCH_DIM_W                                      $6      !2, 'fr'
          4        ASSIGN_REF                                               $6, !0
   10     5        FETCH_DIM_W                                      $8      !2, 'en'
          6        ASSIGN_REF                                               $8, !1
   13     7        ASSIGN                                                   !0, 'Angleterre'
   14     8        ASSIGN_DIM                                               !2, 'en'
          9        OP_DATA                                                  'lolwut'
   17    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   18    13        ECHO                                                     !1
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.63 ms | 1394 KiB | 15 Q