<?php class a { static $i =0; function __toString() { $a = ['', 'a']; $r = $a[$i]; $i++; return $r; } } $a = new a; var_dump('' == $a and 'a' == $a);
You have javascript disabled. You will not be able to edit any code.