3v4l.org

run code in 500+ PHP versions simultaneously
<?php $date = "15.09.2023"; $format = "Y-m-d"; $fTime = new \DateTime($date); echo $fTime->format($format);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/diZGJ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $date, !1 = $format, !2 = $fTime
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '15.09.2023'
    3     1        ASSIGN                                                       !1, 'Y-m-d'
    4     2        NEW                                                  $5      'DateTime'
          3        SEND_VAR_EX                                                  !0
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !2, $5
    5     6        INIT_METHOD_CALL                                             !2, 'format'
          7        SEND_VAR_EX                                                  !1
          8        DO_FCALL                                          0  $8      
          9        ECHO                                                         $8
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
132.66 ms | 1404 KiB | 13 Q