3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.8 ms | 1394 KiB | 19 Q