3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json=<<<EOF [ { "id":23, "uid":"0090000219", "cid":"0090000013", "extension":"201", "secret":"Myojyo42_f", "leader":true, "simultaneous":false, "confbridge_id":17, "created_at":"2015-09-02 12:49:12", "updated_at":"2015-09-02 12:49:12" }, { "id":24, "uid":"0090000221", "cid":"0090000013", "extension":"203", "secret":"Myojyo42_f", "leader":false, "simultaneous":false, "confbridge_id":17, "created_at":"2015-09-02 12:49:12", "updated_at":"2015-09-02 12:49:12" }, { "id":25, "uid":"0090000223", "cid":"0090000013", "extension":"205", "secret":"Myojyo42_f", "leader":true, "simultaneous":false, "confbridge_id":17, "created_at":"2015-09-10 10:16:24", "updated_at":"2015-09-10 10:16:24" } ] EOF; echo count (array_filter(function($a){ return $a->leader?1:0;}, json_decode($json)));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, Closure given in /in/mtlLv:45 Stack trace: #0 /in/mtlLv(45): array_filter(Object(Closure), Array) #1 {main} thrown in /in/mtlLv on line 45
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
55.14 ms | 401 KiB | 8 Q