3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $i = 0; public function __toString() { echo "i => {$this->i}\n"; $this->i++; return "$this->i"; } } $a = new A; echo $a; $b = ['100', $a]; var_dump(array_uintersect('strcasecmp', $b, $b));
Output for git.master, git.master_jit, rfc.property-hooks
i => 0 1 Fatal error: Uncaught TypeError: array_uintersect(): Argument #3 must be a valid callback, second array member is not a valid method in /in/meRvQ:17 Stack trace: #0 /in/meRvQ(17): array_uintersect('strcasecmp', Array, Array) #1 {main} thrown in /in/meRvQ on line 17
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:
32.88 ms | 401 KiB | 8 Q