3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dt1 = new DataTime(); $dt2 = new DateTime('+ 1 hour'); if ($dt1 < $dt2) { echo $dt1->format('Y-m-d H:i:s'); } else { echo "Nope"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k645E
function name:  (null)
number of ops:  16
compiled vars:  !0 = $dt1, !1 = $dt2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'DataTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        NEW                                              $5      'DateTime'
          4        SEND_VAL_EX                                              '%2B+1+hour'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
    4     7        IS_SMALLER                                               !0, !1
          8      > JMPZ                                                     ~8, ->14
    5     9    >   INIT_METHOD_CALL                                         !0, 'format'
         10        SEND_VAL_EX                                              'Y-m-d+H%3Ai%3As'
         11        DO_FCALL                                      0  $9      
         12        ECHO                                                     $9
         13      > JMP                                                      ->15
    6    14    >   ECHO                                                     'Nope'
         15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.89 ms | 1393 KiB | 13 Q