3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new stdClass; call_user_func('call_user_func','assert','phpinfo',$a);
based on RmUJ0

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
Warning: Cannot call assert() with string argument dynamically in /in/DsgEC on line 4
Output for Arrow functions
Warning: Cannot call assert() with string argument dynamically in /in/DsgEC on line 4
Output for Object typehint
Warning: Cannot call assert() with string argument dynamically in /in/DsgEC on line 4
Output for Array change keys
Warning: Cannot call assert() with string argument dynamically in /in/DsgEC on line 4
Output for Lexical anon
Notice: Use of undefined constant phpinfo - assumed 'phpinfo' in /in/DsgEC(4) : assert code on line 1

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