3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DateTime(); if (!empty($a) && $a !== false) { print "OK!"; } /*el*/ else { print "NO!"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/FIdjs
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        ISSET_ISEMPTY_CV                                 ~4      !0
          4        BOOL_NOT                                         ~5      ~4
          5      > JMPZ_EX                                          ~5      ~5, ->8
          6    >   TYPE_CHECK                                  1018  ~6      !0
          7        BOOL                                             ~5      ~6
          8    > > JMPZ                                                     ~5, ->11
    5     9    >   ECHO                                                     'OK%21'
         10      > JMP                                                      ->12
    7    11    >   ECHO                                                     'NO%21'
    9    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.89 ms | 1393 KiB | 13 Q