3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expected = new DateTimeImmutable('2015-08-31 01:02:04.456790'); $date = (new DateTimeImmutable('2015-08-31 01:02:03.456789'))->modify('+1000001 microseconds'); var_dump($expected == $date);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KB57r
function name:  (null)
number of ops:  16
compiled vars:  !0 = $expected, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTimeImmutable'
          1        SEND_VAL_EX                                              '2015-08-31+01%3A02%3A04.456790'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $5      'DateTimeImmutable'
          5        SEND_VAL_EX                                              '2015-08-31+01%3A02%3A03.456789'
          6        DO_FCALL                                      0          
          7        INIT_METHOD_CALL                                         $5, 'modify'
          8        SEND_VAL_EX                                              '%2B1000001+microseconds'
          9        DO_FCALL                                      0  $7      
         10        ASSIGN                                                   !1, $7
    6    11        INIT_FCALL                                               'var_dump'
         12        IS_EQUAL                                         ~9      !0, !1
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.23 ms | 1394 KiB | 15 Q