3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $statistics = json_encode( [ 'Strength' => 9, 'Constitution' => 6, 'Dexterity' => 5, 'Intelligence' => 9, 'Wisdom' => 4, 'Charisma' => 10, ]); echo count(json_decode($statistics)); ?>
based on 0ilet
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/57uMN on line 11 1
Output for 5.5.0 - 7.1.10
1