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) { show(pow(2, $i)); show(1 << $i); break; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 21
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 2
Branch analysis from position: 24
Branch analysis from position: 2
filename:       /in/1h9cu
function name:  (null)
number of ops:  25
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->22
    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, ->21
    6     9    >   INIT_FCALL                                               'show'
         10        INIT_FCALL                                               'pow'
         11        SEND_VAL                                                 2
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_FCALL                                      0          
    7    16        INIT_FCALL                                               'show'
         17        SL                                               ~7      1, !0
         18        SEND_VAL                                                 ~7
         19        DO_FCALL                                      0          
    8    20      > JMP                                                      ->24
    4    21    >   PRE_INC                                                  !0
         22    >   IS_SMALLER                                               !0, 1000
         23      > JMPNZ                                                    ~10, ->2
   10    24    > > RETURN                                                   1

Function show:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1h9cu
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:
153.84 ms | 1399 KiB | 17 Q