3v4l.org

run code in 200+ php & hhvm versions
<?php // пример от Максима Иванова error_reporting( E_ERROR ); function foo(){}; // return void $arr = [1, 2, 3]; echo (false ?? "Next step !") . " | "; // true echo (NULL ?? "Next step !") . " | "; // Next step ! echo ("" ?? "Next step !") . " | "; // true echo (0 ?? "Next step !") . " | "; // 0 echo (foo() ?? "Next step !") . " | "; // Next step ! echo ($arr ?? "Next step !") . " | "; // Array echo ($arr[1] ?? "Next step !") . " | "; // 2
based on 3gFAm

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
| Next step ! | | 0 | Next step ! | Array | 2 |
Output for Array change keys
| Next step ! | | 0 | Next step ! | Array | 2 |
Output for Lexical anon
| Next step ! | | 0 | Next step ! | Array | 2 |

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