3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = "3/4 3/4"; $x = preg_match('/(?:(\d+) )?(\d)\/(\d)/', $in, $matched); var_dump($matched);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d14c2
function name:  (null)
number of ops:  11
compiled vars:  !0 = $in, !1 = $x, !2 = $matched
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '3%2F4+3%2F4'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28%3F%3A%28%5Cd%2B%29+%29%3F%28%5Cd%29%5C%2F%28%5Cd%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
132.66 ms | 1398 KiB | 17 Q