3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/(userAgent\.value\.token);/i'; $ua = "Mozilla/5.0 (infoscom.iPad.1; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10"; var_dump(preg_match($pattern, $ua, $reMatches), $reMatches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HQmbn
function name:  (null)
number of ops:  12
compiled vars:  !0 = $pattern, !1 = $ua, !2 = $reMatches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%28userAgent%5C.value%5C.token%29%3B%2Fi'
    4     1        ASSIGN                                                   !1, 'Mozilla%2F5.0+%28infoscom.iPad.1%3B+U%3B+CPU+OS+3_2+like+Mac+OS+X%3B+en-us%29+AppleWebKit%2F531.21.10+%28KHTML%2C+like+Gecko%29+Version%2F4.0.4+Mobile%2F7B334b+Safari%2F531.21.10'
    6     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'preg_match'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_REF                                                 !2
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.54 ms | 1394 KiB | 17 Q