3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s ='O:8:"stdClass":10:{s:2:"-8";i:0;s:2:"-7";i:0;s:2:"-6";i:0;s:2:"-5";i:0;s:2:"-4";i:0;s:2:"-3";i:0;s:2:"-2";i:0;s:2:"-1";i:0;s:1:"0";i:100;s:1:"1";i:0;}'; $obj=unserialize($s); $ar =(array)$obj; // var_dump($obj->{'0'}, $obj->{0}, $ar['0'], $ar[0]); foreach ($ar as $key => $value){ echo $key.' = '.$value."\n"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
-8 = 0 -7 = 0 -6 = 0 -5 = 0 -4 = 0 -3 = 0 -2 = 0 -1 = 0 0 = 100 1 = 0

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.99 ms | 401 KiB | 8 Q