3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getNumber() : int { return 3; } function getFunctionName() : string { return 'var_dump'; } function getBullshit() : string { return 'bullshit'; } var_dump(getNumber()/2); getFunctionName()(getNumber()/2); getBullshit()(getNumber()/2);
Output for git.master, git.master_jit, rfc.property-hooks
float(1.5) float(1.5) Fatal error: Uncaught Error: Call to undefined function bullshit() in /in/nR66q:20 Stack trace: #0 {main} thrown in /in/nR66q on line 20
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:
71.74 ms | 405 KiB | 5 Q