3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump([ count([])>0, (bool)count([]), (bool)count([1]) ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/soc5B
function name:  (null)
number of ops:  13
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        IS_SMALLER                                       ~1      0, ~0
          3        INIT_ARRAY                                       ~2      ~1
    4     4        COUNT                                            ~3      <array>
          5        BOOL                                             ~4      ~3
          6        ADD_ARRAY_ELEMENT                                ~2      ~4
    5     7        COUNT                                            ~5      <array>
          8        BOOL                                             ~6      ~5
          9        ADD_ARRAY_ELEMENT                                ~2      ~6
         10        SEND_VAL                                                 ~2
         11        DO_ICALL                                                 
    6    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.77 ms | 1394 KiB | 15 Q