<?php
$employee = array
(
0=>
array("employee_id"=>1, "firstName"=>"Zahir", "lastName"=>"Alam", "Age"=>25, "Company"=>"Switchme", "Role"=>"Developer", "Department"=>"Tech"
,"Head"=>
array("Id"=>3 , "Name"=>"Sourasis Roy")
)
,
1=>
array("employee_id"=>2, "firstName"=>"Amith", "lastName"=>"Manniken", "Age"=>25, "Company"=>"Switchme", "Role"=>"Developer", "Department"=>"Tech"
,"Head"=>
array("Id"=>3 , "Name"=>"Sourasis Roy")
)
,
2=>
array("employee_id"=>3, "firstName"=>"Sourasis", "lastName"=>"Roy", "Age"=>28, "Company"=>"Switchme", "Role"=>"CTO")
,
3=>
array("employee_id"=>4, "firstName"=>"Aditya", "lastName"=>"Mishra", "Age"=>29, "Company"=>"Switchme", "Department"=>"Tech", "Role"=>"CEO")
,
4=>
array("employee_id"=>5, "firstName"=>"Priti", "lastName"=>"Lata", "Age"=>24, "Company"=>"Switchme", "Role"=>"HR")
,
5=>
array("employee_id"=>6, "firstName"=>"Sumita", "lastName"=>"Nath", "Age"=>24, "Company"=>"Switchme", "Role"=>"HLA Head", "Department"=>"Crm")
,
6=>
array("employee_id"=>7, "firstName"=>"Tarini", "lastName"=>"Khanna", "Age"=>22, "Company"=>"Switchme", "Role"=>"Content Writer")
,
7=>
array("employee_id"=>8, "firstName"=>"Abhisek", "lastName"=>"Soni", "Age"=>23, "Company"=>"Switchme", "Role"=>"HLA", "Department"=>"Crm","Head"=>array("Id"=>5 , "Name"=>"Sumita Nath")
)
,
8=>
array("employee_id"=>9, "firstName"=>"Ankit", "lastName"=>"Pump", "Age"=>23, "Company"=>"Switchme", "Role"=>"HLA", "Department"=>"Crm"
,"Head"=>
array("Id"=>5 , "Name"=>"Sumita Nath")
)
,
9=>
array("employee_id"=>10, "firstName"=>"Pogo", "lastName"=>"Laal", "Age"=>23, "Company"=>"Switchme", "Role"=>"Designer")
,
10=>
array("employee_id"=>11, "firstName"=>"Sabina", "lastName"=>"Sekh", "Age"=>28, "Company"=>"Switchme", "Role"=>"HLA Head", "Department"=>"Crm")
,
11=>
array("employee_id"=>12, "firstName"=>"Sanjay", "lastName"=>"Poudal", "Age"=>24, "Company"=>"Switchme", "Role"=>"HLA Head", "Department"=>"Crm"
,"Head"=>
array("Id"=>10 , "Name"=>"Sabina Sekh")
)
,
);
$employee_salary = array
(
7=>
array("employee_id"=>7, "salary"=>"55,000"
)
,
2=>
array("employee_id"=>2, "salary"=>"60,000"
)
,
9=>
array("employee_id"=>9, "salary"=>"50,000"
)
,
10=>
array("employee_id"=>10, "salary"=>"30,000"
)
,
);
$employee = array_column($employee, null, "employee_id");
$employee_salary = array_column($employee_salary, "salary", "employee_id");
foreach($employee_salary as $key => $v){
$employee[$key]['salary'] = $v;
}
var_dump($employee);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename: /in/W8sfq
function name: (null)
number of ops: 26
compiled vars: !0 = $employee, !1 = $employee_salary, !2 = $v, !3 = $key
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, <array>
57 1 ASSIGN !1, <array>
77 2 INIT_FCALL 'array_column'
3 SEND_VAR !0
4 SEND_VAL null
5 SEND_VAL 'employee_id'
6 DO_ICALL $6
7 ASSIGN !0, $6
78 8 INIT_FCALL 'array_column'
9 SEND_VAR !1
10 SEND_VAL 'salary'
11 SEND_VAL 'employee_id'
12 DO_ICALL $8
13 ASSIGN !1, $8
80 14 > FE_RESET_R $10 !1, ->21
15 > > FE_FETCH_R ~11 $10, !2, ->21
16 > ASSIGN !3, ~11
81 17 FETCH_DIM_W $13 !0, !3
18 ASSIGN_DIM $13, 'salary'
19 OP_DATA !2
80 20 > JMP ->15
21 > FE_FREE $10
84 22 INIT_FCALL 'var_dump'
23 SEND_VAR !0
24 DO_ICALL
25 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
140.36 ms | 1004 KiB | 16 Q