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/n/d");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lF5Hf
function name:  (null)
number of ops:  26
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
    9    20        INIT_FCALL                                               'date_format'
         21        SEND_VAR                                                 !1
         22        SEND_VAL                                                 'Y%2Fn%2Fd'
         23        DO_ICALL                                         $9      
         24        ECHO                                                     $9
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.49 ms | 1395 KiB | 21 Q