3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serialized_data = serialize(array('Math', 'Language', 'Science')); echo $serialized_data . '<br>'; // Unserialize the data $var1 = unserialize($serialized_data); // Show the unserialized data; foreach ($serialized_data[0] as $desg): echo $desg; endforeach; print_r(unserialize($serialized_data)); ?>
Output for git.master, git.master_jit, rfc.property-hooks
a:3:{i:0;s:4:"Math";i:1;s:8:"Language";i:2;s:7:"Science";}<br> Warning: foreach() argument must be of type array|object, string given in /in/EV0HG on line 7 Array ( [0] => Math [1] => Language [2] => Science )

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