3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = '23/02/2013'; $t = new DateTime(str_replace('/', '-', $d)); print $t->format('d/m/Y');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PoFru
function name:  (null)
number of ops:  15
compiled vars:  !0 = $d, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '23%2F02%2F2013'
    5     1        NEW                                              $3      'DateTime'
          2        INIT_FCALL                                               'str_replace'
          3        SEND_VAL                                                 '%2F'
          4        SEND_VAL                                                 '-'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        SEND_VAR_NO_REF_EX                                       $4
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $3
    7    10        INIT_METHOD_CALL                                         !1, 'format'
         11        SEND_VAL_EX                                              'd%2Fm%2FY'
         12        DO_FCALL                                      0  $7      
         13        ECHO                                                     $7
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.22 ms | 1398 KiB | 15 Q