3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lotteryMachine = range(1, 49); for ($i=1;$i<=7;$i++) {shuffle($lotteryMachine);} $lotteryResult = array_slice($lotteryMachine, 0, 6); sort($lotteryResult); print date("Y-m-d") . " 六合彩搞珠結果: " ; foreach ($lotteryResult as $drawnNumber) { echo $drawnNumber . " "; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 28, Position 2 = 32
Branch analysis from position: 28
2 jumps found. (Code = 78) Position 1 = 29, Position 2 = 32
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 7
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/SspYB
function name:  (null)
number of ops:  34
compiled vars:  !0 = $lotteryMachine, !1 = $i, !2 = $lotteryResult, !3 = $drawnNumber
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 49
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    4     5        ASSIGN                                                   !1, 1
          6      > JMP                                                      ->11
          7    >   INIT_FCALL                                               'shuffle'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
         10        PRE_INC                                                  !1
         11    >   IS_SMALLER_OR_EQUAL                                      !1, 7
         12      > JMPNZ                                                    ~9, ->7
    6    13    >   INIT_FCALL                                               'array_slice'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 0
         16        SEND_VAL                                                 6
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !2, $10
    8    19        INIT_FCALL                                               'sort'
         20        SEND_REF                                                 !2
         21        DO_ICALL                                                 
   10    22        INIT_FCALL                                               'date'
         23        SEND_VAL                                                 'Y-m-d'
         24        DO_ICALL                                         $13     
         25        CONCAT                                           ~14     $13, '+%E5%85%AD%E5%90%88%E5%BD%A9%E6%90%9E%E7%8F%A0%E7%B5%90%E6%9E%9C%3A+'
         26        ECHO                                                     ~14
   12    27      > FE_RESET_R                                       $15     !2, ->32
         28    > > FE_FETCH_R                                               $15, !3, ->32
   13    29    >   CONCAT                                           ~16     !3, '+'
         30        ECHO                                                     ~16
   12    31      > JMP                                                      ->28
         32    >   FE_FREE                                                  $15
   15    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.7 ms | 1396 KiB | 23 Q