3v4l.org

run code in 300+ PHP versions simultaneously
<?php function 🐵($val) { var_dump(array_fill(0, count($val), $val)); } 🐵(1); 🐵([1,3,4]); 🐵(null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rEKO1
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               '%F0%9F%90%B5'
          1        SEND_VAL                                                 1
          2        DO_FCALL                                      0          
    6     3        INIT_FCALL                                               '%F0%9F%90%B5'
          4        SEND_VAL                                                 <array>
          5        DO_FCALL                                      0          
    7     6        INIT_FCALL                                               '%F0%9F%90%B5'
          7        SEND_VAL                                                 null
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function %F0%9F%90%B5:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rEKO1
function name:  🐵
number of ops:  11
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'array_fill'
          3        SEND_VAL                                                 0
          4        COUNT                                            ~1      !0
          5        SEND_VAL                                                 ~1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
    4    10      > RETURN                                                   null

End of function %F0%9F%90%B5

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.14 ms | 1397 KiB | 20 Q