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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n1LKM
function name:  (null)
number of ops:  41
compiled vars:  !0 = $meta, !1 = $roleList
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_ARRAY                                       ~2      'jcosasdbacasdfasaho%40ksdafs.com', 'email'
          1        FETCH_CLASS_CONSTANT                             ~3      'User', 'ROLE_SUPER'
          2        ADD_ARRAY_ELEMENT                                ~2      ~3, 'role'
          3        ADD_ARRAY_ELEMENT                                ~2      '', 'password'
          4        INIT_ARRAY                                       ~4      ~2
    5     5        INIT_ARRAY                                       ~5      'a.anglada%40socialyou.es', 'email'
          6        FETCH_CLASS_CONSTANT                             ~6      'User', 'ROLE_ADMIN'
          7        ADD_ARRAY_ELEMENT                                ~5      ~6, 'role'
          8        ADD_ARRAY_ELEMENT                                ~5      '', 'password'
          9        ADD_ARRAY_ELEMENT                                ~4      ~5
    6    10        INIT_ARRAY                                       ~7      'm.gonzalez%40socialyou.es', 'email'
         11        FETCH_CLASS_CONSTANT                             ~8      'User', 'ROLE_BACKEND_USER'
         12        ADD_ARRAY_ELEMENT                                ~7      ~8, 'role'
         13        ADD_ARRAY_ELEMENT                                ~7      '', 'password'
         14        ADD_ARRAY_ELEMENT                                ~4      ~7
    7    15        INIT_ARRAY                                       ~9      'mc.machin%40socialyou.es', 'email'
         16        FETCH_CLASS_CONSTANT                             ~10     'User', 'ROLE_BACKEND_USER'
         17        ADD_ARRAY_ELEMENT                                ~9      ~10, 'role'
         18        ADD_ARRAY_ELEMENT                                ~9      '', 'password'
         19        ADD_ARRAY_ELEMENT                                ~4      ~9
    8    20        INIT_ARRAY                                       ~11     'm.mansilla%40socialyou.es', 'email'
         21        FETCH_CLASS_CONSTANT                             ~12     'User', 'ROLE_BACKEND_USER'
         22        ADD_ARRAY_ELEMENT                                ~11     ~12, 'role'
         23        ADD_ARRAY_ELEMENT                                ~11     '', 'password'
         24        ADD_ARRAY_ELEMENT                                ~4      ~11
    9    25        INIT_ARRAY                                       ~13     'pere.badia%40socialyou.es', 'email'
         26        FETCH_CLASS_CONSTANT                             ~14     'User', 'ROLE_BACKEND_USER'
         27        ADD_ARRAY_ELEMENT                                ~13     ~14, 'role'
         28        ADD_ARRAY_ELEMENT                                ~13     '', 'password'
         29        ADD_ARRAY_ELEMENT                                ~4      ~13
    3    30        ASSIGN                                                   !0, ~4
   12    31        INIT_FCALL                                               'array_filter'
         32        SEND_VAR                                                 !0
         33        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fn1LKM%3A12%240'
   14    34        SEND_VAL                                                 ~16
         35        DO_ICALL                                         $17     
   12    36        ASSIGN                                                   !1, $17
   16    37        INIT_FCALL                                               'var_dump'
         38        SEND_VAR                                                 !1
         39        DO_ICALL                                                 
         40      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fn1LKM%3A12%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n1LKM
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1        FETCH_DIM_R                                      ~1      !0, 'role'
          2      > RETURN                                                   ~1
   14     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fn1LKM%3A12%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.37 ms | 1400 KiB | 17 Q