3v4l.org

run code in 300+ PHP versions simultaneously
<?php $debug = true; $context = []; $something = $debug && $context['debug'] ?? true; $something2 = $debug && ($context['debug'] ?? true); echo 'END';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 5
filename:       /in/UZ7GU
function name:  (null)
number of ops:  16
compiled vars:  !0 = $debug, !1 = $context, !2 = $something, !3 = $something2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    4     1        ASSIGN                                                   !1, <array>
    6     2      > JMPZ_EX                                          ~6      !0, ->5
          3    >   FETCH_DIM_R                                      ~7      !1, 'debug'
          4        BOOL                                             ~6      ~7
          5    >   COALESCE                                         ~8      ~6
          6        QM_ASSIGN                                        ~8      <true>
          7        ASSIGN                                                   !2, ~8
    7     8      > JMPZ_EX                                          ~10     !0, ->13
          9    >   FETCH_DIM_IS                                     ~11     !1, 'debug'
         10        COALESCE                                         ~12     ~11
         11        QM_ASSIGN                                        ~12     <true>
         12        BOOL                                             ~10     ~12
         13    >   ASSIGN                                                   !3, ~10
    8    14        ECHO                                                     'END'
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.47 ms | 1393 KiB | 13 Q