3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $variantStartTime = DateTimeImmutable::createFromFormat(self::DATE_FORMAT, 'xxx'); var_dump($a == 1 && isset($variantStartTime) ? $variantStartTime : null);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/7LVBh
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $variantStartTime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        INIT_STATIC_METHOD_CALL                                  'DateTimeImmutable', 'createFromFormat'
          2        FETCH_CLASS_CONSTANT                             ~3      'DATE_FORMAT'
          3        SEND_VAL                                                 ~3
          4        SEND_VAL                                                 'xxx'
          5        DO_FCALL                                      0  $4      
          6        ASSIGN                                                   !1, $4
    5     7        INIT_FCALL                                               'var_dump'
          8        IS_EQUAL                                         ~6      !0, 1
          9      > JMPZ_EX                                          ~6      ~6, ->12
         10    >   ISSET_ISEMPTY_CV                                 ~7      !1
         11        BOOL                                             ~6      ~7
         12    > > JMPZ                                                     ~6, ->15
         13    >   QM_ASSIGN                                        ~8      !1
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~8      null
         16    >   SEND_VAL                                                 ~8
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.43 ms | 1395 KiB | 15 Q