3v4l.org

run code in 300+ PHP versions simultaneously
<?php $child['header_layout'] = 0; $b = ((int) ($child['header_layout'] ?? null)) ?: null; var_dump($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2t7MP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $child, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'header_layout'
          1        OP_DATA                                                  0
    3     2        FETCH_DIM_IS                                     ~3      !0, 'header_layout'
          3        COALESCE                                         ~4      ~3
          4        QM_ASSIGN                                        ~4      null
          5        CAST                                          4  ~5      ~4
          6        JMP_SET                                          ~6      ~5, ->8
          7        QM_ASSIGN                                        ~6      null
          8        ASSIGN                                                   !1, ~6
    5     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.15 ms | 1012 KiB | 14 Q