3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dia = date("l"); $hora = explode(":", date("H:i")); var_dump($hora); if ( ($dia == "Wednesday") && ($hora >= 11 && $hora <=12) ) { print("TRUE");} else { print("FALSE"); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
2 jumps found. (Code = 46) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 22
filename:       /in/ZlNaR
function name:  (null)
number of ops:  27
compiled vars:  !0 = $dia, !1 = $hora
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'l'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%3A'
          6        INIT_FCALL                                               'date'
          7        SEND_VAL                                                 'H%3Ai'
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
    4    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    5    15        IS_EQUAL                                         ~8      !0, 'Wednesday'
         16      > JMPZ_EX                                          ~8      ~8, ->22
         17    >   IS_SMALLER_OR_EQUAL                              ~9      11, !1
         18      > JMPZ_EX                                          ~9      ~9, ->21
         19    >   IS_SMALLER_OR_EQUAL                              ~10     !1, 12
         20        BOOL                                             ~9      ~10
         21    >   BOOL                                             ~8      ~9
         22    > > JMPZ                                                     ~8, ->25
    6    23    >   ECHO                                                     'TRUE'
         24      > JMP                                                      ->26
    8    25    >   ECHO                                                     'FALSE'
   10    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.51 ms | 1396 KiB | 19 Q