online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
<?php $array = json_decode( '[{"cdr":"1373872527187015-901","AcctId":"1","accountcode":"","src":"901","dst":"023827390","disposition":"ANSWERED","amaflags":"DOCUMENTATION"},{"cdr":"1373872585997436-901","AcctId":"2","accountcode":"","src":"901","dst":"023827390","dcontext":"outbound-route-4","clid":"\"901\" <901>","channel":"PJSIP\/trunk_4-00000002","dstchannel":"PJSIP\/trunk_3-00000003","lastapp":"Dial","lastdata":"PJSIP\/023827390@trunk_3,,b(callee-handler^s^1)","start":"2013-07-15 02:16:26","answer":"2013-07-15 02:16:28","end":"2013-07-15 02:16:43","duration":"17","billsec":"15","disposition":"ANSWERED"},{"cdr":"137465454327998-1992","main_cdr":{"AcctId":"","accountcode":"","src":"1992","dst":"023827390","dcontext":"","clid":"","channel":"","dstchannel":"","lastapp":"","lastdata":"","start":"2013-07-24 03:29:03","answer":"","end":"","duration":"72","billsec":"72","disposition":"","amaflags":"","uniqueid":"","userfield":"","channel_ext":"","dstchannel_ext":"","service":"","caller_name":"","recordfiles":"","dstanswer":"","chanext":"","dstchanext":"","session":"137465454327998-1992","action_owner":"","action_type":"DIAL","src_trunk_name":"","dst_trunk_name":""},"sub_cdr_1":{"AcctId":"13","accountcode":"","src":"1992","dst":"023827390","dcontext":"ext-did-4","clid":"\"\" <1992>","channel":"PJSIP\/trunk_4-00000005","dstchannel":"","lastapp":"ForkCDR","lastdata":"ae","start":"2013-07-24 03:29:03","answer":"2013-07-24 03:29:03","end":"2013-07-24 03:29:03","duration":"0","billsec":"0","disposition":"NO ANSWER","amaflags":"DOCUMENTATION","uniqueid":"1374654543.13","userfield":"Inbound","channel_ext":"trunk_4","dstchannel_ext":"023827390","service":"s","caller_name":"","recordfiles":"","dstanswer":"","chanext":"","dstchanext":"","session":"137465454327998-1992","action_owner":"1992","action_type":"DIAL","src_trunk_name":"PBX_251_CISCO","dst_trunk_name":""},"sub_cdr_2":{"AcctId":"14","accountcode":"","src":"1992","dst":"7000","dcontext":"ivr-1","clid":"\"\" <1992>","channel":"PJSIP\/trunk_4-00000005","dstchannel":"","lastapp":"ForkCDR","lastdata":"are","start":"2013-07-24 03:29:03","answer":"2013-07-24 03:29:03","end":"2013-07-24 03:30:15","duration":"72","billsec":"72","disposition":"ANSWERED","amaflags":"DOCUMENTATION","uniqueid":"1374654543.13","userfield":"Inbound","channel_ext":"trunk_4","dstchannel_ext":"7000","service":"s","caller_name":"","recordfiles":"","dstanswer":"7000","chanext":"","dstchanext":"","session":"137465454327998-1992","action_owner":"1992","action_type":"IVR[7000]","src_trunk_name":"PBX_251_CISCO","dst_trunk_name":""},"sub_cdr_3":{"AcctId":"15","accountcode":"","src":"1992","dst":"023827390","dcontext":"ext-did-4","clid":"\"\" <1992>","channel":"PJSIP\/trunk_4-00000005","dstchannel":"","lastapp":"ForkCDR","lastdata":"ae","start":"2013-07-24 03:30:15","answer":"2013-07-24 03:30:15","end":"2013-07-24 03:30:15","duration":"0","billsec":"0","disposition":"ANSWERED","amaflags":"DOCUMENTATION","uniqueid":"1374654543.13","userfield":"Inbound","channel_ext":"trunk_4","dstchannel_ext":"023827390","service":"s","caller_name":"","recordfiles":"","dstanswer":"023827390","chanext":"","dstchanext":"","session":"137465454327998-1992","action_owner":"1992","action_type":"IVR[7000]","src_trunk_name":"PBX_251_CISCO","dst_trunk_name":""}}]' ); $filtrado = array_filter($array, function($val) { if (isset($val["disposition"])) {return $val["disposition"] == 'ANSWERED' && $val['src_trunk_name'] == 'PBX_251_CISCO' && $val['dst_trunk_name']== 'PBX_ALDEBERAN_CLARO'; }});

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue