3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params_to_return = array( 'count' => range(1,10), 'sum' => array_sum(range(1,10)) ); var_dump($params_to_return);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JrJKm
function name:  (null)
number of ops:  18
compiled vars:  !0 = $params_to_return
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 10
          3        DO_ICALL                                         $1      
          4        INIT_ARRAY                                       ~2      $1, 'count'
    5     5        INIT_FCALL                                               'array_sum'
          6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 1
          8        SEND_VAL                                                 10
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                         $4      
         12        ADD_ARRAY_ELEMENT                                ~2      $4, 'sum'
    3    13        ASSIGN                                                   !0, ~2
    8    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.68 ms | 1394 KiB | 19 Q