3v4l.org

run code in 300+ PHP versions simultaneously
<?php assert_options(ASSERT_ACTIVE, 0); function foo() { $n = 101681; for ($i =0; $i < 100000; $i++) { $n = $n % 104543 + 70949; } return true; } for ($i = 0; $i < 10; $i++) { assert(foo()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
filename:       /in/YB9Ij
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'assert_options'
          1        FETCH_CONSTANT                                   ~1      'ASSERT_ACTIVE'
          2        SEND_VAL                                                 ~1
          3        SEND_VAL                                                 0
          4        DO_FCALL_BY_NAME                                         
   15     5        ASSIGN                                                   !0, 0
          6      > JMP                                                      ->15
   16     7    >   ASSERT_CHECK                                             
          8        INIT_FCALL                                               'assert'
          9        INIT_FCALL                                               'foo'
         10        DO_FCALL                                      0  $4      
         11        SEND_VAR                                                 $4
         12        SEND_VAL                                                 'assert%28foo%28%29%29'
         13        DO_ICALL                                                 
   15    14        PRE_INC                                                  !0
         15    >   IS_SMALLER                                               !0, 10
         16      > JMPNZ                                                    ~7, ->7
   17    17    > > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 3
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 3
Branch analysis from position: 9
Branch analysis from position: 3
filename:       /in/YB9Ij
function name:  foo
number of ops:  11
compiled vars:  !0 = $n, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 101681
    7     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->7
    9     3    >   MOD                                              ~4      !0, 104543
          4        ADD                                              ~5      ~4, 70949
          5        ASSIGN                                                   !0, ~5
    7     6        PRE_INC                                                  !1
          7    >   IS_SMALLER                                               !1, 100000
          8      > JMPNZ                                                    ~8, ->3
   12     9    > > RETURN                                                   <true>
   13    10*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
216.18 ms | 1004 KiB | 16 Q