3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = null; var_dump($foo === null); var_dump(is_null($foo)); $bar = array('x' => 'x'); var_dump(isset($bar['x'])); var_dump(array_key_exists('x', $bar)); var_dump(isset($baz) ? $baz : null); var_dump($baz);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/07BVM
function name:  (null)
number of ops:  30
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        INIT_FCALL                                               'var_dump'
          2        TYPE_CHECK                                    2  ~4      !0
          3        SEND_VAL                                                 ~4
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'var_dump'
          6        TYPE_CHECK                                    2  ~6      !0
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                                 
    7     9        ASSIGN                                                   !1, <array>
    8    10        INIT_FCALL                                               'var_dump'
         11        ISSET_ISEMPTY_DIM_OBJ                         0  ~9      !1, 'x'
         12        SEND_VAL                                                 ~9
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'var_dump'
         15        ARRAY_KEY_EXISTS                                 ~11     'x', !1
         16        SEND_VAL                                                 ~11
         17        DO_ICALL                                                 
   11    18        INIT_FCALL                                               'var_dump'
         19        ISSET_ISEMPTY_CV                                         !2
         20      > JMPZ                                                     ~13, ->23
         21    >   QM_ASSIGN                                        ~14     !2
         22      > JMP                                                      ->24
         23    >   QM_ASSIGN                                        ~14     null
         24    >   SEND_VAL                                                 ~14
         25        DO_ICALL                                                 
   12    26        INIT_FCALL                                               'var_dump'
         27        SEND_VAR                                                 !2
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.91 ms | 999 KiB | 14 Q