3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'SS 1.0140 SL 1.0670 TP1 1.0870 TP 1 1.0870 TP 2 1.0870 Takeprofit1 1.0870 Take profit 1 1.0870 TP 1.0870 TP 20/30/50 TP-----1.0870 TP=1.0870 TP1=1.0870 TP Open'; $p = '#\b(TAKE ?PROFIT ?(?:[1-3]|\|TP|at)|TP ?(?:[1-3](?!\.\d))?)\b(.*?)\b(Open|(\d+(?:\.\d+)?(?:/\d+)*))\b#i'; preg_match_all($p , $s , $m); var_export($m[3]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IlTP9
function name:  (null)
number of ops:  12
compiled vars:  !0 = $s, !1 = $p, !2 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'SS+1.0140+SL+1.0670+TP1+1.0870+TP+1+1.0870+TP+2+1.0870+Takeprofit1+1.0870+Take+profit+1+1.0870+TP+1.0870+TP+20%2F30%2F50+TP-----1.0870+TP%3D1.0870+TP1%3D1.0870+TP+Open'
    5     1        ASSIGN                                                   !1, '%23%5Cb%28TAKE+%3FPROFIT+%3F%28%3F%3A%5B1-3%5D%7C%5C%7CTP%7Cat%29%7CTP+%3F%28%3F%3A%5B1-3%5D%28%3F%21%5C.%5Cd%29%29%3F%29%5Cb%28.%2A%3F%29%5Cb%28Open%7C%28%5Cd%2B%28%3F%3A%5C.%5Cd%2B%29%3F%28%3F%3A%2F%5Cd%2B%29%2A%29%29%5Cb%23i'
    7     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                                 
    9     7        INIT_FCALL                                               'var_export'
          8        FETCH_DIM_R                                      ~6      !2, 3
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.06 ms | 1398 KiB | 17 Q