3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(count("string")); var_dump(count(true)); var_dump(count(false)); var_dump(count(4321));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jqntq
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        COUNT                                                ~0      'string'
          2        SEND_VAL                                                     ~0
          3        DO_ICALL                                                     
    4     4        INIT_FCALL                                                   'var_dump'
          5        COUNT                                                ~2      <true>
          6        SEND_VAL                                                     ~2
          7        DO_ICALL                                                     
    5     8        INIT_FCALL                                                   'var_dump'
          9        COUNT                                                ~4      <false>
         10        SEND_VAL                                                     ~4
         11        DO_ICALL                                                     
    6    12        INIT_FCALL                                                   'var_dump'
         13        COUNT                                                ~6      4321
         14        SEND_VAL                                                     ~6
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.47 ms | 2949 KiB | 14 Q