3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Crasher extends DateInterval { public function __construct($time_spec) { echo "Yes i did it, with the next statement it gives a segfault\n"; // It doesn't matter if we take the y parameter or any other. $this->y = 3; } } $c = new Crasher('blah'); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Yes i did it, with the next statement it gives a segfault Deprecated: Creation of dynamic property Crasher::$y is deprecated in /in/EG1PO on line 8

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:
40.1 ms | 401 KiB | 8 Q