3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = opcache_get_status(); var_dump($a); $b = opcache_reset(); var_dump($b);
based on 8vKd6
Output for 5.6.0 - 7.1.0, 7.1.7 - 7.2.6
bool(false) bool(false)
Output for 7.1.6
array(8) { ["opcache_enabled"]=> bool(true) ["cache_full"]=> bool(false) ["restart_pending"]=> bool(false) ["restart_in_progress"]=> bool(false) ["memory_usage"]=> array(4) { ["used_memory"]=> int(18734928) ["free_memory"]=> int(115482800) ["wasted_memory"]=> int(0) ["current_wasted_percentage"]=> float(0) } ["interned_strings_usage"]=> array(4) { ["buffer_size"]=> int(8388608) ["used_memory"]=> int(237000) ["free_memory"]=> int(8151608) ["number_of_strings"]=> int(5547) } ["opcache_statistics"]=> array(13) { ["num_cached_scripts"]=> int(0) ["num_cached_keys"]=> int(0) ["max_cached_keys"]=> int(16229) ["hits"]=> int(0) ["start_time"]=> int(1498746209) ["last_restart_time"]=> int(0) ["oom_restarts"]=> int(0) ["hash_restarts"]=> int(0) ["manual_restarts"]=> int(0) ["misses"]=> int(1) ["blacklist_misses"]=> int(0) ["blacklist_miss_ratio"]=> float(0) ["opcache_hit_rate"]=> float(0) } ["scripts"]=> array(0) { } } bool(true)
Output for 7.1.5
array(8) { ["opcache_enabled"]=> bool(true) ["cache_full"]=> bool(false) ["restart_pending"]=> bool(false) ["restart_in_progress"]=> bool(false) ["memory_usage"]=> array(4) { ["used_memory"]=> int(18734928) ["free_memory"]=> int(115482800) ["wasted_memory"]=> int(0) ["current_wasted_percentage"]=> float(0) } ["interned_strings_usage"]=> array(4) { ["buffer_size"]=> int(8388608) ["used_memory"]=> int(237000) ["free_memory"]=> int(8151608) ["number_of_strings"]=> int(5547) } ["opcache_statistics"]=> array(13) { ["num_cached_scripts"]=> int(0) ["num_cached_keys"]=> int(0) ["max_cached_keys"]=> int(16229) ["hits"]=> int(0) ["start_time"]=> int(1499096372) ["last_restart_time"]=> int(0) ["oom_restarts"]=> int(0) ["hash_restarts"]=> int(0) ["manual_restarts"]=> int(0) ["misses"]=> int(1) ["blacklist_misses"]=> int(0) ["blacklist_miss_ratio"]=> float(0) ["opcache_hit_rate"]=> float(0) } ["scripts"]=> array(0) { } } bool(true)