3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new \DateTimeImmutable('2000-01-01 23:59:59.999999'); $d2 = $d->modify('+1 microsecond'); var_dump($d); var_dump($d->format('s.u')); var_dump($d2); var_dump($d2->format('s.u'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZbGpl
function name:  (null)
number of ops:  27
compiled vars:  !0 = $d, !1 = $d2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTimeImmutable'
          1        SEND_VAL_EX                                              '2000-01-01+23%3A59%3A59.999999'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        INIT_METHOD_CALL                                         !0, 'modify'
          5        SEND_VAL_EX                                              '%2B1+microsecond'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
    5     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'var_dump'
         12        INIT_METHOD_CALL                                         !0, 'format'
         13        SEND_VAL_EX                                              's.u'
         14        DO_FCALL                                      0  $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                                 
    7    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
    8    20        INIT_FCALL                                               'var_dump'
         21        INIT_METHOD_CALL                                         !1, 'format'
         22        SEND_VAL_EX                                              's.u'
         23        DO_FCALL                                      0  $11     
         24        SEND_VAR                                                 $11
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.26 ms | 1395 KiB | 15 Q