3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = ['', 3, 2]; $min = -str_repeat(9, -str_repeat(9, $matches[1] - $matches[2])); var_dump($min);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q4ZUg
function name:  (null)
number of ops:  19
compiled vars:  !0 = $matches, !1 = $min
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'str_repeat'
          2        SEND_VAL                                                 9
          3        INIT_FCALL                                               'str_repeat'
          4        SEND_VAL                                                 9
          5        FETCH_DIM_R                                      ~3      !0, 1
          6        FETCH_DIM_R                                      ~4      !0, 2
          7        SUB                                              ~5      ~3, ~4
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        MUL                                              ~7      $6, -1
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                         $8      
         13        MUL                                              ~9      $8, -1
         14        ASSIGN                                                   !1, ~9
    7    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
206.36 ms | 1394 KiB | 17 Q