3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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
Jump found. Position 1 = -2
filename:       /in/6cUOU
function name:  (null)
number of ops:  23
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'gettype'
         1        INIT_FCALL                                               'date'
         2        SEND_VAL                                                 'Y-m-d'
         3        INIT_FCALL                                               'strtotime'
         4        SEND_VAL                                                 '12%2F31%2F2013'
         5        DO_ICALL                                         $0      
         6        SEND_VAR                                                 $0
         7        DO_ICALL                                         $1      
         8        SEND_VAR                                                 $1
         9        DO_ICALL                                         $2      
        10        ECHO                                                     $2
   4    11        NEW                                              $3      :-1
        12        INIT_FCALL                                               'date'
        13        SEND_VAL                                                 'Y-m-d'
        14        INIT_FCALL                                               'strtotime'
        15        SEND_VAL                                                 '12%2F31%2F2013'
        16        DO_ICALL                                         $4      
        17        SEND_VAR                                                 $4
        18        DO_ICALL                                         $5      
        19        SEND_VAR_NO_REF                               4          $5
        20        DO_FCALL                                      0          
        21        ECHO                                                     $3
        22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0