3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = [ ['person_1@gmail.com'] => [ ['2017-01-05'] =>[ 'this is line one', 'this is line two', ], ['2016-05-05'] => [ 'this is another line', 'and this is a fourth line' ], ['2017-07-10'] => [ 'more lines', 'yet another line' ], ], ['person_2@gmail.com'] => [ ['2015-01-01'] => ['line for person_2'], ] ]; foreach($myArray as $key=>$value){ ksort($myArray[$key]); } print_r($myArray)
Output for 7.0.0 - 7.0.31, 7.1.0 - 7.1.21, 7.2.0 - 7.2.9
Parse error: syntax error, unexpected end of file in /in/dco61 on line 27
Process exited with code 255.

preferences:
185.49 ms | 1395 KiB | 71 Q