3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_now = new DateTime(); $date2 = new DateTime("01/02/2016"); if ($date_now > $date2) { echo 'greater than'; }else{ echo 'Less than'; }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5rQVP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $date_now, !1 = $date2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        NEW                                              $5      'DateTime'
          4        SEND_VAL_EX                                              '01%2F02%2F2016'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
    5     7        IS_SMALLER                                               !1, !0
          8      > JMPZ                                                     ~8, ->11
    6     9    >   ECHO                                                     'greater+than'
    5    10      > JMP                                                      ->12
    8    11    >   ECHO                                                     'Less+than'
    9    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.56 ms | 1447 KiB | 13 Q