3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mas = array('first' => '1', 'second' => '2'); function f($m){ $m['first'] = 3; var_dump($m); return 'Done!'; } var_dump($mas); echo '============'; f($mas); echo ('----------'); var_dump($mas);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ye804
function name:  (null)
number of ops:  13
compiled vars:  !0 = $mas
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    9     4        ECHO                                                     '%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D'
   10     5        INIT_FCALL                                               'f'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0          
   11     8        ECHO                                                     '----------'
   12     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ye804
function name:  f
number of ops:  8
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN_DIM                                               !0, 'first'
          2        OP_DATA                                                  3
    5     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    6     6      > RETURN                                                   'Done%21'
    7     7*     > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.15 ms | 1397 KiB | 16 Q