3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_1 = "2017-05-01"; $date_2 = "2019-05-01"; var_dump(new DateTime($date_1) != new DateTime($date_2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rDm1N
function name:  (null)
number of ops:  13
compiled vars:  !0 = $date_1, !1 = $date_2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2017-05-01'
    3     1        ASSIGN                                                   !1, '2019-05-01'
    6     2        INIT_FCALL                                               'var_dump'
          3        NEW                                              $4      'DateTime'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        NEW                                              $6      'DateTime'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
          9        IS_NOT_EQUAL                                     ~8      $4, $6
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.49 ms | 1394 KiB | 15 Q