3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=1; $i < 32; $i++) { $f[$i] = create_function('$j,$k','echo '.$i.',$j,$k;'); } call_user_func($f[--$i],'a','b'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 2
Branch analysis from position: 13
Branch analysis from position: 2
filename:       /in/mmWeO
function name:  (null)
number of ops:  20
compiled vars:  !0 = $i, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
          1      > JMP                                                      ->11
    3     2    >   INIT_FCALL_BY_NAME                                       'create_function'
          3        SEND_VAL_EX                                              '%24j%2C%24k'
          4        CONCAT                                           ~4      'echo+', !0
          5        CONCAT                                           ~5      ~4, '%2C%24j%2C%24k%3B'
          6        SEND_VAL_EX                                              ~5
          7        DO_FCALL                                      0  $6      
          8        ASSIGN_DIM                                               !1, !0
          9        OP_DATA                                                  $6
    2    10        PRE_INC                                                  !0
         11    >   IS_SMALLER                                               !0, 32
         12      > JMPNZ                                                    ~8, ->2
    5    13    >   PRE_DEC                                          ~9      !0
         14        FETCH_DIM_R                                      ~10     !1, ~9
         15        INIT_USER_CALL                                2          'call_user_func', ~10
         16        SEND_USER                                                'a'
         17        SEND_USER                                                'b'
         18        DO_FCALL                                      0          
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155 ms | 1385 KiB | 13 Q