3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); var_dump(is_empty($a)); $a['toto'] = ''; var_dump(is_empty($a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dG9ie
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL_BY_NAME                                       'is_empty'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    7     7        ASSIGN_DIM                                               !0, 'toto'
          8        OP_DATA                                                  ''
    9     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL_BY_NAME                                       'is_empty'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0  $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.48 ms | 1394 KiB | 15 Q