3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isDeprecated($c){ $d=false; set_error_handler(function($e) use (&$d) { $d = E_DEPRECATED === $e; }); defined($c) && constant($c); restore_error_handler(); return $d; } echo '`E_STRICT` is ' . ( !defined('E_STRICT') ? 'not defined' : ( isDeprecated('E_STRICT') ? 'deprecated' : ( E_STRICT === (E_ALL & E_STRICT) ? 'in `E_ALL`' : 'not in `E_ALL`' ) ) );

preferences:
24.51 ms | 407 KiB | 5 Q