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), ''); } var_dump($foo);die; $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 = 79) Position 1 = -2
Branch analysis from position: 16
filename:       /in/oKEf7
function name:  (null)
number of ops:  29
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                                                   !0, $12
    8    16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > EXIT                                                     
    9    20*       INIT_FCALL                                               'array_combine'
         21*       SEND_VAR                                                 !1
         22*       SEND_VAR                                                 !0
         23*       DO_ICALL                                         $15     
         24*       ASSIGN                                                   !2, $15
   11    25*       INIT_FCALL                                               'var_dump'
         26*       SEND_VAR                                                 !2
         27*       DO_ICALL                                                 
         28*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.6 ms | 1400 KiB | 19 Q