3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3,4); function boom($a) { return $a+1; } array_walk('boom', ($new = $a)); var_dump($new);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H7AjV
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a, !1 = $new
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'array_walk'
          2        SEND_VAL_EX                                              'boom'
          3        ASSIGN                                           ~3      !1, !0
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                                 
    7     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function boom:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H7AjV
function name:  boom
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ADD                                              ~1      !0, 1
          2      > RETURN                                                   ~1
    5     3*     > RETURN                                                   null

End of function boom

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.72 ms | 1394 KiB | 17 Q