3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('e' => 22, 'r' => 66, 't' => 88); $b = array('t' => 65); print_r(array_merge($a, $b)); array_walk($a, function(&$value) { $value = 'e ' + $value; }); print_r($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0ocqv
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'array_merge'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'array_walk'
         10        SEND_REF                                                 !0
         11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F0ocqv%3A7%240'
    9    12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
   11    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F0ocqv%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0ocqv
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ADD                                              ~1      'e+', !0
          2        ASSIGN                                                   !0, ~1
    9     3      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F0ocqv%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.6 ms | 1395 KiB | 19 Q