3v4l.org

run code in 300+ PHP versions simultaneously
<?php die(json_encode(array("alert('wrong request " . $method . "')"), JSON_FORCE_OBJECT));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/kvLMQ
function name:  (null)
number of ops:  9
compiled vars:  !0 = $method
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_encode'
          1        CONCAT                                           ~1      'alert%28%27wrong+request+', !0
          2        CONCAT                                           ~2      ~1, '%27%29'
          3        INIT_ARRAY                                       ~3      ~2
          4        SEND_VAL                                                 ~3
          5        SEND_VAL                                                 16
          6        DO_ICALL                                         $4      
          7      > EXIT                                                     $4
          8*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.1 ms | 1393 KiB | 15 Q