3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i=0;$i>100;$i++) { $c = mt_rand(1,3); if($c == 1) { $one++; } elseif($c == 2) { $two++; } elseif($c=3) { $three++; } } echo "one {$one}; two {$two}; three {$three}";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
Branch analysis from position: 2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
Branch analysis from position: 2
Branch analysis from position: 18
filename:       /in/I12R4
function name:  (null)
number of ops:  29
compiled vars:  !0 = $i, !1 = $c, !2 = $one, !3 = $two, !4 = $three
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->19
    3     2    >   INIT_FCALL                                               'mt_rand'
          3        SEND_VAL                                                 1
          4        SEND_VAL                                                 3
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !1, $6
    4     7        IS_EQUAL                                                 !1, 1
          8      > JMPZ                                                     ~8, ->11
          9    >   PRE_INC                                                  !2
         10      > JMP                                                      ->18
    5    11    >   IS_EQUAL                                                 !1, 2
         12      > JMPZ                                                     ~10, ->15
         13    >   PRE_INC                                                  !3
         14      > JMP                                                      ->18
    6    15    >   ASSIGN                                           ~12     !1, 3
         16      > JMPZ                                                     ~12, ->18
         17    >   PRE_INC                                                  !4
    2    18    >   PRE_INC                                                  !0
         19    >   IS_SMALLER                                               100, !0
         20      > JMPNZ                                                    ~15, ->2
    8    21    >   ROPE_INIT                                     6  ~17     'one+'
         22        ROPE_ADD                                      1  ~17     ~17, !2
         23        ROPE_ADD                                      2  ~17     ~17, '%3B+two+'
         24        ROPE_ADD                                      3  ~17     ~17, !3
         25        ROPE_ADD                                      4  ~17     ~17, '%3B+three+'
         26        ROPE_END                                      5  ~16     ~17, !4
         27        ECHO                                                     ~16
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.56 ms | 1401 KiB | 15 Q