3v4l.org

run code in 300+ PHP versions simultaneously
<?php function format_date($date) { return date('d/m/Y', strtotime($date)); } $dt = "04/07/14"; echo format_date($dt);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/krGH4
function name:  (null)
number of ops:  6
compiled vars:  !0 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, '04%2F07%2F14'
   12     1        INIT_FCALL                                               'format_date'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function format_date:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/krGH4
function name:  format_date
number of ops:  10
compiled vars:  !0 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'd%2Fm%2FY'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8      > RETURN                                                   $2
    8     9*     > RETURN                                                   null

End of function format_date

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.12 ms | 1397 KiB | 18 Q