3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Montevideo'); $hoy = date("d/m/Y H:i:s"); $mañana = strtotime("+1 day", $hoy); echo $hoy; echo "<br>"; echo $mañana; /*if(isWeekend($hoy)){ echo "es finde"; }else{ echo "no es finde"; }*/ //$weekDay = date('w', strtotime($hoy)); function isWeekend($date) { $weekDay = date('w', strtotime($date)); return ($weekDay == 0 || $weekDay == 6); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Pb1P
function name:  (null)
number of ops:  16
compiled vars:  !0 = $hoy, !1 = $mañana
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FMontevideo'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'd%2Fm%2FY+H%3Ai%3As'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    4     7        INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 '%2B1+day'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
    5    12        ECHO                                                     !0
    6    13        ECHO                                                     '%3Cbr%3E'
    7    14        ECHO                                                     !1
   18    15      > RETURN                                                   1

Function isweekend:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/8Pb1P
function name:  isWeekend
number of ops:  15
compiled vars:  !0 = $date, !1 = $weekDay
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   16     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'w'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !1, $3
   17     9        IS_EQUAL                                         ~5      !1, 0
         10      > JMPNZ_EX                                         ~5      ~5, ->13
         11    >   IS_EQUAL                                         ~6      !1, 6
         12        BOOL                                             ~5      ~6
         13    > > RETURN                                                   ~5
   18    14*     > RETURN                                                   null

End of function isweekend

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.68 ms | 1396 KiB | 19 Q