3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); function handle(int $severity, string $message, string $file, int $line) : bool{ if((error_reporting() & $severity) !== 0){ throw new \ErrorException($message, 0, $severity, $file, $line); } return true; //stfu operator } set_error_handler('handle'); function getPlugin(string $plugin) : bool{ return false; } $data = []; $array = []; if(isset($array[$data]) or getPlugin($data)){ }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 11
filename:       /in/EpP2L
function name:  (null)
number of ops:  13
compiled vars:  !0 = $data, !1 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                                   'set_error_handler'
          1        SEND_VAL                                                     'handle'
          2        DO_ICALL                                                     
   17     3        ASSIGN                                                       !0, <array>
   18     4        ASSIGN                                                       !1, <array>
   19     5        ISSET_ISEMPTY_DIM_OBJ                             0  ~5      !1, !0
          6      > JMPNZ_EX                                             ~5      ~5, ->11
          7    >   INIT_FCALL                                                   'getplugin'
          8        SEND_VAR                                                     !0
          9        DO_FCALL                                          0  $6      
         10        BOOL                                                 ~5      $6
         11    > > JMPZ                                                         ~5, ->12
   21    12    > > RETURN                                                       1

Function handle:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EpP2L
function name:  handle
number of ops:  20
compiled vars:  !0 = $severity, !1 = $message, !2 = $file, !3 = $line
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
          3        RECV                                                 !3      
    6     4        INIT_FCALL                                                   'error_reporting'
          5        DO_ICALL                                             $4      
          6        BW_AND                                               ~5      !0, $4
          7        IS_NOT_IDENTICAL                                             ~5, 0
          8      > JMPZ                                                         ~6, ->17
    7     9    >   NEW                                                  $7      'ErrorException'
         10        SEND_VAR_EX                                                  !1
         11        SEND_VAL_EX                                                  0
         12        SEND_VAR_EX                                                  !0
         13        SEND_VAR_EX                                                  !2
         14        SEND_VAR_EX                                                  !3
         15        DO_FCALL                                          0          
         16      > THROW                                             0          $7
   10    17    > > RETURN                                                       <true>
   11    18*       VERIFY_RETURN_TYPE                                           
         19*     > RETURN                                                       null

End of function handle

Function getplugin:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EpP2L
function name:  getPlugin
number of ops:  4
compiled vars:  !0 = $plugin
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   RECV                                                 !0      
   15     1      > RETURN                                                       <false>
   16     2*       VERIFY_RETURN_TYPE                                           
          3*     > RETURN                                                       null

End of function getplugin

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
178.56 ms | 1455 KiB | 16 Q