3v4l.org

run code in 300+ PHP versions simultaneously
<?php function assign(&$a, &$b, &$c) { static $i = 0; $a = 'a' . $i; $b = 'b' . $i; $c = 'c' . $i; $i++;} $ar_e = array('d' => null); assign($ar['a'], $direct, $ar_e['d']); assign($ar['a'], $direct, $ar_e['d']); var_dump($ar, $direct, $ar_e);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nA0DU
function name:  (null)
number of ops:  21
compiled vars:  !0 = $ar_e, !1 = $ar, !2 = $direct
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'assign'
          2        FETCH_DIM_W                                      $4      !1, 'a'
          3        SEND_REF                                                 $4
          4        SEND_REF                                                 !2
          5        FETCH_DIM_W                                      $5      !0, 'd'
          6        SEND_REF                                                 $5
          7        DO_FCALL                                      0          
    9     8        INIT_FCALL                                               'assign'
          9        FETCH_DIM_W                                      $7      !1, 'a'
         10        SEND_REF                                                 $7
         11        SEND_REF                                                 !2
         12        FETCH_DIM_W                                      $8      !0, 'd'
         13        SEND_REF                                                 $8
         14        DO_FCALL                                      0          
   11    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        SEND_VAR                                                 !2
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Function assign:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nA0DU
function name:  assign
number of ops:  12
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        BIND_STATIC                                              !3
          4        CONCAT                                           ~4      'a', !3
          5        ASSIGN                                                   !0, ~4
          6        CONCAT                                           ~6      'b', !3
          7        ASSIGN                                                   !1, ~6
          8        CONCAT                                           ~8      'c', !3
          9        ASSIGN                                                   !2, ~8
         10        PRE_INC                                                  !3
         11      > RETURN                                                   null

End of function assign

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.03 ms | 1398 KiB | 17 Q