3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class DemoFile { public function codeToMessage($code): string { switch ($code) { case \UPLOAD_ERR_INI_SIZE: $message = 'Die Dateigr&ouml;&szlig;e der gew&auml;hlten Datei &uuml;berschreitet die upload_max_filesize Einstellung der php.ini'; break; case \UPLOAD_ERR_FORM_SIZE: $message = 'Die Dateigr&ouml;&szlig;e der gew&auml;hlten Datei &uuml;berschreitet die laut Formular erlaubte MAX_FILE_SIZE'; break; case \UPLOAD_ERR_PARTIAL: $message = 'Die Datei wurde nur teilweise hochgeladen'; break; case \UPLOAD_ERR_NO_FILE: $message = 'Es wurde keine Datei ausgew&auml;hlt'; break; case \UPLOAD_ERR_NO_TMP_DIR: $message = 'Tempor&auml;res Verzeichnis fehlt'; break; case \UPLOAD_ERR_CANT_WRITE: $message = 'Datei konnte nicht zwischengespeichert werden'; break; case \UPLOAD_ERR_EXTENSION: $message = 'Datei-Upload durch Plugin gestoppt'; break; default: $message = 'Unbekannter Fehler'; break; } return $message; } } $d = new DemoFile(); var_dump($d->codeToMessage("1"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NfY3V
function name:  (null)
number of ops:  10
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   39     0  E >   NEW                                              $1      'DemoFile'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   40     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'codeToMessage'
          5        SEND_VAL_EX                                              '1'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class DemoFile:
Function codetomessage:
Finding entry points
Branch analysis from position: 0
9 jumps found. (Code = 187) Position 1 = 17, Position 2 = 19, Position 3 = 21, Position 4 = 23, Position 5 = 25, Position 6 = 27, Position 7 = 29, Position 8 = 31, Position 9 = 2
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 19
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 21
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 23
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 25
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 27
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 29
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 29
Branch analysis from position: 27
Branch analysis from position: 25
Branch analysis from position: 23
Branch analysis from position: 21
Branch analysis from position: 19
Branch analysis from position: 17
filename:       /in/NfY3V
function name:  codeToMessage
number of ops:  37
compiled vars:  !0 = $code, !1 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1      > SWITCH_LONG                                              !0, [ 1:->17, 2:->19, 3:->21, 4:->23, 6:->25, 7:->27, 8:->29, ], ->31
          2    >   IS_EQUAL                                                 !0, 1
          3      > JMPNZ                                                    ~2, ->17
          4    >   IS_EQUAL                                                 !0, 2
          5      > JMPNZ                                                    ~2, ->19
          6    >   IS_EQUAL                                                 !0, 3
          7      > JMPNZ                                                    ~2, ->21
          8    >   IS_EQUAL                                                 !0, 4
          9      > JMPNZ                                                    ~2, ->23
         10    >   IS_EQUAL                                                 !0, 6
         11      > JMPNZ                                                    ~2, ->25
         12    >   IS_EQUAL                                                 !0, 7
         13      > JMPNZ                                                    ~2, ->27
         14    >   IS_EQUAL                                                 !0, 8
         15      > JMPNZ                                                    ~2, ->29
         16    > > JMP                                                      ->31
    9    17    >   ASSIGN                                                   !1, 'Die+Dateigr%26ouml%3B%26szlig%3Be+der+gew%26auml%3Bhlten+Datei+%26uuml%3Bberschreitet+die+upload_max_filesize+Einstellung+der+php.ini'
   10    18      > JMP                                                      ->33
   12    19    >   ASSIGN                                                   !1, 'Die+Dateigr%26ouml%3B%26szlig%3Be+der+gew%26auml%3Bhlten+Datei+%26uuml%3Bberschreitet+die+laut+Formular+erlaubte+MAX_FILE_SIZE'
   13    20      > JMP                                                      ->33
   15    21    >   ASSIGN                                                   !1, 'Die+Datei+wurde+nur+teilweise+hochgeladen'
   16    22      > JMP                                                      ->33
   18    23    >   ASSIGN                                                   !1, 'Es+wurde+keine+Datei+ausgew%26auml%3Bhlt'
   19    24      > JMP                                                      ->33
   21    25    >   ASSIGN                                                   !1, 'Tempor%26auml%3Bres+Verzeichnis+fehlt'
   22    26      > JMP                                                      ->33
   24    27    >   ASSIGN                                                   !1, 'Datei+konnte+nicht+zwischengespeichert+werden'
   25    28      > JMP                                                      ->33
   27    29    >   ASSIGN                                                   !1, 'Datei-Upload+durch+Plugin+gestoppt'
   28    30      > JMP                                                      ->33
   31    31    >   ASSIGN                                                   !1, 'Unbekannter+Fehler'
   32    32      > JMP                                                      ->33
   35    33    >   VERIFY_RETURN_TYPE                                       !1
         34      > RETURN                                                   !1
   36    35*       VERIFY_RETURN_TYPE                                       
         36*     > RETURN                                                   null

End of function codetomessage

End of class DemoFile.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.55 ms | 1431 KiB | 14 Q