3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.46 ms | 937 KiB | 14 Q