3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['a' => 1, 'b' => 2, 'c' => 3]; $b = new stdClass(); $b->a = 1; $b->b = 2; $b->c = 3; echo microtime(true); for ($i = 0; $i < 100; $i++) { $a['a']; } echo microtime(true); for ($i = 0; $i < 100; $i++) { $b->a; } echo microtime(true);