3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $variantStartTime = DateTimeImmutable::createFromFormat('Y-m-d', 'xxx'); var_dump($a == 1 && isset($variantStartTime) ? $variantStartTime : null);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
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
Branch analysis from position: 11
filename:       /in/JUU6M
function name:  (null)
number of ops:  18
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        SEND_VAL                                                 'Y-m-d'
          3        SEND_VAL                                                 'xxx'
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !1, $3
    5     6        INIT_FCALL                                               'var_dump'
          7        IS_EQUAL                                         ~5      !0, 1
          8      > JMPZ_EX                                          ~5      ~5, ->11
          9    >   ISSET_ISEMPTY_CV                                 ~6      !1
         10        BOOL                                             ~5      ~6
         11    > > JMPZ                                                     ~5, ->14
         12    >   QM_ASSIGN                                        ~7      !1
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~7      null
         15    >   SEND_VAL                                                 ~7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.17 ms | 1395 KiB | 15 Q