3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function ServerFamiliesVersions($param1, $param2) { echo $param1; echo $param2; return '1!!'; } } $snac = json_decode('{"type":1,"subtype":24,"flag":0,"request_id":2155050054,"data":"\u0000\u0001\u0000\u0004\u0000\u0002\u0000\u0001\u0000\u0003\u0000\u0001\u0000\u0004\u0000\u0001\u0000\b\u0000\u0001\u0000\t\u0000\u0001\u0000\u000b\u0000\u0001\u0000\u0013\u0000\u0006\u0000\u0015\u0000\u0002\u0000\"\u0000\u0001\u0000%\u0000\u0001","callback":"ServerFamiliesVersions"}', true); echo gettype($snac) . "\n"; echo gettype($snac['callback']) . "\n"; print_r($snac); $foo = new Foo(); echo $foo->{$snac['callback']}($snac['data'], $snac['flag']);
Output for git.master, git.master_jit, rfc.property-hooks
array string Array ( [type] => 1 [subtype] => 24 [flag] => 0 [request_id] => 2155050054 [data] =>   "% [callback] => ServerFamiliesVersions )   "%01!!

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:
137.63 ms | 406 KiB | 5 Q