3v4l.org

run code in 300+ PHP versions simultaneously
<?php $closeDayArray = array( "January" => array(4), "February" => array(12), "March" => array(2,12,27), "April" => array(12,13,14,15,16,17,18,19,20,21), "May" => array(1,10), "July" => array(8,19), "October" => array(5), "November" => array(3), "December" => array(25) ); date_default_timezone_set('Asia/Bangkok'); $day= date('D') ; $month = date('M'); if($day == "Mon") { echo "close"; } echo $month;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/EUL8T
function name:  (null)
number of ops:  17
compiled vars:  !0 = $closeDayArray, !1 = $day, !2 = $month
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'date_default_timezone_set'
          2        SEND_VAL                                                 'Asia%2FBangkok'
          3        DO_ICALL                                                 
   14     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'D'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
   15     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'M'
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
   16    12        IS_EQUAL                                                 !1, 'Mon'
         13      > JMPZ                                                     ~9, ->15
   17    14    >   ECHO                                                     'close'
   20    15    >   ECHO                                                     !2
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.35 ms | 1394 KiB | 17 Q