3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "input([[1,2,nc(2)],[1,2,nc(1)]])"; preg_match('@^(.+?)\((.+?)\)$@i', $input, $output); print_r($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aMN9H
function name:  (null)
number of ops:  10
compiled vars:  !0 = $input, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'input%28%5B%5B1%2C2%2Cnc%282%29%5D%2C%5B1%2C2%2Cnc%281%29%5D%5D%29'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%40%5E%28.%2B%3F%29%5C%28%28.%2B%3F%29%5C%29%24%40i'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
229.87 ms | 1010 KiB | 15 Q