3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Rome'); $N = date('t'); $n=date('d'); $percentuale_mese_passata=100*(($n-1)/$N); $min_rand = 1; $max_rand = 100; $min_ok = $min_rand; $max_ok = $min_rand + floor($percentuale_mese_passata); echo "$min_ok $max_ok"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ot1M0
function name:  (null)
number of ops:  28
compiled vars:  !0 = $N, !1 = $n, !2 = $percentuale_mese_passata, !3 = $min_rand, !4 = $max_rand, !5 = $min_ok, !6 = $max_ok
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FRome'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 't'
          5        DO_ICALL                                         $8      
          6        ASSIGN                                                   !0, $8
    4     7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'd'
          9        DO_ICALL                                         $10     
         10        ASSIGN                                                   !1, $10
    5    11        SUB                                              ~12     !1, 1
         12        DIV                                              ~13     ~12, !0
         13        MUL                                              ~14     ~13, 100
         14        ASSIGN                                                   !2, ~14
    7    15        ASSIGN                                                   !3, 1
    8    16        ASSIGN                                                   !4, 100
   10    17        ASSIGN                                                   !5, !3
   11    18        INIT_FCALL                                               'floor'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $19     
         21        ADD                                              ~20     !3, $19
         22        ASSIGN                                                   !6, ~20
   14    23        ROPE_INIT                                     3  ~23     !5
         24        ROPE_ADD                                      1  ~23     ~23, '+'
         25        ROPE_END                                      2  ~22     ~23, !6
         26        ECHO                                                     ~22
   15    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
197.61 ms | 1399 KiB | 19 Q