3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "let's create a date object", PHP_EOL; $date = date_create(); echo "it has some public properties!!", PHP_EOL; foreach ($date as $key => $value) { echo $key, ' => ', $value, PHP_EOL; } echo "let's change one of them.. because it is public right", PHP_EOL; $date->date = 'foo'; echo "It works!! Hourra ....", PHP_EOL; echo $date->date, PHP_EOL; echo "Or it does not ...", PHP_EOL; foreach ($date as $key => $value) { echo $key, ' ', $value, PHP_EOL; } echo "Is the public properties really all that public .. And don't get me started on HHVM ???";
Output for git.master, git.master_jit, rfc.property-hooks
let's create a date object it has some public properties!! let's change one of them.. because it is public right Deprecated: Creation of dynamic property DateTime::$date is deprecated in /in/mWluN on line 10 It works!! Hourra .... foo Or it does not ... date foo Is the public properties really all that public .. And don't get me started on HHVM ???

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:
67.24 ms | 402 KiB | 8 Q