3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = 'https://www.youtube.com/watch?v=h2v5jh9hy-Y'; $body = parse_url($body); parse_str($body['query'], $query); $video = $query['v']; echo '<br><iframe width="420" height="315" src="https://www.youtube.com/embed/' . $video . '"></iframe><br>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kdAq4
function name:  (null)
number of ops:  16
compiled vars:  !0 = $body, !1 = $query, !2 = $video
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dh2v5jh9hy-Y'
    4     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    5     5        INIT_FCALL                                               'parse_str'
          6        FETCH_DIM_R                                      ~6      !0, 'query'
          7        SEND_VAL                                                 ~6
          8        SEND_REF                                                 !1
          9        DO_ICALL                                                 
    6    10        FETCH_DIM_R                                      ~8      !1, 'v'
         11        ASSIGN                                                   !2, ~8
    8    12        CONCAT                                           ~10     '%3Cbr%3E%3Ciframe+width%3D%22420%22+height%3D%22315%22+src%3D%22https%3A%2F%2Fwww.youtube.com%2Fembed%2F', !2
         13        CONCAT                                           ~11     ~10, '%22%3E%3C%2Fiframe%3E%3Cbr%3E'
         14        ECHO                                                     ~11
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.68 ms | 1005 KiB | 15 Q