3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1,2,3,4]; $constructs = ["echo", "print", "isset", "require", "require_once", "include", "include_once"]; foreach($constructs as $construct){ array_map($construct,$array); }
Output for rfc.property-hooks, git.master, git.master_jit
Fatal error: Uncaught TypeError: array_map(): Argument #1 ($callback) must be a valid callback or null, function "echo" not found or invalid function name in /in/673mo:8 Stack trace: #0 /in/673mo(8): array_map('echo', Array) #1 {main} thrown in /in/673mo on line 8
Process exited with code 255.

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:
59.3 ms | 1591 KiB | 4 Q