3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [0]; preg_match('error', 'abc', $arr[1]); var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/37dc5
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 'error'
          3        SEND_VAL                                                 'abc'
          4        FETCH_DIM_W                                      $2      !0, 1
          5        SEND_REF                                                 $2
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.5 ms | 997 KiB | 15 Q