3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.15 ms | 1392 KiB | 13 Q