3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (class_exists('DateTimeImmutable')) { echo serialize(new DateTimeImmutable('2015-01-01 00:00:00.123456')); }
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/X7sqZ
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    >   INIT_FCALL                                               'serialize'
          5        NEW                                              $1      'DateTimeImmutable'
          6        SEND_VAL_EX                                              '2015-01-01+00%3A00%3A00.123456'
          7        DO_FCALL                                      0          
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                         $3      
         10        ECHO                                                     $3
    5    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.12 ms | 1394 KiB | 17 Q