3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date=date_create(); date_date_set($date,1975,11,28); echo date_format($date,"Y/m/d") . "\n"; $date1=date_create_from_format("j-M-Y","15-Mar-2013"); echo $date1 . "\n"; echo date_format($date1,"Y/m/d");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8CXJ9
function name:  (null)
number of ops:  28
compiled vars:  !0 = $date, !1 = $date1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_create'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    4     3        INIT_FCALL                                               'date_date_set'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 1975
          6        SEND_VAL                                                 11
          7        SEND_VAL                                                 28
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'date_format'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 'Y%2Fm%2Fd'
         12        DO_ICALL                                         $5      
         13        CONCAT                                           ~6      $5, '%0A'
         14        ECHO                                                     ~6
    7    15        INIT_FCALL                                               'date_create_from_format'
         16        SEND_VAL                                                 'j-M-Y'
         17        SEND_VAL                                                 '15-Mar-2013'
         18        DO_ICALL                                         $7      
         19        ASSIGN                                                   !1, $7
    8    20        CONCAT                                           ~9      !1, '%0A'
         21        ECHO                                                     ~9
    9    22        INIT_FCALL                                               'date_format'
         23        SEND_VAR                                                 !1
         24        SEND_VAL                                                 'Y%2Fm%2Fd'
         25        DO_ICALL                                         $10     
         26        ECHO                                                     $10
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.4 ms | 1401 KiB | 21 Q