3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hour = rand(11, 13); $end_minute = ($hour == 13) ? 30 : 59; $minute = rand(1, $end_minute); $minute = (strlen($minute) == 1) ? '0' . $minute : $minute; $start_date = date('d/m/Y') . '/' . $hour . '/' . $minute; echo $start_date;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
Branch analysis from position: 22
filename:       /in/eXBJa
function name:  (null)
number of ops:  34
compiled vars:  !0 = $hour, !1 = $end_minute, !2 = $minute, !3 = $start_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'rand'
          1        SEND_VAL                                                 11
          2        SEND_VAL                                                 13
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    4     5        IS_EQUAL                                                 !0, 13
          6      > JMPZ                                                     ~6, ->9
          7    >   QM_ASSIGN                                        ~7      30
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~7      59
         10    >   ASSIGN                                                   !1, ~7
    5    11        INIT_FCALL                                               'rand'
         12        SEND_VAL                                                 1
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !2, $9
    6    16        STRLEN                                           ~11     !2
         17        IS_EQUAL                                                 ~11, 1
         18      > JMPZ                                                     ~12, ->22
         19    >   CONCAT                                           ~13     '0', !2
         20        QM_ASSIGN                                        ~14     ~13
         21      > JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~14     !2
         23    >   ASSIGN                                                   !2, ~14
    8    24        INIT_FCALL                                               'date'
         25        SEND_VAL                                                 'd%2Fm%2FY'
         26        DO_ICALL                                         $16     
         27        CONCAT                                           ~17     $16, '%2F'
         28        CONCAT                                           ~18     ~17, !0
         29        CONCAT                                           ~19     ~18, '%2F'
         30        CONCAT                                           ~20     ~19, !2
         31        ASSIGN                                                   !3, ~20
    9    32        ECHO                                                     !3
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.81 ms | 1396 KiB | 17 Q