3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $array = [ '2' => 'yay, integer inferring', '3' => 'wish you were a string', 'actualstring' => 'yes I am!', ]; foreach ($array as $key => $value) { var_dump($key); var_dump($value); echo "---\n"; }
Output for git.master_jit, git.master
int(2) string(22) "yay, integer inferring" --- int(3) string(22) "wish you were a string" --- string(12) "actualstring" string(9) "yes I am!" ---

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:
28.18 ms | 405 KiB | 5 Q