3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr_period = [ 0 => [ 'period' => 7, 'y' => 20 ], 1 => [ 'period' => 8, 'y' => 20.50 ] , 2 => [ 'period' => 9, 'y' => 7020 ] , 3 => [ 'period' => 10, 'y' => 6520 ] , 4 => [ 'period' => 11, 'y' => 65920 ] , 5 => [ 'period' => 12, 'y' => 62820 ] , 6 => [ 'period' => 13, 'y' => 6120 ] , ];
based on SIGr5
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1