3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'assert(): Assertion ""Foo" === "bar"" failed in /in/joNsK on line 3'; print_r(preg_match('~^assert(): Assertion "(.+)"[^"]+$~', '<?php $1', $str));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V23Zo
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'assert%28%29%3A+Assertion+%22%22Foo%22+%3D%3D%3D+%22bar%22%22+failed+in+%2Fin%2FjoNsK+on+line+3'
    4     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%7E%5Eassert%28%29%3A+Assertion+%22%28.%2B%29%22%5B%5E%22%5D%2B%24%7E'
          4        SEND_VAL                                                 '%3C%3Fphp+%241'
          5        SEND_REF                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.75 ms | 1394 KiB | 17 Q