3v4l.org

run code in 300+ PHP versions simultaneously
<?php assert_options(ASSERT_ACTIVE, 0); function foo() { $n = 101681; for ($i =0; $i < 1000000; $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 = 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 = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/0078N
function name:  (null)
number of ops:  15
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'assert_options'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 0
          3        DO_ICALL                                                 
   15     4        ASSIGN                                                   !0, 0
          5      > JMP                                                      ->12
   16     6    >   ASSERT_CHECK                                             
          7        INIT_FCALL                                               'assert'
          8        SEND_VAL                                                 'foo%28%29'
          9        SEND_VAL                                                 'assert%28%27foo%28%29%27%29'
         10        DO_ICALL                                                 
   15    11        PRE_INC                                                  !0
         12    >   IS_SMALLER                                               !0, 10
         13      > JMPNZ                                                    ~5, ->6
   17    14    > > 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/0078N
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, 1000000
          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:
194.7 ms | 1396 KiB | 17 Q