3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = array('test', '3', 'google.com'); $bar = array('title', 'rating', 'url', 'appropriate', 'seen'); if (count($foo) < count($bar)) { $foo += array_fill(count($foo), count($bar) - count($foo), ''); } $foobar = array_combine($bar, $foo); var_dump($foobar);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/nr97k
function name:  (null)
number of ops:  25
compiled vars:  !0 = $foo, !1 = $bar, !2 = $foobar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        COUNT                                            ~5      !0
          3        COUNT                                            ~6      !1
          4        IS_SMALLER                                               ~5, ~6
          5      > JMPZ                                                     ~7, ->16
    6     6    >   INIT_FCALL                                               'array_fill'
          7        COUNT                                            ~8      !0
          8        SEND_VAL                                                 ~8
          9        COUNT                                            ~9      !1
         10        COUNT                                            ~10     !0
         11        SUB                                              ~11     ~9, ~10
         12        SEND_VAL                                                 ~11
         13        SEND_VAL                                                 ''
         14        DO_ICALL                                         $12     
         15        ASSIGN_OP                                     1          !0, $12
    9    16    >   INIT_FCALL                                               'array_combine'
         17        SEND_VAR                                                 !1
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $14     
         20        ASSIGN                                                   !2, $14
   11    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.69 ms | 1395 KiB | 19 Q