3v4l.org

run code in 300+ PHP versions simultaneously
<?php $horrorMovies = array( array( "title" => "The babadook", "imdb" => 6.8, "rotten" => 98 ), array( "title" => "The shining", "imdb" => 8.4, "rotten" => 87 ) ); foreach($horrorMovies as &$subarray){ $subarray["imdb"] *= 10; } var_dump($horrorMovies);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(3) { ["title"]=> string(12) "The babadook" ["imdb"]=> float(68) ["rotten"]=> int(98) } [1]=> &array(3) { ["title"]=> string(11) "The shining" ["imdb"]=> float(84) ["rotten"]=> int(87) } }

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