3v4l.org

run code in 300+ PHP versions simultaneously
<?php $movies = array(); function find_movie($tag) { // SELECT MOVIE BY %TAG% $movies[] = $tag; return '<a href="'.$tag.'">WATCH MOVIE</a>'; } echo find_movie('cars');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2itAc
function name:  (null)
number of ops:  6
compiled vars:  !0 = $movies
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'find_movie'
          2        SEND_VAL                                                 'cars'
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function find_movie:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2itAc
function name:  find_movie
number of ops:  7
compiled vars:  !0 = $tag, !1 = $movies
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    8     1        ASSIGN_DIM                                               !1
          2        OP_DATA                                                  !0
   10     3        CONCAT                                           ~3      '%3Ca+href%3D%22', !0
          4        CONCAT                                           ~4      ~3, '%22%3EWATCH+MOVIE%3C%2Fa%3E'
          5      > RETURN                                                   ~4
   12     6*     > RETURN                                                   null

End of function find_movie

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.73 ms | 1397 KiB | 14 Q