3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = '[{"size":30487684,"0":30487684,"path":"\/var\/lib\/ReproConnect\/Planrooms\/www.msabcplanroom.net\/share\/jobs\/attala_education_center_holmes_community_college\/plan\/architectural\/AD102.PDF","1":"\/var\/lib\/ReproConnect\/Planrooms\/www.msabcplanroom.net\/share\/jobs\/attala_education_center_holmes_community_college\/plan\/architectural\/AD102.PDF"},{"size":30261679,"0":30261679,"path":"\/var\/lib\/ReproConnect\/Planrooms\/www.msabcplanroom.net\/share\/jobs\/9485_old-river-water-association-2015-water-system-improveme\/plan\/60115_plans\/Sheet L1.pdf","1":"\/var\/lib\/ReproConnect\/Planrooms\/www.msabcplanroom.net\/share\/jobs\/9485_old-river-water-association-2015-water-system-improveme\/plan\/60115_plans\/Sheet L1.pdf"},{"size":30239322,"0":30239322,"path":"\/var\/lib\/ReproConnect\/Planrooms\/www.msabcplanroom.net\/share\/jobs\/9485_old-river-water-association-2015-water-system-improveme\/plan\/60115_plans\/L1.pdf","1":"\/var\/lib\/ReproConnect\/Planrooms\/www.msabcplanroom.net\/share\/jobs\/9485_old-river-water-association-2015-water-system-improveme\/plan\/60115_plans\/L1.pdf"},{"size":30112894,"0":30112894,"path":"\/var\/lib\/ReproConnect\/Planrooms\/www.msabcplanroom.net\/share\/jobs\/new_medical_office_and_clinic_facility_flowood\/plan\/plans\/0010 L3-0 Grading Plan.pdf","1":"\/var\/lib\/ReproConnect\/Planrooms\/www.msabcplanroom.net\/share\/jobs\/new_medical_office_and_clinic_facility_flowood\/plan\/plans\/0010 L3-0 Grading Plan.pdf"},{"size":30003027,"0":30003027,"path":"\/var\/lib\/ReproConnect\/Planrooms\/www.msabcplanroom.net\/share\/jobs\/government_street_improvements__pedestrian_bridge__rebid\/plan\/plans\/03.pdf","1":"\/var\/lib\/ReproConnect\/Planrooms\/www.msabcplanroom.net\/share\/jobs\/government_street_improvements__pedestrian_bridge__rebid\/plan\/plans\/03.pdf"}]'; $array = json_decode($json, true); usort($array, function($a, $b) { return $a['size'] < $b['size']; }); print_r($array);
based on Br77N
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
Array ( [0] => Array ( [size] => 30487684 [0] => 30487684 [path] => /var/lib/ReproConnect/Planrooms/www.msabcplanroom.net/share/jobs/attala_education_center_holmes_community_college/plan/architectural/AD102.PDF [1] => /var/lib/ReproConnect/Planrooms/www.msabcplanroom.net/share/jobs/attala_education_center_holmes_community_college/plan/architectural/AD102.PDF ) [1] => Array ( [size] => 30261679 [0] => 30261679 [path] => /var/lib/ReproConnect/Planrooms/www.msabcplanroom.net/share/jobs/9485_old-river-water-association-2015-water-system-improveme/plan/60115_plans/Sheet L1.pdf [1] => /var/lib/ReproConnect/Planrooms/www.msabcplanroom.net/share/jobs/9485_old-river-water-association-2015-water-system-improveme/plan/60115_plans/Sheet L1.pdf ) [2] => Array ( [size] => 30239322 [0] => 30239322 [path] => /var/lib/ReproConnect/Planrooms/www.msabcplanroom.net/share/jobs/9485_old-river-water-association-2015-water-system-improveme/plan/60115_plans/L1.pdf [1] => /var/lib/ReproConnect/Planrooms/www.msabcplanroom.net/share/jobs/9485_old-river-water-association-2015-water-system-improveme/plan/60115_plans/L1.pdf ) [3] => Array ( [size] => 30112894 [0] => 30112894 [path] => /var/lib/ReproConnect/Planrooms/www.msabcplanroom.net/share/jobs/new_medical_office_and_clinic_facility_flowood/plan/plans/0010 L3-0 Grading Plan.pdf [1] => /var/lib/ReproConnect/Planrooms/www.msabcplanroom.net/share/jobs/new_medical_office_and_clinic_facility_flowood/plan/plans/0010 L3-0 Grading Plan.pdf ) [4] => Array ( [size] => 30003027 [0] => 30003027 [path] => /var/lib/ReproConnect/Planrooms/www.msabcplanroom.net/share/jobs/government_street_improvements__pedestrian_bridge__rebid/plan/plans/03.pdf [1] => /var/lib/ReproConnect/Planrooms/www.msabcplanroom.net/share/jobs/government_street_improvements__pedestrian_bridge__rebid/plan/plans/03.pdf ) )