3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (class_exists('DateTimeImmutable')) { echo (new DateTimeImmutable('2012-02-01 00:00:00.123456'))->format('Y-m-d H:i:s.u'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/VRRMG
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'class_exists'
          1        SEND_VAL                                                 'DateTimeImmutable'
          2        DO_ICALL                                         $0      
          3      > JMPZ                                                     $0, ->11
    4     4    >   NEW                                              $1      'DateTimeImmutable'
          5        SEND_VAL_EX                                              '2012-02-01+00%3A00%3A00.123456'
          6        DO_FCALL                                      0          
          7        INIT_METHOD_CALL                                         $1, 'format'
          8        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As.u'
          9        DO_FCALL                                      0  $3      
         10        ECHO                                                     $3
    5    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.82 ms | 1394 KiB | 15 Q