3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a= & $_POST; $a=array(); function isReference(&$xVal) { ob_start(); debug_zval_dump(&$xVal); $dump = ob_get_clean(); preg_match('/refcount\((\d*)\)/',$dump,$matches); if ($matches[1] > 4) { return true; } else { return false; } } var_dump(isReference($a));
Output for 5.4.0 - 5.4.24
Fatal error: Call-time pass-by-reference has been removed in /in/AcA90 on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/AcA90 on line 8 bool(true)