3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(strtotime('first day')); var_dump(date('Y-m-d H:i:s', strtotime('first day'))); var_dump(strtotime('first day 00:00:00')); var_dump(date('Y-m-d H:i:s', strtotime('first day 00:00:00')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gj7lf
function name:  (null)
number of ops:  33
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'strtotime'
          2        SEND_VAL                                                 'first+day'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          9        INIT_FCALL                                               'strtotime'
         10        SEND_VAL                                                 'first+day'
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'strtotime'
         18        SEND_VAL                                                 'first+day+00%3A00%3A00'
         19        DO_ICALL                                         $5      
         20        SEND_VAR                                                 $5
         21        DO_ICALL                                                 
    7    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'date'
         24        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         25        INIT_FCALL                                               'strtotime'
         26        SEND_VAL                                                 'first+day+00%3A00%3A00'
         27        DO_ICALL                                         $7      
         28        SEND_VAR                                                 $7
         29        DO_ICALL                                         $8      
         30        SEND_VAR                                                 $8
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.81 ms | 1396 KiB | 19 Q