3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { return 'bar'; } $arr = range(1, 2**16); for ($i = 0; $i < 2**16; $i++) { foo(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
Branch analysis from position: 7
filename:       /in/adXVO
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arr, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 65536
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    8     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->10
    9     7    >   INIT_FCALL                                               'foo'
          8        DO_FCALL                                      0          
    8     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 65536
         11      > JMPNZ                                                    ~7, ->7
   10    12    > > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/adXVO
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   'bar'
    5     1*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169 ms | 1397 KiB | 16 Q