3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $null = null; $arr = array(); $str = ''; $int = 0; $dbl = 0.0; $bool = false; $obj = (object) null; var_dump( empty($null), empty($arr), empty($str), empty($int), empty($dbl), empty($bool), empty($obj) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7hWEm
function name:  (null)
number of ops:  28
compiled vars:  !0 = $null, !1 = $arr, !2 = $str, !3 = $int, !4 = $dbl, !5 = $bool, !6 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, null
    6     4        ASSIGN                                                   !1, <array>
    7     5        ASSIGN                                                   !2, ''
    8     6        ASSIGN                                                   !3, 0
    9     7        ASSIGN                                                   !4, 0
   10     8        ASSIGN                                                   !5, <false>
   11     9        CAST                                          8  ~14     null
         10        ASSIGN                                                   !6, ~14
   13    11        INIT_FCALL                                               'var_dump'
   14    12        ISSET_ISEMPTY_CV                                 ~16     !0
         13        SEND_VAL                                                 ~16
   15    14        ISSET_ISEMPTY_CV                                 ~17     !1
         15        SEND_VAL                                                 ~17
   16    16        ISSET_ISEMPTY_CV                                 ~18     !2
         17        SEND_VAL                                                 ~18
   17    18        ISSET_ISEMPTY_CV                                 ~19     !3
         19        SEND_VAL                                                 ~19
   18    20        ISSET_ISEMPTY_CV                                 ~20     !4
         21        SEND_VAL                                                 ~20
   19    22        ISSET_ISEMPTY_CV                                 ~21     !5
         23        SEND_VAL                                                 ~21
   20    24        ISSET_ISEMPTY_CV                                 ~22     !6
         25        SEND_VAL                                                 ~22
         26        DO_ICALL                                                 
   21    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.09 ms | 1400 KiB | 17 Q