3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $key="testkey"; $i=PHP_INT_MAX; apc_store($key, $i); var_dump($j=apc_fetch($key)); var_dump($i); var_dump($i==$j); apc_inc($key, 1); $i++; var_dump($j=apc_fetch($key)); var_dump($i); var_dump($i==$j);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function apc_store() in /in/LMtC0:4 Stack trace: #0 {main} thrown in /in/LMtC0 on line 4
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
int(9223372036854775807) int(9223372036854775807) bool(true) int(-9223372036854775808) float(9.2233720368548E+18) bool(false)
Output for 5.0.5 - 5.6.21
Fatal error: Call to undefined function apc_store() in /in/LMtC0 on line 4
Process exited with code 255.
Output for 5.0.0 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/LMtC0 on line 3 Fatal error: Call to undefined function apc_store() in /in/LMtC0 on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: apc_store() in /in/LMtC0 on line 4
Process exited with code 255.
Output for 4.4.0 - 4.4.4
Fatal error: Call to undefined function: apc_store() in /in/LMtC0 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.11
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/LMtC0 on line 3 Fatal error: Call to undefined function: apc_store() in /in/LMtC0 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/LMtC0 on line 3 Fatal error: Call to undefined function: apc_store() in /in/LMtC0 on line 4