3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(new DateTimeImmutable('now') == new DateTime('now')); class Foo extends DateTime {} var_dump(new Foo('now') < new DateTime('+1 day'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hf3nM
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'DateTimeImmutable'
          2        SEND_VAL_EX                                              'now'
          3        DO_FCALL                                      0          
          4        NEW                                              $2      'DateTime'
          5        SEND_VAL_EX                                              'now'
          6        DO_FCALL                                      0          
          7        IS_EQUAL                                         ~4      $0, $2
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'var_dump'
         11        NEW                                              $6      'Foo'
         12        SEND_VAL_EX                                              'now'
         13        DO_FCALL                                      0          
         14        NEW                                              $8      'DateTime'
         15        SEND_VAL_EX                                              '%2B1+day'
         16        DO_FCALL                                      0          
         17        IS_SMALLER                                       ~10     $6, $8
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.71 ms | 1386 KiB | 15 Q