3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'yesterday 22:30'; date_default_timezone_set('UTC'); var_dump(date('r', strtotime($str, time()))); var_dump(date('r', strtotime($str, strtotime('2013-05-23 00:30')))); var_dump(date('r', strtotime($str, strtotime('2013-05-22 23:30')))); var_dump(date('r', strtotime($str, strtotime('2013-05-22 22:30')))); var_dump(date('r', strtotime($str, strtotime('2013-05-22 21:00'))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NgRQj
function name:  (null)
number of ops:  74
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'yesterday+22%3A30'
    3     1        INIT_FCALL                                               'date_default_timezone_set'
          2        SEND_VAL                                                 'UTC'
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'r'
          7        INIT_FCALL                                               'strtotime'
          8        SEND_VAR                                                 !0
          9        INIT_FCALL                                               'time'
         10        DO_ICALL                                         $3      
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                                 
    6    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'date'
         19        SEND_VAL                                                 'r'
         20        INIT_FCALL                                               'strtotime'
         21        SEND_VAR                                                 !0
         22        INIT_FCALL                                               'strtotime'
         23        SEND_VAL                                                 '2013-05-23+00%3A30'
         24        DO_ICALL                                         $7      
         25        SEND_VAR                                                 $7
         26        DO_ICALL                                         $8      
         27        SEND_VAR                                                 $8
         28        DO_ICALL                                         $9      
         29        SEND_VAR                                                 $9
         30        DO_ICALL                                                 
    7    31        INIT_FCALL                                               'var_dump'
         32        INIT_FCALL                                               'date'
         33        SEND_VAL                                                 'r'
         34        INIT_FCALL                                               'strtotime'
         35        SEND_VAR                                                 !0
         36        INIT_FCALL                                               'strtotime'
         37        SEND_VAL                                                 '2013-05-22+23%3A30'
         38        DO_ICALL                                         $11     
         39        SEND_VAR                                                 $11
         40        DO_ICALL                                         $12     
         41        SEND_VAR                                                 $12
         42        DO_ICALL                                         $13     
         43        SEND_VAR                                                 $13
         44        DO_ICALL                                                 
    8    45        INIT_FCALL                                               'var_dump'
         46        INIT_FCALL                                               'date'
         47        SEND_VAL                                                 'r'
         48        INIT_FCALL                                               'strtotime'
         49        SEND_VAR                                                 !0
         50        INIT_FCALL                                               'strtotime'
         51        SEND_VAL                                                 '2013-05-22+22%3A30'
         52        DO_ICALL                                         $15     
         53        SEND_VAR                                                 $15
         54        DO_ICALL                                         $16     
         55        SEND_VAR                                                 $16
         56        DO_ICALL                                         $17     
         57        SEND_VAR                                                 $17
         58        DO_ICALL                                                 
    9    59        INIT_FCALL                                               'var_dump'
         60        INIT_FCALL                                               'date'
         61        SEND_VAL                                                 'r'
         62        INIT_FCALL                                               'strtotime'
         63        SEND_VAR                                                 !0
         64        INIT_FCALL                                               'strtotime'
         65        SEND_VAL                                                 '2013-05-22+21%3A00'
         66        DO_ICALL                                         $19     
         67        SEND_VAR                                                 $19
         68        DO_ICALL                                         $20     
         69        SEND_VAR                                                 $20
         70        DO_ICALL                                         $21     
         71        SEND_VAR                                                 $21
         72        DO_ICALL                                                 
         73      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.73 ms | 1405 KiB | 23 Q