3v4l.org

run code in 300+ PHP versions simultaneously
<?php function show($v) { echo "$v\n"; } for($i = 0; $i < 1000; $i++) { if (pow(2, $i) !== 1 << $i) { var_dump($i); break; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 2
Branch analysis from position: 16
Branch analysis from position: 2
filename:       /in/sW6mh
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->14
    5     2    >   INIT_FCALL                                               'pow'
          3        SEND_VAL                                                 2
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SL                                               ~3      1, !0
          7        IS_NOT_IDENTICAL                                         $2, ~3
          8      > JMPZ                                                     ~4, ->13
    6     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    7    12      > JMP                                                      ->16
    4    13    >   PRE_INC                                                  !0
         14    >   IS_SMALLER                                               !0, 1000
         15      > JMPNZ                                                    ~7, ->2
    9    16    > > RETURN                                                   1

Function show:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sW6mh
function name:  show
number of ops:  5
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        NOP                                                      
          2        FAST_CONCAT                                      ~1      !0, '%0A'
          3        ECHO                                                     ~1
          4      > RETURN                                                   null

End of function show

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.63 ms | 1400 KiB | 17 Q