3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rst = array(1, 5, 7, 8, 9, 10, 11, 12, 15, 17, 22, 23, 27, 30, 33, 34, 37); for ($i = 1; $i <= 39; $i++) { if (in_array($i, $rst)) { continue; } $arr[] = $i; } $a = mt_rand(1, sizeof($arr)); echo $arr[$a-1] . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 3
Branch analysis from position: 14
Branch analysis from position: 3
filename:       /in/hlZp9
function name:  (null)
number of ops:  25
compiled vars:  !0 = $rst, !1 = $i, !2 = $arr, !3 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->12
    4     3    >   INIT_FCALL                                               'in_array'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $6      
          7      > JMPZ                                                     $6, ->9
    5     8    > > JMP                                                      ->11
    7     9    >   ASSIGN_DIM                                               !2
         10        OP_DATA                                                  !1
    3    11    >   PRE_INC                                                  !1
         12    >   IS_SMALLER_OR_EQUAL                                      !1, 39
         13      > JMPNZ                                                    ~9, ->3
   10    14    >   INIT_FCALL                                               'mt_rand'
         15        SEND_VAL                                                 1
         16        COUNT                                            ~10     !2
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !3, $11
   11    20        SUB                                              ~13     !3, 1
         21        FETCH_DIM_R                                      ~14     !2, ~13
         22        CONCAT                                           ~15     ~14, '%0A'
         23        ECHO                                                     ~15
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.67 ms | 937 KiB | 18 Q