3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['nim'] = 'Hrllo'; $_POST['nama'] = 'Data'; $_POST['score'] = '33'; $_SESSION['nim'][] = $_POST['nim']; $_SESSION['nama'][] = $_POST['nama']; $_SESSION['score'][] = $_POST['score']; $string = ''; foreach($_SESSION as $main_key => $key) { foreach($key as $data => $value) { $string .= $main_key . ":" . $value . ' '; } } $string = rtrim($string, ' '); echo $string;
Output for git.master, git.master_jit, rfc.property-hooks
nim:Hrllo nama:Data score:33

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:
60.33 ms | 401 KiB | 8 Q