3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = 12.34; if(!isset($d) || $d<=0){ echo $d; } $dt = new DateTime();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
Branch analysis from position: 6
filename:       /in/lbUQb
function name:  (null)
number of ops:  12
compiled vars:  !0 = $d, !1 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 12.34
    3     1        ISSET_ISEMPTY_CV                                 ~3      !0
          2        BOOL_NOT                                         ~4      ~3
          3      > JMPNZ_EX                                         ~4      ~4, ->6
          4    >   IS_SMALLER_OR_EQUAL                              ~5      !0, 0
          5        BOOL                                             ~4      ~5
          6    > > JMPZ                                                     ~4, ->8
    4     7    >   ECHO                                                     !0
    6     8    >   NEW                                              $6      'DateTime'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.84 ms | 1393 KiB | 13 Q