3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = $nullableValue ?? exit(); echo 'still executable'; $value ??= exit(); echo 'not executable';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/C218d
function name:  (null)
number of ops:  12
compiled vars:  !0 = $value, !1 = $nullableValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   COALESCE                                         ~2      !1
          1      > EXIT                                                     
          2*       QM_ASSIGN                                        ~2      <true>
          3*       ASSIGN                                                   !0, ~2
    4     4*       ECHO                                                     'still+executable'
    6     5*       COALESCE                                         ~4      !0
          6*       EXIT                                                     
          7*       ASSIGN                                           ~5      !0, <true>
          8*       QM_ASSIGN                                        ~4      ~5
          9*       FREE                                                     ~4
    7    10*       ECHO                                                     'not+executable'
         11*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.77 ms | 993 KiB | 13 Q