3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "'abcd'や'1234'のなどの色んなパターン"; echo preg_replace( "/'(.*?)'/", "<span class=\"aaa\">'$1'</span>" , $value );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qTZDS
function name:  (null)
number of ops:  8
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%27abcd%27%E3%82%84%271234%27%E3%81%AE%E3%81%AA%E3%81%A9%E3%81%AE%E8%89%B2%E3%82%93%E3%81%AA%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%27%28.%2A%3F%29%27%2F'
          3        SEND_VAL                                                 '%3Cspan+class%3D%22aaa%22%3E%27%241%27%3C%2Fspan%3E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.54 ms | 1394 KiB | 15 Q