<?php
$all_states = [
"Ontario" => 0,
"Manitoba" => 0,
"New Brunswick" => 0,
"Yukon" => 0,
"Saskatchewan" => 0,
"Prince Edward Island" => 0,
"Alberta" => 0,
"Quebec" => 0,
"Nova Scotia" => 0,
"British Columbia" => 0,
"Nunavut" => 0,
"Newfoundland and Labrador" => 0,
"Northwest Territories" => 0
];
$country_states = [
"Alberta" => 17,
"Cairo" => 1,
"Calgary" => 1,
"ddd" => 4,
"gfdxf" => 1,
"New Cairo" => 1,
"Ontario" => 1,
"secret" => 30
];
var_export(array_replace($all_states, $country_states));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/9HvSn
function name: (null)
number of ops: 10
compiled vars: !0 = $all_states, !1 = $country_states
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, <array>
19 1 ASSIGN !1, <array>
30 2 INIT_FCALL 'var_export'
3 INIT_FCALL 'array_replace'
4 SEND_VAR !0
5 SEND_VAR !1
6 DO_ICALL $4
7 SEND_VAR $4
8 DO_ICALL
9 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
138.66 ms | 997 KiB | 15 Q