3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nb_lots_per_day = array( '1' => 6, '2' => 0, '3' => 0, '4' => 0, '5' => 5, '6' => 0, '7' => 0, '8' => 0, '9' => 0, '10' => 0, '11' => 6, '12' => 0, '13' => 0, '14' => 0, '15' => 0, '16' => 0, '17' => 0, '18' => 6, '19' => 5, '20' => 0, '21' => 0, '22' => 0, '23' => 5, '24' => 0, '25' => 0, '26' => 0, '27' => 10, '28' => 0, '29' => 0, '30' => 0, '31' => 0 ); $nb_lots = $nb_lots_per_day[(int)(date('j'))]; var_dump($nb_lots);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7qOuW
function name:  (null)
number of ops:  11
compiled vars:  !0 = $nb_lots_per_day, !1 = $nb_lots
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   35     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'j'
          3        DO_ICALL                                         $3      
          4        CAST                                          4  ~4      $3
          5        FETCH_DIM_R                                      ~5      !0, ~4
          6        ASSIGN                                                   !1, ~5
   37     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.81 ms | 1394 KiB | 17 Q