3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime('2013-06-18'); $then = new DateTime('2013-06-17'); if ($now->getTimestamp() > $then->getTimestamp()) echo 'it is greater'; else echo 'shitsticks';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M5uBk
function name:  (null)
number of ops:  18
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        INIT_METHOD_CALL                                         !0, 'getTimestamp'
          9        DO_FCALL                                      0  $8      
         10        INIT_METHOD_CALL                                         !1, 'getTimestamp'
         11        DO_FCALL                                      0  $9      
         12        IS_SMALLER                                               $9, $8
         13      > JMPZ                                                     ~10, ->16
         14    >   ECHO                                                     'it+is+greater'
         15      > JMP                                                      ->17
    6    16    >   ECHO                                                     'shitsticks'
         17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.69 ms | 1394 KiB | 13 Q