3v4l.org

run code in 300+ PHP versions simultaneously
<?php $actions = array(); for ($x = 1; $x < 3; ++$x){ $actions[$x] = function(){ echo 'this is action 425 to 724'; // etc etc.. }; } debug_zval_dump($actions[0]); debug_zval_dump($actions[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 3
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 3
Branch analysis from position: 9
Branch analysis from position: 3
filename:       /in/47cTG
function name:  (null)
number of ops:  18
compiled vars:  !0 = $actions, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->7
    6     3    >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F47cTG%3A6%240'
          4        ASSIGN_DIM                                               !0, !1
    9     5        OP_DATA                                                  ~5
    5     6        PRE_INC                                                  !1
          7    >   IS_SMALLER                                               !1, 3
          8      > JMPNZ                                                    ~7, ->3
   12     9    >   INIT_FCALL                                               'debug_zval_dump'
         10        FETCH_DIM_R                                      ~8      !0, 0
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                                 
   13    13        INIT_FCALL                                               'debug_zval_dump'
         14        FETCH_DIM_R                                      ~10     !0, 1
         15        SEND_VAL                                                 ~10
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F47cTG%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/47cTG
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'this+is+action+425+to+724'
    9     1      > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.41 ms | 1395 KiB | 15 Q