3v4l.org

run code in 300+ PHP versions simultaneously
<?php $before = new \DateTime("2013-09-11 18:30:00"); $after = new \DateTime("2013-09-11 18:35:00"); if ($before < $after) { echo "ok"; } else { echo "bad"; }
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/f7iaP
function name:  (null)
number of ops:  14
compiled vars:  !0 = $before, !1 = $after
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2013-09-11+18%3A30%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    3     4        NEW                                              $5      'DateTime'
          5        SEND_VAL_EX                                              '2013-09-11+18%3A35%3A00'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    5     8        IS_SMALLER                                               !0, !1
          9      > JMPZ                                                     ~8, ->12
    6    10    >   ECHO                                                     'ok'
         11      > JMP                                                      ->13
    8    12    >   ECHO                                                     'bad'
    9    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.78 ms | 1393 KiB | 13 Q