3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 10; $i++) { $a = create_function('', 'return '. $i .';'); var_dump($a()); $b = "\0lambda_". ($i + 1); var_dump($b()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 2
Branch analysis from position: 25
Branch analysis from position: 2
filename:       /in/3GV6K
function name:  (null)
number of ops:  26
compiled vars:  !0 = $i, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->23
    4     2    >   INIT_FCALL_BY_NAME                                       'create_function'
          3        SEND_VAL_EX                                              ''
          4        CONCAT                                           ~4      'return+', !0
          5        CONCAT                                           ~5      ~4, '%3B'
          6        SEND_VAL_EX                                              ~5
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                                   !1, $6
    5     9        INIT_FCALL                                               'var_dump'
         10        INIT_DYNAMIC_CALL                                        !1
         11        DO_FCALL                                      0  $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                                 
    7    14        ADD                                              ~10     !0, 1
         15        CONCAT                                           ~11     '%00lambda_', ~10
         16        ASSIGN                                                   !2, ~11
    8    17        INIT_FCALL                                               'var_dump'
         18        INIT_DYNAMIC_CALL                                        !2
         19        DO_FCALL                                      0  $13     
         20        SEND_VAR                                                 $13
         21        DO_ICALL                                                 
    3    22        PRE_INC                                                  !0
         23    >   IS_SMALLER                                               !0, 10
         24      > JMPNZ                                                    ~16, ->2
    9    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.94 ms | 1395 KiB | 15 Q