3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array1 = ["car1", "car2", "car3", "car4", "car5"]; $array2 = ["car1", "car4", "car5"]; var_export( array_replace( array_fill_keys($array1, false), array_fill_keys($array2, true), ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TFGjE
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array1, !1 = $array2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, <array>
    6     2        INIT_FCALL                                                   'var_export'
    7     3        INIT_FCALL                                                   'array_replace'
    8     4        INIT_FCALL                                                   'array_fill_keys'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     <false>
          7        DO_ICALL                                             $4      
          8        SEND_VAR                                                     $4
    9     9        INIT_FCALL                                                   'array_fill_keys'
         10        SEND_VAR                                                     !1
         11        SEND_VAL                                                     <true>
         12        DO_ICALL                                             $5      
         13        SEND_VAR                                                     $5
    7    14        DO_ICALL                                             $6      
    9    15        SEND_VAR                                                     $6
    6    16        DO_ICALL                                                     
   11    17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
223.84 ms | 1901 KiB | 16 Q