3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attractionsArray = array( "Services" => array( "Travel & Hotels ~72", "Automotive~119", "Professional Services~71", "Home Services~70", "IT Services & Computer Repair~83", "Health and Medical~69" ), "Restaurants" => array( "American / Eclectic~2", "Cafe~11", "Desserts & Bakery~111" ), "Shopping" => array( "Office Equipment~103", "Department Stores~91", "Cosmetics & Beauty Supply~90", "Musical Instruments & Teachers~102", "Food~87" ), "Entertainment" => array( "Bars/Pubs~48" ) "Travel" => array( "Hotels~129" ) ); foreach($attractionsArray as $key => $innerArray) { $attractionArray[$key] = sort($innerArray, SORT_STRING); } print_r($attractionArray);

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)
5.4.260.0100.07718.68
5.4.250.0130.07318.80
5.4.240.0070.06018.86
5.4.230.0130.05018.84
5.4.220.0130.07018.73
5.4.210.0100.07718.59
5.4.200.0100.05718.74
5.4.190.0130.06018.68
5.4.180.0130.07718.67
5.4.170.0000.09318.94
5.4.160.0100.05018.68
5.4.150.0030.06318.82
5.4.140.0100.06716.61
5.4.130.0170.06316.47
5.4.120.0130.04716.57
5.4.110.0070.06016.47
5.4.100.0100.06016.52
5.4.90.0030.06316.28
5.4.80.0030.06716.42
5.4.70.0070.05316.48
5.4.60.0100.04716.38
5.4.50.0000.07316.47
5.4.40.0070.05016.25
5.4.30.0130.06316.39
5.4.20.0100.07016.47
5.4.10.0100.08016.34
5.4.00.0170.04715.83
5.3.280.0030.08014.45
5.3.270.0170.07014.61
5.3.260.0100.08014.50
5.3.250.0000.07714.46
5.3.240.0170.06714.38
5.3.230.0170.05714.37
5.3.220.0130.05314.66
5.3.210.0130.05914.74
5.3.200.0130.06314.66
5.3.190.0070.07014.56
5.3.180.0100.06714.71
5.3.170.0070.05714.58
5.3.160.0230.05314.48
5.3.150.0130.06714.72
5.3.140.0170.04714.54
5.3.130.0130.05014.70
5.3.120.0070.08314.64
5.3.110.0130.06714.39
5.3.100.0000.06714.04
5.3.90.0100.05013.79
5.3.80.0100.06713.80
5.3.70.0070.06714.04
5.3.60.0100.05714.04
5.3.50.0100.06713.79
5.3.40.0100.06713.65
5.3.30.0130.06313.93
5.3.20.0030.06313.46
5.3.10.0070.06313.80
5.3.00.0130.05713.34

preferences:
138.46 ms | 1394 KiB | 7 Q