3v4l.org

run code in 500+ PHP versions simultaneously
<?php $s = "0000-0-0 00:00:00"; $d = \DateTime::createFromFormat('Y-m-d H:i:s',$s); echo $d-> format("d.m.Y H:i:s");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Jan2
function name:  (null)
number of ops:  11
compiled vars:  !0 = $s, !1 = $d
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '0000-0-0+00%3A00%3A00'
    4     1        INIT_STATIC_METHOD_CALL                                      'DateTime', 'createFromFormat'
          2        SEND_VAL                                                     'Y-m-d+H%3Ai%3As'
          3        SEND_VAR                                                     !0
          4        DO_FCALL                                          0  $3      
          5        ASSIGN                                                       !1, $3
    5     6        INIT_METHOD_CALL                                             !1, 'format'
          7        SEND_VAL_EX                                                  'd.m.Y+H%3Ai%3As'
          8        DO_FCALL                                          0  $5      
          9        ECHO                                                         $5
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.22 ms | 1847 KiB | 13 Q