3v4l.org

run code in 300+ PHP versions simultaneously
<?php while(mt_rand(1, 255) != 1) { $it++; } echo $it;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 1
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 1
Branch analysis from position: 8
Branch analysis from position: 1
filename:       /in/mcb0V
function name:  (null)
number of ops:  10
compiled vars:  !0 = $it
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > JMP                                                      ->2
    4     1    >   PRE_INC                                                  !0
    2     2    >   INIT_FCALL                                               'mt_rand'
          3        SEND_VAL                                                 1
          4        SEND_VAL                                                 255
          5        DO_ICALL                                         $2      
          6        IS_NOT_EQUAL                                             $2, 1
          7      > JMPNZ                                                    ~3, ->1
    6     8    >   ECHO                                                     !0
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.08 ms | 1385 KiB | 15 Q