3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump([ (bool)count([]), (bool)count([1]) ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CZKiZ
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
    3     1        COUNT                                            ~0      <array>
          2        BOOL                                             ~1      ~0
          3        INIT_ARRAY                                       ~2      ~1
    4     4        COUNT                                            ~3      <array>
          5        BOOL                                             ~4      ~3
          6        ADD_ARRAY_ELEMENT                                ~2      ~4
          7        SEND_VAL                                                 ~2
          8        DO_ICALL                                                 
    5     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.71 ms | 1394 KiB | 15 Q