3v4l.org

run code in 300+ PHP versions simultaneously
<?php $youtube_videos_count = 1; $string = 'http://youtu.be/O7Lm3BMG8ow The G20 meeting in Washington over the weekend ended with a tacit endorsement of the recent Japanese monetary policy that has caused the yen to lose 11% over the past 3 months, and has the Nikkei 30% higher since the beginning of the year. The South Koreans were complainants following pressures on its own vital export sector but was only able to get a commitment from the G20 to be mindful of unintended negative side effects stemming from extended periods of monetary easing. Finance Minister Aso told us that the other members of the G20 had agreed that the bond buying plan put forward by the Bank of Japan was inde'; $replacement = '<span class="video"><a id="youTubeVideo' . ++$youtube_videos_count . '" href="http://www.youtube.com/watch?v=$3" target="_blank">View Our Video Blog Entry For This Post</a></span>'; echo preg_replace('#(?<=v=)[a-zA-Z0-9-]+(?=&)|(?<=v\/)[^&\n]+(?=\?)|(?<=v=)[^&\n]+|(?<=youtu.be/)[^&\n]+#', $replacement, $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TAVsD
function name:  (null)
number of ops:  13
compiled vars:  !0 = $youtube_videos_count, !1 = $string, !2 = $replacement
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    6     1        ASSIGN                                                   !1, 'http%3A%2F%2Fyoutu.be%2FO7Lm3BMG8ow+The+G20+meeting+in+Washington+over+the+weekend+ended+with+a+tacit+endorsement+of+the+recent+Japanese+monetary+policy+that+has+caused+the+yen+to+lose+11%25+over+the+past+3+months%2C+and+has+the+Nikkei+30%25+higher+since+the+beginning+of+the+year.+The+South+Koreans+were+complainants+following+pressures+on+its+own+vital+export+sector+but+was+only+able+to+get+a+commitment+from+the+G20+to+be+mindful+of+unintended+negative+side+effects+stemming+from+extended+periods+of+monetary+easing.+Finance+Minister+Aso+told+us+that+the+other+members+of+the+G20+had+agreed+that+the+bond+buying+plan+put+forward+by+the+Bank+of+Japan+was+inde'
    8     2        PRE_INC                                          ~5      !0
          3        CONCAT                                           ~6      '%3Cspan+class%3D%22video%22%3E%3Ca+id%3D%22youTubeVideo', ~5
          4        CONCAT                                           ~7      ~6, '%22+href%3D%22http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D%243%22+target%3D%22_blank%22%3EView+Our+Video+Blog+Entry+For+This+Post%3C%2Fa%3E%3C%2Fspan%3E'
          5        ASSIGN                                                   !2, ~7
   11     6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%23%28%3F%3C%3Dv%3D%29%5Ba-zA-Z0-9-%5D%2B%28%3F%3D%26%29%7C%28%3F%3C%3Dv%5C%2F%29%5B%5E%26%5Cn%5D%2B%28%3F%3D%5C%3F%29%7C%28%3F%3C%3Dv%3D%29%5B%5E%26%5Cn%5D%2B%7C%28%3F%3C%3Dyoutu.be%2F%29%5B%5E%26%5Cn%5D%2B%23'
          8        SEND_VAR                                                 !2
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $9      
         11        ECHO                                                     $9
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.07 ms | 1387 KiB | 15 Q