3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime('2013-06-18'); $then = new DateTime('2013-06-17'); if ($then > $now) echo 'it is greater'; else echo 'shitsticks';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mbTh2
function name:  (null)
number of ops:  14
compiled vars:  !0 = $now, !1 = $then
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2013-06-18'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    3     4        NEW                                              $5      'DateTime'
          5        SEND_VAL_EX                                              '2013-06-17'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    5     8        IS_SMALLER                                               !0, !1
          9      > JMPZ                                                     ~8, ->12
         10    >   ECHO                                                     'it+is+greater'
         11      > JMP                                                      ->13
    6    12    >   ECHO                                                     'shitsticks'
         13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.55 ms | 1384 KiB | 13 Q