3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.11 ms | 1396 KiB | 15 Q