3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (class_exists('DateTimeImmutable')) { (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 = 10
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/hQgKE
function name:  (null)
number of ops:  11
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, ->10
    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          
    5    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.74 ms | 1398 KiB | 15 Q