3v4l.org

run code in 300+ PHP versions simultaneously
<?php $members_login_history = '[{"i":"1","d":"2020-05-28"},{"i":"1","d":"2020-05-28"},{"i":"1","d":"2020-05-29"},{"i":"1","d":"2020-06-15"},{"i":"1","d":"2020-06-15"},{"i":"1","d":"2020-06-30"},{"i":"2","d":"2020-06-30"},{"i":"2","d":"2020-06-30"},{"i":"2","d":"2020-06-30"},{"i":"2","d":"2020-06-30"},{"i":"2","d":"2020-06-30"},{"i":"3","d":"2020-06-30"},{"i":"3","d":"2020-07-01"},{"i":"4","d":"2020-08-26"},{"i":"6","d":"2020-08-26"},{"i":"6","d":"2020-09-23"},{"i":"6","d":"2020-10-12"},{"i":"6","d":"2020-10-12"},{"i":"7","d":"2020-10-12"},{"i":"7","d":"2020-10-12"},{"i":"7","d":"2020-10-14"},{"i":"7","d":"2020-10-14"},{"i":"7","d":"2020-10-21"},{"i":"7","d":"2020-11-12"},{"i":"7","d":"2020-11-12"},{"i":"7","d":"2020-12-16"},{"i":"7","d":"2020-12-16"},{"i":"8","d":"2021-01-06"},{"i":"9","d":"2021-01-13"},{"i":"9","d":"2021-01-20"},{"i":"9","d":"2021-01-22"},{"i":"10","d":"2021-01-25"},{"i":"10","d":"2021-02-10"},{"i":"11","d":"2021-02-10"}]'; $id=1; preg_match_all("/i\":\"".$id."\",\"d\":\"([0-9-]+)\"/", $members_login_history, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9EpUr
function name:  (null)
number of ops:  13
compiled vars:  !0 = $members_login_history, !1 = $id, !2 = $matches
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, '%5B%7B%22i%22%3A%221%22%2C%22d%22%3A%222020-05-28%22%7D%2C%7B%22i%22%3A%221%22%2C%22d%22%3A%222020-05-28%22%7D%2C%7B%22i%22%3A%221%22%2C%22d%22%3A%222020-05-29%22%7D%2C%7B%22i%22%3A%221%22%2C%22d%22%3A%222020-06-15%22%7D%2C%7B%22i%22%3A%221%22%2C%22d%22%3A%222020-06-15%22%7D%2C%7B%22i%22%3A%221%22%2C%22d%22%3A%222020-06-30%22%7D%2C%7B%22i%22%3A%222%22%2C%22d%22%3A%222020-06-30%22%7D%2C%7B%22i%22%3A%222%22%2C%22d%22%3A%222020-06-30%22%7D%2C%7B%22i%22%3A%222%22%2C%22d%22%3A%222020-06-30%22%7D%2C%7B%22i%22%3A%222%22%2C%22d%22%3A%222020-06-30%22%7D%2C%7B%22i%22%3A%222%22%2C%22d%22%3A%222020-06-30%22%7D%2C%7B%22i%22%3A%223%22%2C%22d%22%3A%222020-06-30%22%7D%2C%7B%22i%22%3A%223%22%2C%22d%22%3A%222020-07-01%22%7D%2C%7B%22i%22%3A%224%22%2C%22d%22%3A%222020-08-26%22%7D%2C%7B%22i%22%3A%226%22%2C%22d%22%3A%222020-08-26%22%7D%2C%7B%22i%22%3A%226%22%2C%22d%22%3A%222020-09-23%22%7D%2C%7B%22i%22%3A%226%22%2C%22d%22%3A%222020-10-12%22%7D%2C%7B%22i%22%3A%226%22%2C%22d%22%3A%222020-10-12%22%7D%2C%7B%22i%22%3A%227%22%2C%22d%22%3A%222020-10-12%22%7D%2C%7B%22i%22%3A%227%22%2C%22d%22%3A%222020-10-12%22%7D%2C%7B%22i%22%3A%227%22%2C%22d%22%3A%222020-10-14%22%7D%2C%7B%22i%22%3A%227%22%2C%22d%22%3A%222020-10-14%22%7D%2C%7B%22i%22%3A%227%22%2C%22d%22%3A%222020-10-21%22%7D%2C%7B%22i%22%3A%227%22%2C%22d%22%3A%222020-11-12%22%7D%2C%7B%22i%22%3A%227%22%2C%22d%22%3A%222020-11-12%22%7D%2C%7B%22i%22%3A%227%22%2C%22d%22%3A%222020-12-16%22%7D%2C%7B%22i%22%3A%227%22%2C%22d%22%3A%222020-12-16%22%7D%2C%7B%22i%22%3A%228%22%2C%22d%22%3A%222021-01-06%22%7D%2C%7B%22i%22%3A%229%22%2C%22d%22%3A%222021-01-13%22%7D%2C%7B%22i%22%3A%229%22%2C%22d%22%3A%222021-01-20%22%7D%2C%7B%22i%22%3A%229%22%2C%22d%22%3A%222021-01-22%22%7D%2C%7B%22i%22%3A%2210%22%2C%22d%22%3A%222021-01-25%22%7D%2C%7B%22i%22%3A%2210%22%2C%22d%22%3A%222021-02-10%22%7D%2C%7B%22i%22%3A%2211%22%2C%22d%22%3A%222021-02-10%22%7D%5D'
   5     1        ASSIGN                                                   !1, 1
   6     2        INIT_FCALL                                               'preg_match_all'
         3        CONCAT                                           ~5      '%2Fi%22%3A%22', !1
         4        CONCAT                                           ~6      ~5, '%22%2C%22d%22%3A%22%28%5B0-9-%5D%2B%29%22%2F'
         5        SEND_VAL                                                 ~6
         6        SEND_VAR                                                 !0
         7        SEND_REF                                                 !2
         8        DO_ICALL                                                 
   8     9        INIT_FCALL                                               'print_r'
        10        SEND_VAR                                                 !2
        11        DO_ICALL                                                 
        12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.5 ms | 462 KiB | 7 Q