3v4l.org

run code in 300+ PHP versions simultaneously
<?php $buildDate = new DateTime(); $releaseDate = clone $buildDate; $releaseDate->modify('2012-02-14'); $buildDate->add(new DateInterval('P15D')); var_dump($releaseDate < $buildDate); //true
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XeSJe
function name:  (null)
number of ops:  19
compiled vars:  !0 = $buildDate, !1 = $releaseDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        CLONE                                            ~5      !0
          4        ASSIGN                                                   !1, ~5
    5     5        INIT_METHOD_CALL                                         !1, 'modify'
          6        SEND_VAL_EX                                              '2012-02-14'
          7        DO_FCALL                                      0          
    6     8        INIT_METHOD_CALL                                         !0, 'add'
          9        NEW                                              $8      'DateInterval'
         10        SEND_VAL_EX                                              'P15D'
         11        DO_FCALL                                      0          
         12        SEND_VAR_NO_REF_EX                                       $8
         13        DO_FCALL                                      0          
    8    14        INIT_FCALL                                               'var_dump'
         15        IS_SMALLER                                       ~11     !1, !0
         16        SEND_VAL                                                 ~11
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.69 ms | 1435 KiB | 14 Q