3v4l.org

run code in 300+ PHP versions simultaneously
<?php $john = 12; $brother = $john / 3; for($i = 1; $i < 100; $i++){ $john = $john + i; $brother = $brother + 1; if(($john / 2) == $brother){ echo $john; } }
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 = 5
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
Branch analysis from position: 5
Branch analysis from position: 14
filename:       /in/EU4BV
function name:  (null)
number of ops:  18
compiled vars:  !0 = $john, !1 = $brother, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 12
    4     1        DIV                                              ~4      !0, 3
          2        ASSIGN                                                   !1, ~4
    6     3        ASSIGN                                                   !2, 1
          4      > JMP                                                      ->15
    7     5    >   FETCH_CONSTANT                                   ~7      'i'
          6        ADD                                              ~8      !0, ~7
          7        ASSIGN                                                   !0, ~8
    8     8        ADD                                              ~10     !1, 1
          9        ASSIGN                                                   !1, ~10
    9    10        DIV                                              ~12     !0, 2
         11        IS_EQUAL                                                 !1, ~12
         12      > JMPZ                                                     ~13, ->14
   10    13    >   ECHO                                                     !0
    6    14    >   PRE_INC                                                  !2
         15    >   IS_SMALLER                                               !2, 100
         16      > JMPNZ                                                    ~15, ->5
   12    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.7 ms | 1393 KiB | 13 Q