3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pivot = array_fill(0, 1, ['is_primary' => false]); $groups = array_combine([User\Group::CUSTOMER], $pivot); var_dump($pivot); var_dump($groups);
Output for 7.0.0 - 7.3.1
Fatal error: Uncaught Error: Class 'User\Group' not found in /in/WASXe:5 Stack trace: #0 {main} thrown in /in/WASXe on line 5
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Class undefined: User\Group in /in/WASXe:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.15.4 - 3.21.3
Fatal error: Uncaught Error: Class undefined: User\Group in /in/WASXe:5 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.30
Fatal error: Class 'User\Group' not found in /in/WASXe on line 5
Process exited with code 255.