3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 1; } $o = new Foo(); $s = '1'; $b = true; $i = 1; $f = 1.0; var_dump($o == $s); var_dump($o == $b); var_dump($o == $i); var_dump($o == $f);
Output for git.master, git.master_jit, rfc.property-hooks
bool(false) bool(true) Notice: Object of class Foo could not be converted to int in /in/8esOY on line 16 bool(true) Notice: Object of class Foo could not be converted to float in /in/8esOY on line 17 bool(true)

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:
93.86 ms | 406 KiB | 5 Q