3v4l.org

run code in 300+ PHP versions simultaneously
<?php while(1){ while(1){ if(rand(0,10)==5)break 2; } if(rand(0,10)==7)break; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 1
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 17
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 9
filename:       /in/Rq5Vc
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMP                                                      ->17
    4     1    > > JMP                                                      ->9
    5     2    >   INIT_FCALL                                               'rand'
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 10
          5        DO_ICALL                                         $0      
          6        IS_EQUAL                                                 $0, 5
          7      > JMPZ                                                     ~1, ->9
          8    > > JMP                                                      ->18
    4     9    > > JMPNZ                                                    1, ->2
    7    10    >   INIT_FCALL                                               'rand'
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 10
         13        DO_ICALL                                         $2      
         14        IS_EQUAL                                                 $2, 7
         15      > JMPZ                                                     ~3, ->17
         16    > > JMP                                                      ->18
    3    17    > > JMPNZ                                                    1, ->1
    8    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.75 ms | 1395 KiB | 15 Q