3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mas = new ArrayObject(); var_dump($mas); 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/soMpI
function name:  (null)
number of ops:  18
compiled vars:  !0 = $mas
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'ArrayObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   10     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   11     9        ECHO                                                     '%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D'
   12    10        INIT_FCALL                                               'f'
         11        SEND_VAR                                                 !0
         12        DO_FCALL                                      0          
   13    13        ECHO                                                     '----------'
   14    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

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

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.12 ms | 1398 KiB | 16 Q