3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "0"; $bar = 0; $baz = "\0"; var_dump(empty($foo)); var_dump(empty($bar)); var_dump(empty($baz));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fuqS2
function name:  (null)
number of ops:  16
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0'
    4     1        ASSIGN                                                   !1, 0
    5     2        ASSIGN                                                   !2, '%00'
    7     3        INIT_FCALL                                               'var_dump'
          4        ISSET_ISEMPTY_CV                                 ~6      !0
          5        SEND_VAL                                                 ~6
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'var_dump'
          8        ISSET_ISEMPTY_CV                                 ~8      !1
          9        SEND_VAL                                                 ~8
         10        DO_ICALL                                                 
    9    11        INIT_FCALL                                               'var_dump'
         12        ISSET_ISEMPTY_CV                                 ~10     !2
         13        SEND_VAL                                                 ~10
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.35 ms | 1385 KiB | 15 Q