3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestamp = (strtotime("1:00 am") < time()) ? strtotime("1:00 am") : strtotime("tomorrow 1:00 am"); echo date("r",$timestamp);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PqVDe
function name:  (null)
number of ops:  23
compiled vars:  !0 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '1%3A00+am'
          2        DO_ICALL                                         $1      
          3        INIT_FCALL                                               'time'
          4        DO_ICALL                                         $2      
          5        IS_SMALLER                                               $1, $2
          6      > JMPZ                                                     ~3, ->12
          7    >   INIT_FCALL                                               'strtotime'
          8        SEND_VAL                                                 '1%3A00+am'
          9        DO_ICALL                                         $4      
         10        QM_ASSIGN                                        ~5      $4
         11      > JMP                                                      ->16
         12    >   INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 'tomorrow+1%3A00+am'
         14        DO_ICALL                                         $6      
         15        QM_ASSIGN                                        ~5      $6
         16    >   ASSIGN                                                   !0, ~5
    3    17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'r'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $8      
         21        ECHO                                                     $8
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.45 ms | 1395 KiB | 19 Q