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"); $date1=date_create_from_format("j-M-Y","15-Mar-2013"); echo $date1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fbQ1h
function name:  (null)
number of ops:  21
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        ECHO                                                     $5
    7    14        INIT_FCALL                                               'date_create_from_format'
         15        SEND_VAL                                                 'j-M-Y'
         16        SEND_VAL                                                 '15-Mar-2013'
         17        DO_ICALL                                         $6      
         18        ASSIGN                                                   !1, $6
    8    19        ECHO                                                     !1
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.8 ms | 1395 KiB | 21 Q