3v4l.org

run code in 300+ PHP versions simultaneously
<?php $meta = [ ['email' => 'jcosasdbacasdfasaho@ksdafs.com', 'role' => User::ROLE_SUPER, 'password' => ''], ['email' => 'a.anglada@socialyou.es', 'role' => User::ROLE_ADMIN, 'password' => ''], ['email' => 'm.gonzalez@socialyou.es', 'role' => User::ROLE_BACKEND_USER, 'password' => ''], ['email' => 'mc.machin@socialyou.es', 'role' => User::ROLE_BACKEND_USER, 'password' => ''], ['email' => 'm.mansilla@socialyou.es', 'role' => User::ROLE_BACKEND_USER, 'password' => ''], ['email' => 'pere.badia@socialyou.es', 'role' => User::ROLE_BACKEND_USER, 'password' => ''], ]; $roleList = array_filter($meta, function($v) { return $v['role']; }); var_dump($roleList);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "User" not found in /in/n1LKM:4 Stack trace: #0 {main} thrown in /in/n1LKM on line 4
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
45.93 ms | 401 KiB | 8 Q