3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mysql_date = "2012-01-02"; // date in Y-m-d format as MySQL stores it $date_obj = date_create_from_format('Y-m-d',$mysql_date); $date = date_format($date_obj, 'm/d/Y'); echo $date; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AlZQO
function name:  (null)
number of ops:  13
compiled vars:  !0 = $mysql_date, !1 = $date_obj, !2 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2012-01-02'
    4     1        INIT_FCALL                                               'date_create_from_format'
          2        SEND_VAL                                                 'Y-m-d'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_FCALL                                               'date_format'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 'm%2Fd%2FY'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    6    11        ECHO                                                     !2
    9    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.33 ms | 1394 KiB | 17 Q