3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = '{"_id":"scheme_version","_rev":"4-cad1842a7646b4497066e09c3788e724","scheme_version":1234}'; $pattern = '(?<=scheme_version":)[0-9]+'; echo preg_grep($subject, $pattern);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tDGpA
function name:  (null)
number of ops:  8
compiled vars:  !0 = $subject, !1 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22_id%22%3A%22scheme_version%22%2C%22_rev%22%3A%224-cad1842a7646b4497066e09c3788e724%22%2C%22scheme_version%22%3A1234%7D'
    3     1        ASSIGN                                                   !1, '%28%3F%3C%3Dscheme_version%22%3A%29%5B0-9%5D%2B'
    4     2        INIT_FCALL                                               'preg_grep'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        ECHO                                                     $4
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.95 ms | 1394 KiB | 15 Q