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)

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.2.90.0140.01114.53
7.2.80.0120.00914.51
7.2.70.1090.00314.63
7.2.60.0120.00614.90
7.2.50.0970.00614.70
7.2.40.0190.00014.63
7.2.30.0660.01314.79
7.2.20.0130.01014.82
7.2.10.1590.01114.82
7.2.00.1670.01014.77
7.1.210.0270.00313.58
7.1.200.0250.00613.52
7.1.190.1380.01013.80
7.1.180.0110.00713.57
7.1.170.1090.00313.57
7.1.160.0140.00413.69
7.1.150.0250.00813.72
7.1.140.0130.01013.71
7.1.130.0160.01013.72
7.1.120.0900.00613.68
7.1.110.1790.01013.98
7.1.100.0260.00713.57
7.1.90.0040.01313.56
7.1.80.0600.00613.69
7.1.70.0100.00613.59
7.1.60.0210.01531.94
7.1.50.0380.00331.73
7.1.40.1120.01031.89
7.1.30.0300.01531.81
7.1.20.0340.01231.69
7.1.10.2120.00313.44
7.1.00.0350.00713.60
7.0.310.0120.00613.30
7.0.300.0110.00813.17
7.0.290.0160.00313.23
7.0.280.0450.00313.31
7.0.270.1420.01313.30
7.0.260.0900.00313.28
7.0.250.0100.00713.41
7.0.240.0150.00013.29
7.0.230.0520.00713.39
7.0.220.0170.00313.46
7.0.210.0200.00313.30
7.0.200.0030.01113.22
7.0.190.0120.00413.41
7.0.180.0110.00313.27
7.0.170.2530.00313.39
7.0.160.0600.01013.11
7.0.150.1000.01213.14
7.0.140.0400.00413.13
7.0.130.0130.00413.25
7.0.120.0110.00613.35
7.0.110.0060.01013.31
7.0.100.1270.01313.47
7.0.90.0430.00913.37
7.0.80.0100.00713.26
7.0.70.0090.00913.25
7.0.60.0140.00413.26
7.0.50.0070.01013.38
7.0.40.0060.01313.40
7.0.30.0190.00513.38
7.0.20.0370.00713.21
7.0.10.0080.01113.39
7.0.00.2690.00613.23

preferences:
145.35 ms | 1394 KiB | 7 Q