3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = <<<EOT 195/50R16 EOT; $matches = []; preg_match('~^\d+/\d+R(?P<return>\d+)~', $string, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SnqUV
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '195%2F50R16'
    7     1        ASSIGN                                                       !1, <array>
    8     2        INIT_FCALL                                                   'preg_match'
          3        SEND_VAL                                                     '%7E%5E%5Cd%2B%2F%5Cd%2BR%28%3FP%3Creturn%3E%5Cd%2B%29%7E'
          4        SEND_VAR                                                     !0
          5        SEND_REF                                                     !1
          6        DO_ICALL                                                     
   10     7        INIT_FCALL                                                   'var_dump'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.82 ms | 3336 KiB | 15 Q