3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo json_encode([ 15200 => [ 'puf' => 200, 'tariffs' => [ 'id' => 12, 'monthlyPayment' => 13.5, 'minutes' => 500, 'texts' => 999, 'data' => 500, ], [ 'id' => 13, 'monthlyPayment' => 15, 'minutes' => 700, 'texts' => 999, 'data' => 1000, ], [ 'id' => 14, 'monthlyPayment' => 16.5, 'minutes' => 500, 'texts' => 999, 'data' => 3000, ], ], 14260 => [ 'puf' => 200, 'tariffs' => [ 'id' => 12, 'monthlyPayment' => 13.5, 'minutes' => 500, 'texts' => 999, 'data' => 500, ], [ 'id' => 13, 'monthlyPayment' => 15, 'minutes' => 700, 'texts' => 999, 'data' => 1000, ], [ 'id' => 14, 'monthlyPayment' => 16.5, 'minutes' => 500, 'texts' => 999, 'data' => 3000, ], ], ]);
based on o7b0I
Output for 5.5.0 - 7.2.0
{"15200":{"puf":200,"tariffs":{"id":12,"monthlyPayment":13.5,"minutes":500,"texts":999,"data":500},"0":{"id":13,"monthlyPayment":15,"minutes":700,"texts":999,"data":1000},"1":{"id":14,"monthlyPayment":16.5,"minutes":500,"texts":999,"data":3000}},"14260":{"puf":200,"tariffs":{"id":12,"monthlyPayment":13.5,"minutes":500,"texts":999,"data":500},"0":{"id":13,"monthlyPayment":15,"minutes":700,"texts":999,"data":1000},"1":{"id":14,"monthlyPayment":16.5,"minutes":500,"texts":999,"data":3000}}}