3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = DateTime::createFromFormat('H:i', '08:00'); $date2 = new DateTime(); if ($date1 > $date2) { // do something }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/tju8U
function name:  (null)
number of ops:  11
compiled vars:  !0 = $date1, !1 = $date2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          1        SEND_VAL                                                 'H%3Ai'
          2        SEND_VAL                                                 '08%3A00'
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !0, $2
    3     5        NEW                                              $4      'DateTime'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $4
    4     8        IS_SMALLER                                               !1, !0
          9      > JMPZ                                                     ~7, ->10
    7    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.72 ms | 1392 KiB | 13 Q