3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = null; var_dump(empty( $var )); var_dump( isset( $var ) && $var == NULL ); var_dump(is_null($var)); var_dump($var === NULL);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/eSq1p
function name:  (null)
number of ops:  21
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, null
    3     1        INIT_FCALL                                               'var_dump'
          2        ISSET_ISEMPTY_CV                                 ~2      !0
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'var_dump'
          6        ISSET_ISEMPTY_CV                                 ~4      !0
          7      > JMPZ_EX                                          ~4      ~4, ->10
          8    >   IS_EQUAL                                         ~5      !0, null
          9        BOOL                                             ~4      ~5
         10    >   SEND_VAL                                                 ~4
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'var_dump'
         13        TYPE_CHECK                                    2  ~7      !0
         14        SEND_VAL                                                 ~7
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'var_dump'
         17        TYPE_CHECK                                    2  ~9      !0
         18        SEND_VAL                                                 ~9
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.55 ms | 1395 KiB | 15 Q