3v4l.org

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

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BUIrJ
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_OBJ                                               !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:
159.84 ms | 1398 KiB | 16 Q