3v4l.org

run code in 300+ PHP versions simultaneously
<?php $maximumDepth = 512; $test = array_reduce( range(0, $maximumDepth + 1), function($r) { return array($r); } ); var_dump($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UJjg3
function name:  (null)
number of ops:  16
compiled vars:  !0 = $maximumDepth, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 512
    4     1        INIT_FCALL                                               'array_reduce'
    5     2        INIT_FCALL                                               'range'
          3        SEND_VAL                                                 0
          4        ADD                                              ~3      !0, 1
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
    6     8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FUJjg3%3A6%240'
    8     9        SEND_VAL                                                 ~5
         10        DO_ICALL                                         $6      
    4    11        ASSIGN                                                   !1, $6
   11    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FUJjg3%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UJjg3
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_ARRAY                                       ~1      !0
          2      > RETURN                                                   ~1
    8     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FUJjg3%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.21 ms | 1395 KiB | 19 Q