3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'yesterday 22:30'; date_default_timezone_set('UTC'); var_dump('22' . date('r', strtotime($str, time()))); var_dump('22' . date('r', strtotime($str, strtotime('2013-05-23 00:30')))); var_dump('22' . date('r', strtotime($str, strtotime('2013-05-22 23:30')))); var_dump('??' . date('r', strtotime($str, strtotime('2013-05-22 22:30')))); var_dump('21' . 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/KeVhE
function name:  (null)
number of ops:  79
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        CONCAT                                           ~6      '22', $5
         16        SEND_VAL                                                 ~6
         17        DO_ICALL                                                 
    6    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'date'
         20        SEND_VAL                                                 'r'
         21        INIT_FCALL                                               'strtotime'
         22        SEND_VAR                                                 !0
         23        INIT_FCALL                                               'strtotime'
         24        SEND_VAL                                                 '2013-05-23+00%3A30'
         25        DO_ICALL                                         $8      
         26        SEND_VAR                                                 $8
         27        DO_ICALL                                         $9      
         28        SEND_VAR                                                 $9
         29        DO_ICALL                                         $10     
         30        CONCAT                                           ~11     '22', $10
         31        SEND_VAL                                                 ~11
         32        DO_ICALL                                                 
    7    33        INIT_FCALL                                               'var_dump'
         34        INIT_FCALL                                               'date'
         35        SEND_VAL                                                 'r'
         36        INIT_FCALL                                               'strtotime'
         37        SEND_VAR                                                 !0
         38        INIT_FCALL                                               'strtotime'
         39        SEND_VAL                                                 '2013-05-22+23%3A30'
         40        DO_ICALL                                         $13     
         41        SEND_VAR                                                 $13
         42        DO_ICALL                                         $14     
         43        SEND_VAR                                                 $14
         44        DO_ICALL                                         $15     
         45        CONCAT                                           ~16     '22', $15
         46        SEND_VAL                                                 ~16
         47        DO_ICALL                                                 
    8    48        INIT_FCALL                                               'var_dump'
         49        INIT_FCALL                                               'date'
         50        SEND_VAL                                                 'r'
         51        INIT_FCALL                                               'strtotime'
         52        SEND_VAR                                                 !0
         53        INIT_FCALL                                               'strtotime'
         54        SEND_VAL                                                 '2013-05-22+22%3A30'
         55        DO_ICALL                                         $18     
         56        SEND_VAR                                                 $18
         57        DO_ICALL                                         $19     
         58        SEND_VAR                                                 $19
         59        DO_ICALL                                         $20     
         60        CONCAT                                           ~21     '%3F%3F', $20
         61        SEND_VAL                                                 ~21
         62        DO_ICALL                                                 
    9    63        INIT_FCALL                                               'var_dump'
         64        INIT_FCALL                                               'date'
         65        SEND_VAL                                                 'r'
         66        INIT_FCALL                                               'strtotime'
         67        SEND_VAR                                                 !0
         68        INIT_FCALL                                               'strtotime'
         69        SEND_VAL                                                 '2013-05-22+21%3A00'
         70        DO_ICALL                                         $23     
         71        SEND_VAR                                                 $23
         72        DO_ICALL                                         $24     
         73        SEND_VAR                                                 $24
         74        DO_ICALL                                         $25     
         75        CONCAT                                           ~26     '21', $25
         76        SEND_VAL                                                 ~26
         77        DO_ICALL                                                 
         78      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.38 ms | 1400 KiB | 23 Q