3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 'O:+8:"stdClass":0:{}'; $ret = (bool)preg_match('/(^|;|{|})O:\+?[0-9]+:"/', $value); var_dump($value, $ret);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gbKq6
function name:  (null)
number of ops:  12
compiled vars:  !0 = $value, !1 = $ret
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'O%3A%2B8%3A%22stdClass%22%3A0%3A%7B%7D'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28%5E%7C%3B%7C%7B%7C%7D%29O%3A%5C%2B%3F%5B0-9%5D%2B%3A%22%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        BOOL                                             ~4      $3
          6        ASSIGN                                                   !1, ~4
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.05 ms | 1394 KiB | 17 Q