3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = new DateTime("2015/12/02 07:59:15"); $second = new DateTime(); var_dump($first > $second); $first = new DateTime("2017/12/02 07:59:15"); $second = new DateTime(); var_dump($first > $second);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ti5h5
function name:  (null)
number of ops:  23
compiled vars:  !0 = $first, !1 = $second
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2015%2F12%2F02+07%3A59%3A15'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $5      'DateTime'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
    6     7        INIT_FCALL                                               'var_dump'
          8        IS_SMALLER                                       ~8      !1, !0
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                                 
    8    11        NEW                                              $10     'DateTime'
         12        SEND_VAL_EX                                              '2017%2F12%2F02+07%3A59%3A15'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !0, $10
    9    15        NEW                                              $13     'DateTime'
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !1, $13
   11    18        INIT_FCALL                                               'var_dump'
         19        IS_SMALLER                                       ~16     !1, !0
         20        SEND_VAL                                                 ~16
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.55 ms | 1451 KiB | 14 Q