3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sergio = [ 'name' => 'sergio carlos', 'food' => 'pizza and tacos', 'age' => 25, 'mental status' => 'kray kray' ]; $carlos = [ 'name' => 'sergio carlos', 'food' => 'pizza and tacos', 'age' => 25, 'mental status' => 'kray kray' ]; $obama = [ 'name' => 'barack obama', 'food' => 'burritos', 'age' => 666, 'mental status' => 'unknown' ]; for ($i=0;$i<999999;$i++) { //$sergio === $sergio; spl_object_hash($sergio) === spl_object_hash($sergio); //$sergio === $carlos; spl_object_hash($sergio) === spl_object_hash($carlos); //$sergio === $obama; spl_object_hash($sergio) === spl_object_hash($obama); }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: spl_object_hash(): Argument #1 ($object) must be of type object, array given in /in/UCha0:27 Stack trace: #0 /in/UCha0(27): spl_object_hash(Array) #1 {main} thrown in /in/UCha0 on line 27
Process exited with code 255.

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