3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $myArray = [12, 'string value', 'another string value', 5]; var_dump($myArray); array_map('validateMyArrayValues', $myArray); function validateMyArrayValues(string $item) { var_dump($item); }
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { [0]=> int(12) [1]=> string(12) "string value" [2]=> string(20) "another string value" [3]=> int(5) } string(2) "12" string(12) "string value" string(20) "another string value" string(1) "5"

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:
41.94 ms | 1761 KiB | 4 Q