3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('k1' => null, 'k2'=>null); $result = ($a === null); var_dump($result || count($a) === 0); var_dump($notPopulated === null);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/k143S
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $result, !2 = $notPopulated
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        TYPE_CHECK                                    2  ~4      !0
          2        ASSIGN                                                   !1, ~4
    4     3        INIT_FCALL                                               'var_dump'
          4      > JMPNZ_EX                                         ~6      !1, ->8
          5    >   COUNT                                            ~7      !0
          6        IS_IDENTICAL                                     ~8      ~7, 0
          7        BOOL                                             ~6      ~8
          8    >   SEND_VAL                                                 ~6
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        TYPE_CHECK                                    2  ~10     !2
         12        SEND_VAL                                                 ~10
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.69 ms | 1394 KiB | 15 Q