3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Montevideo'); $hoy = date('d-m-Y H:i:s'); $hoystr = strtotime($hoy); $mañana = date('d-m-Y H:i:s',strtotime('+1 day', $hoystr)); /*echo $hoy; echo "\n"; echo $mañana; echo "\n";*/ $time = strtotime(date('H:i',$hoystr)); $otro = strtotime(date('H:i','09:00:00')); echo "hora de ingreso: ".date('H:i',$hoystr); echo "\n"; echo "hora comienzo atencion: 09:00"; echo "\n"; $res = 'no'; if($time>$otro){ $res = 'si'; } echo "es mayor la hora de ingreso que la de atencion :".$res;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 48, Position 2 = 49
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 49
filename:       /in/SJpbW
function name:  (null)
number of ops:  52
compiled vars:  !0 = $hoy, !1 = $hoystr, !2 = $mañana, !3 = $time, !4 = $otro, !5 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FMontevideo'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'd-m-Y+H%3Ai%3As'
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !0, $7
    5     7        INIT_FCALL                                               'strtotime'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !1, $9
    6    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'd-m-Y+H%3Ai%3As'
         13        INIT_FCALL                                               'strtotime'
         14        SEND_VAL                                                 '%2B1+day'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $11     
         17        SEND_VAR                                                 $11
         18        DO_ICALL                                         $12     
         19        ASSIGN                                                   !2, $12
   11    20        INIT_FCALL                                               'strtotime'
         21        INIT_FCALL                                               'date'
         22        SEND_VAL                                                 'H%3Ai'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                         $14     
         25        SEND_VAR                                                 $14
         26        DO_ICALL                                         $15     
         27        ASSIGN                                                   !3, $15
   12    28        INIT_FCALL                                               'strtotime'
         29        INIT_FCALL                                               'date'
         30        SEND_VAL                                                 'H%3Ai'
         31        SEND_VAL                                                 '09%3A00%3A00'
         32        DO_ICALL                                         $17     
         33        SEND_VAR                                                 $17
         34        DO_ICALL                                         $18     
         35        ASSIGN                                                   !4, $18
   13    36        INIT_FCALL                                               'date'
         37        SEND_VAL                                                 'H%3Ai'
         38        SEND_VAR                                                 !1
         39        DO_ICALL                                         $20     
         40        CONCAT                                           ~21     'hora+de+ingreso%3A+', $20
         41        ECHO                                                     ~21
   14    42        ECHO                                                     '%0A'
   15    43        ECHO                                                     'hora+comienzo+atencion%3A+09%3A00'
   16    44        ECHO                                                     '%0A'
   17    45        ASSIGN                                                   !5, 'no'
   18    46        IS_SMALLER                                               !4, !3
         47      > JMPZ                                                     ~23, ->49
   19    48    >   ASSIGN                                                   !5, 'si'
   21    49    >   CONCAT                                           ~25     'es+mayor+la+hora+de+ingreso+que+la+de+atencion+%3A', !5
         50        ECHO                                                     ~25
         51      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.07 ms | 1400 KiB | 19 Q