3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { $count = 5; if ($count > 5) return false; for($suffix = 0; $suffix <= 4; $suffix++){ if(false) { if ($count++ > 5) return false; } } return $count; } var_dump(a());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0dk4U
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'a'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
Branch analysis from position: 11
filename:       /in/0dk4U
function name:  a
number of ops:  16
compiled vars:  !0 = $count, !1 = $suffix
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 5
    5     1        IS_SMALLER                                               5, !0
          2      > JMPZ                                                     ~3, ->4
          3    > > RETURN                                                   <false>
    6     4    >   ASSIGN                                                   !1, 0
          5      > JMP                                                      ->12
    7     6    > > JMPZ                                                     <false>, ->11
    8     7    >   POST_INC                                         ~5      !0
          8        IS_SMALLER                                               5, ~5
          9      > JMPZ                                                     ~6, ->11
         10    > > RETURN                                                   <false>
    6    11    >   PRE_INC                                                  !1
         12    >   IS_SMALLER_OR_EQUAL                                      !1, 4
         13      > JMPNZ                                                    ~8, ->6
   11    14    > > RETURN                                                   !0
   12    15*     > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.37 ms | 1399 KiB | 16 Q