3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = '{"refData":{"id":"52985275","tarih":"2017-09-06 17:58:39","baslangic":"1504709915","baslik":"JON SNOW","mesaj":"Yeni Siparis 145000006 Uye: fool Urun: Tori Tank,Tori Tank B250","adet":"1","numaralar":{"bekleyen":[],"gonderilmis":["5305305302"],"hata":[]},"iade_durumu":null,"dusulen_kredi":1,"adet_bekleyen":0,"adet_gonderilmis":1,"adet_hata":0},"status":true}'; $arr = json_decode($json, true); $num = $arr['refData']['numaralar']; print_r($num); print_r(array_filter($num)); print_r(array_keys(array_filter($num)));
based on erYNm
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0rc3
Array ( [bekleyen] => Array ( ) [gonderilmis] => Array ( [0] => 5305305302 ) [hata] => Array ( ) ) Array ( [gonderilmis] => Array ( [0] => 5305305302 ) ) Array ( [0] => gonderilmis )