3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = range(1,10); $c1 = count($arr); $c2 = &count($arr); var_dump($c1, $c2);
Output for 7.2.0 - 7.3.0rc3
Fatal error: Cannot use result of built-in function in write context in /in/EvNNk on line 6
Process exited with code 255.
Output for 7.0.0 - 7.1.20
Notice: Only variables should be assigned by reference in /in/EvNNk on line 6 int(10) int(10)
Output for hhvm-3.15.4
int(10) int(10)
Output for 5.6.0 - 5.6.30
Strict Standards: Only variables should be assigned by reference in /in/EvNNk on line 6 int(10) int(10)