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"}'); print_r($snac); $foo = new Foo(); echo $foo->$snac['callback']($snac['data'], $snac['flag']);
Output for git.master, git.master_jit, rfc.property-hooks
stdClass Object ( [type] => 1 [subtype] => 24 [flag] => 0 [request_id] => 2155050054 [data] =>   "% [callback] => ServerFamiliesVersions ) Fatal error: Uncaught Error: Object of class stdClass could not be converted to string in /in/CLSkU:18 Stack trace: #0 {main} thrown in /in/CLSkU on line 18
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:
184.45 ms | 406 KiB | 5 Q