3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers = array("1","3","5","6","12","13","15","20","24","28","32","33","34","42","47","49","50","54","59","79"); $intersect = array_intersect_keys(array_fill_keys(array_diff(range(1, 80), $numbers), null), $numbers); ksort($intersect); var_dump($intersect);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H0pVb
function name:  (null)
number of ops:  25
compiled vars:  !0 = $numbers, !1 = $intersect
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL_BY_NAME                                       'array_intersect_keys'
          2        INIT_FCALL                                               'array_fill_keys'
          3        INIT_FCALL                                               'array_diff'
          4        INIT_FCALL                                               'range'
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 80
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        SEND_VAL                                                 null
         13        DO_ICALL                                         $5      
         14        SEND_VAR_NO_REF_EX                                       $5
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0  $6      
         17        ASSIGN                                                   !1, $6
    5    18        INIT_FCALL                                               'ksort'
         19        SEND_REF                                                 !1
         20        DO_ICALL                                                 
    6    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.03 ms | 1395 KiB | 23 Q