3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formattedTime = intval(date("Hi", 1429243145)); $curfew = intval(date("Hi", strtotime('20:00'))); //'H' will get the hour of the time from 0-23, intval will convert that to an integer if($formattedTime > $curfew) { echo "You are past the curfew time"; } else { echo "Success"; } echo "\n$formattedTime:$curfew";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bDmC7
function name:  (null)
number of ops:  26
compiled vars:  !0 = $formattedTime, !1 = $curfew
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Hi'
          2        SEND_VAL                                                 1429243145
          3        DO_ICALL                                         $2      
          4        CAST                                          4  ~3      $2
          5        ASSIGN                                                   !0, ~3
    4     6        INIT_FCALL                                               'date'
          7        SEND_VAL                                                 'Hi'
          8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 '20%3A00'
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                         $6      
         13        CAST                                          4  ~7      $6
         14        ASSIGN                                                   !1, ~7
    7    15        IS_SMALLER                                               !1, !0
         16      > JMPZ                                                     ~9, ->19
    8    17    >   ECHO                                                     'You+are+past+the+curfew+time'
         18      > JMP                                                      ->20
   10    19    >   ECHO                                                     'Success'
   12    20    >   ROPE_INIT                                     4  ~11     '%0A'
         21        ROPE_ADD                                      1  ~11     ~11, !0
         22        ROPE_ADD                                      2  ~11     ~11, '%3A'
         23        ROPE_END                                      3  ~10     ~11, !1
         24        ECHO                                                     ~10
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.88 ms | 1387 KiB | 17 Q