3v4l.org

run code in 300+ PHP versions simultaneously
<?php $all_states = [ "Ontario" => null, "Manitoba" => null, "New Brunswick" => null, "Yukon" => null, "Saskatchewan" => null, "Prince Edward Island" => null, "Alberta" => null, "Quebec" => null, "Nova Scotia" => null, "British Columbia" => null, "Nunavut" => null, "Newfoundland and Labrador" => null, "Northwest Territories" => null ]; $country_states = [ "Alberta" => 17, "Cairo" => 1, "Calgary" => 1, "ddd" => 4, "gfdxf" => 1, "New Cairo" => 1, "Ontario" => 1, "secret" => 30 ]; var_export(array_replace(array_map('intval', $all_states), $country_states));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lF1P7
function name:  (null)
number of ops:  14
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        INIT_FCALL                                               'array_map'
          5        SEND_VAL                                                 'intval'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.35 ms | 999 KiB | 16 Q