3v4l.org

run code in 300+ PHP versions simultaneously
<?php $elapsed_time = 324; $errorThrown = "Internal Server Error"; $errors = array( "No user" => "No user, you can ignore this error message", "Request-URI Too Long" => "User was logged out but still submitted 'Get Report', you can ignore this error message", "Internal Server Error" => "Elapsed time of run: ".$elapsed_time."\nIf elapsed time is over 300 seconds then too many results were generated.\nCheck to see if the user didn't enter enough parameters, if so ignore this error message." ); echo $errors[$errorThrown]; echo array_key_exists("No User",$errors); echo array_key_exists("No user",$errors);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8ceWp
function name:  (null)
number of ops:  15
compiled vars:  !0 = $elapsed_time, !1 = $errorThrown, !2 = $errors
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 324
    4     1        ASSIGN                                                   !1, 'Internal+Server+Error'
    7     2        INIT_ARRAY                                       ~5      'No+user%2C+you+can+ignore+this+error+message', 'No+user'
    8     3        ADD_ARRAY_ELEMENT                                ~5      'User+was+logged+out+but+still+submitted+%27Get+Report%27%2C+you+can+ignore+this+error+message', 'Request-URI+Too+Long'
    9     4        CONCAT                                           ~6      'Elapsed+time+of+run%3A+', !0
          5        CONCAT                                           ~7      ~6, '%0AIf+elapsed+time+is+over+300+seconds+then+too+many+results+were+generated.%0ACheck+to+see+if+the+user+didn%27t+enter+enough+parameters%2C+if+so+ignore+this+error+message.'
          6        ADD_ARRAY_ELEMENT                                ~5      ~7, 'Internal+Server+Error'
    6     7        ASSIGN                                                   !2, ~5
   12     8        FETCH_DIM_R                                      ~9      !2, !1
          9        ECHO                                                     ~9
   13    10        ARRAY_KEY_EXISTS                                 ~10     'No+User', !2
         11        ECHO                                                     ~10
   14    12        ARRAY_KEY_EXISTS                                 ~11     'No+user', !2
         13        ECHO                                                     ~11
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.76 ms | 1393 KiB | 13 Q