3v4l.org

run code in 300+ PHP versions simultaneously
<?php $active = 1; var_dump($active); $ps->bindParam(":active", $active, PDO::PARAM_INT); var_dump($active); $ps->execute(); var_dump($active); if ($active === 1) { // do something here // note: this will fail since $active is now "1" }
Output for git.master_jit, git.master, rfc.property-hooks
int(1) Warning: Undefined variable $ps in /in/BNhcJ on line 4 Fatal error: Uncaught Error: Call to a member function bindParam() on null in /in/BNhcJ:4 Stack trace: #0 {main} thrown in /in/BNhcJ on line 4
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:
50 ms | 401 KiB | 8 Q