3v4l.org

run code in 300+ PHP versions simultaneously
<?php function byRef(&$ref) {} ini_set('memory_limit', '500k'); $array = array_fill(0, 2000, '*'); $ref = $array; byRef($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f5l1D
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'memory_limit'
          2        SEND_VAL                                                 '500k'
          3        DO_ICALL                                                 
    7     4        INIT_FCALL                                               'array_fill'
          5        SEND_VAL                                                 0
          6        SEND_VAL                                                 2000
          7        SEND_VAL                                                 '%2A'
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !0, $3
    8    10        ASSIGN                                                   !1, !0
   10    11        INIT_FCALL                                               'byref'
         12        SEND_REF                                                 !0
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

Function byref:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f5l1D
function name:  byRef
number of ops:  2
compiled vars:  !0 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function byref

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.6 ms | 1397 KiB | 18 Q