3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data = "<th style='text-align:center;width:33%;'><a onclick='return myfunction(12314568);' href='#test' class='btn mini full'>Test</a> </th>"; preg_match("/return myfunction\(([0-9]+)\)/", $data, $m); print_r($m);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8qvnH
function name:  (null)
number of ops:  10
compiled vars:  !0 = $data, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cth+style%3D%27text-align%3Acenter%3Bwidth%3A33%25%3B%27%3E%3Ca+onclick%3D%27return+myfunction%2812314568%29%3B%27+href%3D%27%23test%27+class%3D%27btn+mini+full%27%3ETest%3C%2Fa%3E+%3C%2Fth%3E'
    5     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2Freturn+myfunction%5C%28%28%5B0-9%5D%2B%29%5C%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    6     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:
165.11 ms | 2019 KiB | 15 Q