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 = new stdClass(); 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/heQEG
function name:  (null)
number of ops:  29
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        NEW                                              $14     'stdClass'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !6, $14
   13    12        INIT_FCALL                                               'var_dump'
   14    13        ISSET_ISEMPTY_CV                                 ~17     !0
         14        SEND_VAL                                                 ~17
   15    15        ISSET_ISEMPTY_CV                                 ~18     !1
         16        SEND_VAL                                                 ~18
   16    17        ISSET_ISEMPTY_CV                                 ~19     !2
         18        SEND_VAL                                                 ~19
   17    19        ISSET_ISEMPTY_CV                                 ~20     !3
         20        SEND_VAL                                                 ~20
   18    21        ISSET_ISEMPTY_CV                                 ~21     !4
         22        SEND_VAL                                                 ~21
   19    23        ISSET_ISEMPTY_CV                                 ~22     !5
         24        SEND_VAL                                                 ~22
   20    25        ISSET_ISEMPTY_CV                                 ~23     !6
         26        SEND_VAL                                                 ~23
         27        DO_ICALL                                                 
   21    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.18 ms | 1395 KiB | 17 Q