3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $params = array( 'start' => date_create("@$start"), 'end' => date_create("@$end"), 'realm' => $realm, ); var_dump($params - ['end']);
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: start in /in/09h8r on line 4 Notice: Undefined variable: end in /in/09h8r on line 5 Notice: Undefined variable: realm in /in/09h8r on line 6 Fatal error: Uncaught Error: Unsupported operand types in /in/09h8r:9 Stack trace: #0 {main} thrown in /in/09h8r on line 9
Process exited with code 255.
Output for 5.4.11 - 5.6.28
Notice: Undefined variable: start in /in/09h8r on line 4 Notice: Undefined variable: end in /in/09h8r on line 5 Notice: Undefined variable: realm in /in/09h8r on line 6 Fatal error: Unsupported operand types in /in/09h8r on line 9
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/09h8r on line 9
Process exited with code 255.