3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 4; function double(&$var){ $var = $var * 2; } double($var); print_r($var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZOFF7
function name:  (null)
number of ops:  8
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 4
    9     1        INIT_FCALL                                               'double'
          2        SEND_REF                                                 !0
          3        DO_FCALL                                      0          
   11     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

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

End of function double

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.79 ms | 1396 KiB | 16 Q