3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query_string = 'foo=' . urlencode($foo) . '&bar=' . urlencode($bar); echo '<a href="mycgi?' . htmlentities($query_string) . '">'; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OagXo
function name:  (null)
number of ops:  17
compiled vars:  !0 = $query_string, !1 = $foo, !2 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'urlencode'
          1        SEND_VAR                                                 !1
          2        DO_ICALL                                         $3      
          3        CONCAT                                           ~4      'foo%3D', $3
          4        CONCAT                                           ~5      ~4, '%26bar%3D'
          5        INIT_FCALL                                               'urlencode'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8        CONCAT                                           ~7      ~5, $6
          9        ASSIGN                                                   !0, ~7
    3    10        INIT_FCALL                                               'htmlentities'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $9      
         13        CONCAT                                           ~10     '%3Ca+href%3D%22mycgi%3F', $9
         14        CONCAT                                           ~11     ~10, '%22%3E'
         15        ECHO                                                     ~11
    4    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.46 ms | 1394 KiB | 17 Q