3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.17 ms | 1438 KiB | 13 Q