3v4l.org

run code in 300+ PHP versions simultaneously
<?php // version started by 1.0.1.1 // version is set by 1.1.1.1 // | | | | // | | | -- build number 'build' // | | ---- patch level 'patch' // | ------ minor release 'minor' // -------- major release 'major' $version = []; $version[] = ['major' => 'history1']; $version[] = ['minor' => 'history2']; $version[] = ['patch' => 'history3']; $version[] = ['build' => 'history4']; $major = 1; $minor = 0; $patch = 1; $build = 1; foreach ($version as $versionInfo) { echo $versionInfo; } var_dump($version);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/5k71Z on line 21 Array Warning: Array to string conversion in /in/5k71Z on line 21 Array Warning: Array to string conversion in /in/5k71Z on line 21 Array Warning: Array to string conversion in /in/5k71Z on line 21 Arrayarray(4) { [0]=> array(1) { ["major"]=> string(8) "history1" } [1]=> array(1) { ["minor"]=> string(8) "history2" } [2]=> array(1) { ["patch"]=> string(8) "history3" } [3]=> array(1) { ["build"]=> string(8) "history4" } }

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