3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['v'] = 'return new Exception("ok");'; function f() { return eval($_GET['v']); } throw f();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/U15iB
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $0      '_GET'
          1        ASSIGN_DIM                                               $0, 'v'
          2        OP_DATA                                                  'return+new+Exception%28%22ok%22%29%3B'
    9     3        INIT_FCALL                                               'f'
          4        DO_FCALL                                      0  $2      
          5      > THROW                                         0          $2
          6*     > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U15iB
function name:  f
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_R                      global              ~0      '_GET'
          1        FETCH_DIM_R                                      ~1      ~0, 'v'
          2        INCLUDE_OR_EVAL                                  $2      ~1, EVAL
          3      > RETURN                                                   $2
    7     4*     > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.38 ms | 1397 KiB | 14 Q