3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.1 ms | 1394 KiB | 15 Q