3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /* OO API */ $memcache_obj = new Memcache; $memcache_obj->connect('localhost', 11211); /* decrement item by 3 */ $memcache_obj->add('test_item', 5); $new_value = $memcache_obj->decrement('test_item', 3); echo $new_value; echo "\n"; ?>
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'Memcache' not found in /in/8vJPr:4 Stack trace: #0 {main} thrown in /in/8vJPr on line 4
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Class 'Memcache' not found in /in/8vJPr on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: memcache in /in/8vJPr on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: memcache in /in/8vJPr on line 4