3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $a = 'one'; public $b = 'two'; } $foo = new Foo(); $bar = array('d','e','f'); $baz = 'string'; $bazinga = 1; $boo = new StdClass(); var_dump(empty($foo)); //boolean true var_dump(empty($bar)); //boolean true var_dump(empty($baz)); //boolean false var_dump(empty($bazinga)); //bolean false var_dump(empty($boo)); //bolean true
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V963A
function name:  (null)
number of ops:  30
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz, !3 = $bazinga, !4 = $boo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $5      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $5
    9     3        ASSIGN                                                   !1, <array>
   10     4        ASSIGN                                                   !2, 'string'
   11     5        ASSIGN                                                   !3, 1
   12     6        NEW                                              $11     'StdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !4, $11
   14     9        INIT_FCALL                                               'var_dump'
         10        ISSET_ISEMPTY_CV                                 ~14     !0
         11        SEND_VAL                                                 ~14
         12        DO_ICALL                                                 
   15    13        INIT_FCALL                                               'var_dump'
         14        ISSET_ISEMPTY_CV                                 ~16     !1
         15        SEND_VAL                                                 ~16
         16        DO_ICALL                                                 
   16    17        INIT_FCALL                                               'var_dump'
         18        ISSET_ISEMPTY_CV                                 ~18     !2
         19        SEND_VAL                                                 ~18
         20        DO_ICALL                                                 
   17    21        INIT_FCALL                                               'var_dump'
         22        ISSET_ISEMPTY_CV                                 ~20     !3
         23        SEND_VAL                                                 ~20
         24        DO_ICALL                                                 
   18    25        INIT_FCALL                                               'var_dump'
         26        ISSET_ISEMPTY_CV                                 ~22     !4
         27        SEND_VAL                                                 ~22
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.43 ms | 1400 KiB | 15 Q