3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hello($data) { foreach ($data as &$item) { $item['hello'] = 'world'; } return $data; } $data = hello(array('lets', 'go', 'to', 'space'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IZjrM
function name:  (null)
number of ops:  5
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'hello'
          1        SEND_VAL                                                 <array>
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

Function hello:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/IZjrM
function name:  hello
number of ops:  9
compiled vars:  !0 = $data, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1      > FE_RESET_RW                                      $2      !0, ->6
          2    > > FE_FETCH_RW                                              $2, !1, ->6
    6     3    >   ASSIGN_DIM                                               !1, 'hello'
          4        OP_DATA                                                  'world'
    5     5      > JMP                                                      ->2
          6    >   FE_FREE                                                  $2
    9     7      > RETURN                                                   !0
   10     8*     > RETURN                                                   null

End of function hello

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.87 ms | 1397 KiB | 14 Q