3v4l.org

run code in 300+ PHP versions simultaneously
<?php $useragent = "Mozilla/5.0 (iPhone; CPU iPhone OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"; if (preg_match('/os\s+([0-9]+(?:_[0-9]+)*)/i', $useragent, $m)) { print_r($m); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/6eGYi
function name:  (null)
number of ops:  11
compiled vars:  !0 = $useragent, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Mozilla%2F5.0+%28iPhone%3B+CPU+iPhone+OS+13_3+like+Mac+OS+X%29+AppleWebKit%2F605.1.15+%28KHTML%2C+like+Gecko%29+Mobile%2F15E148'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2Fos%5Cs%2B%28%5B0-9%5D%2B%28%3F%3A_%5B0-9%5D%2B%29%2A%29%2Fi'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->10
    5     7    >   INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    6    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.63 ms | 1394 KiB | 17 Q