3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d', mktime('2010', '24', '01', '12', '12', '12')); $date = new \DateTime('first day of february'); echo $date->format('Y-m-d');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U87t4
function name:  (null)
number of ops:  22
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        INIT_FCALL                                               'mktime'
          3        SEND_VAL                                                 '2010'
          4        SEND_VAL                                                 '24'
          5        SEND_VAL                                                 '01'
          6        SEND_VAL                                                 '12'
          7        SEND_VAL                                                 '12'
          8        SEND_VAL                                                 '12'
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                         $2      
         12        ECHO                                                     $2
    5    13        NEW                                              $3      'DateTime'
         14        SEND_VAL_EX                                              'first+day+of+february'
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !0, $3
    6    17        INIT_METHOD_CALL                                         !0, 'format'
         18        SEND_VAL_EX                                              'Y-m-d'
         19        DO_FCALL                                      0  $6      
         20        ECHO                                                     $6
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.07 ms | 1395 KiB | 17 Q