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_pad($foo, count($bar), ''); } $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 = 13
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/LFYou
function name:  (null)
number of ops:  22
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, ->13
    6     6    >   INIT_FCALL                                               'array_pad'
          7        SEND_VAR                                                 !0
          8        COUNT                                            ~8      !1
          9        SEND_VAL                                                 ~8
         10        SEND_VAL                                                 ''
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !0, $9
    9    13    >   INIT_FCALL                                               'array_combine'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !2, $11
   11    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.17 ms | 1395 KiB | 19 Q