3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!defined('PHP_INT_MAX')) { $min = -1; do { $last = $min; } while(0 > $min <<= 1); define('PHP_INT_MIN', $last); define('PHP_INT_MAX', ~$last); } class Object { var $foo, $id; function Object() { static $counter = 0; if (PHP_INT_MAX === $this->id = ++$counter) { $counter = PHP_INT_MIN; } } } $a = new Object; $b = new Object; $a->foo = 1; $b->foo = 1; var_dump($a == $b, $a === $b);

This is an error 404

There are `0` results


preferences:
151.3 ms | 1399 KiB | 7 Q