3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo gettype(date("Y-m-d", strtotime("12/31/2013"))); echo new DateTime(date("Y-m-d", strtotime("12/31/2013")));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6cUOU
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '12%2F31%2F2013'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                         $1      
          7        GET_TYPE                                         ~2      $1
          8        ECHO                                                     ~2
    4     9        NEW                                              $3      'DateTime'
         10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'Y-m-d'
         12        INIT_FCALL                                               'strtotime'
         13        SEND_VAL                                                 '12%2F31%2F2013'
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                         $5      
         17        SEND_VAR_NO_REF_EX                                       $5
         18        DO_FCALL                                      0          
         19        ECHO                                                     $3
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.27 ms | 1386 KiB | 17 Q