3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a[] = array(); var_dump(empty($a)); var_dump(isset($a)); var_dump(count($a)); //var_dump($a); $b = array_filter($a); var_dump(empty($b)); var_dump(empty((1 + 2)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e8QW7
function name:  (null)
number of ops:  27
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  <array>
    6     3        INIT_FCALL                                               'var_dump'
          4        ISSET_ISEMPTY_CV                                 ~4      !0
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'var_dump'
          8        ISSET_ISEMPTY_CV                                 ~6      !0
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
    8    11        INIT_FCALL                                               'var_dump'
         12        COUNT                                            ~8      !0
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'array_filter'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !1, $10
   11    19        INIT_FCALL                                               'var_dump'
         20        ISSET_ISEMPTY_CV                                 ~12     !1
         21        SEND_VAL                                                 ~12
         22        DO_ICALL                                                 
   12    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAL                                                 <false>
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.42 ms | 1395 KiB | 17 Q