3v4l.org

run code in 500+ PHP versions simultaneously
<?php add_filter('auth_cookie_expiration', function($length, $user_id, $remember) { if (current_user_can('orbit_crm_access')) { return 12 * HOUR_IN_SECONDS; } return $length; }, 10, 3);
Output for 8.2.31 - 8.2.32, 8.3.0 - 8.3.32, 8.4.1 - 8.4.23, 8.5.0 - 8.5.8
Fatal error: Uncaught Error: Call to undefined function add_filter() in /in/4LMpj:2 Stack trace: #0 {main} thrown in /in/4LMpj on line 2
Process exited with code 255.

preferences:
57.97 ms | 773 KiB | 4 Q