3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $c[0]=1/3; $c[1]="abc"; $c[2] = array("abc","def"); $c[1/3] = "ddd"; echo serialize($c); ?>
based on MgKH7
Output for 4.3.0 - 7.2.0
a:3:{i:0;s:3:"ddd";i:1;s:3:"abc";i:2;a:2:{i:0;s:3:"abc";i:1;s:3:"def";}}