3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '$str = "<p>V 站的程序员都好牛 b</p>,<img src="/uploads/allimg/170427/10330HO4-0.jpg"> 巴拉巴拉 <img src="/uploads/allimg/170427/10330HO5-1.png"> <div>你们最帅了</div>"; '; function test($content) { $re = '/src=".+?"/m'; preg_match_all($re, $str, $srcs); var_dump($srcs); } test($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EsAkD
function name:  (null)
number of ops:  5
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%24str+%3D+%0A%22%3Cp%3EV+%E7%AB%99%E7%9A%84%E7%A8%8B%E5%BA%8F%E5%91%98%E9%83%BD%E5%A5%BD%E7%89%9B+b%3C%2Fp%3E%2C%3Cimg+src%3D%22%2Fuploads%2Fallimg%2F170427%2F10330HO4-0.jpg%22%3E+%0A%0A%E5%B7%B4%E6%8B%89%E5%B7%B4%E6%8B%89+%3Cimg+src%3D%22%2Fuploads%2Fallimg%2F170427%2F10330HO5-1.png%22%3E+%3Cdiv%3E%E4%BD%A0%E4%BB%AC%E6%9C%80%E5%B8%85%E4%BA%86%3C%2Fdiv%3E%22%3B+'
   18     1        INIT_FCALL                                               'test'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EsAkD
function name:  test
number of ops:  11
compiled vars:  !0 = $content, !1 = $re, !2 = $str, !3 = $srcs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1        ASSIGN                                                   !1, '%2Fsrc%3D%22.%2B%3F%22%2Fm'
   11     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !2
          5        SEND_REF                                                 !3
          6        DO_ICALL                                                 
   14     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !3
          9        DO_ICALL                                                 
   15    10      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.85 ms | 1397 KiB | 18 Q