3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* $arr["my_account"]["ACH"]["ICE-1010"]["nro"] = 20; $arr["my_account"]["LK"]["AN-1011"]["nro"] = 30; $arr["i2-ACH"]["LT"]["SAE-1210"]["nro"] = 40; $arr["i2-ACH"]["ACH"]["ICE-1010"]["nro"] = 50; $arr["i2-Conn"]["CM"]["CM-1012"]["nro"] = 60; $arr["i2-Conn"]["LA"]["LA-1013"]["nro"] = 70; $arr["i2-Conn"]["LM"]["LM-1014"]["nro"] = 80; $arr["i2-Ecom"]["DW"]["DW-1015"]["nro"] = 90;*/ //ksort($arr["i2-ACH"],SORT_STRING); //print_r($arr["i2-ACH"]); /*$array = array(10,20,15,2,3,1,9,11,21); arsort($array,SORT_NUMERIC); print_r($array);*/ $tc_note = "Time: 00:02:57/177515 [ERROR] Modal Panel not expected found. Message found []"; $var2 = ""; if (strpos($tc_note,"[ERROR]") !== false && iconv_strpos($tc_note,"@",0) == 0 ) { $var2 = trim(substr($tc_note,strpos($tc_note,":")+1,strpos($tc_note,"\n")-5)); }else{ $var2 = trim(substr($tc_note,strpos($tc_note,":")+1)); } echo($var2."\n"); $var2 = substr($var2,9); echo($var2);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 36
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/Yr6hW
function name:  (null)
number of ops:  58
compiled vars:  !0 = $tc_note, !1 = $var2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   ASSIGN                                                   !0, 'Time%3A+00%3A02%3A57%2F177515%0A%5BERROR%5D+Modal+Panel+not+expected+found.+Message+found+%5B%5D'
   26     1        ASSIGN                                                   !1, ''
   27     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 '%5BERROR%5D'
          5        DO_ICALL                                         $4      
          6        TYPE_CHECK                                  1018  ~5      $4
          7      > JMPZ_EX                                          ~5      ~5, ->15
          8    >   INIT_FCALL_BY_NAME                                       'iconv_strpos'
          9        SEND_VAR_EX                                              !0
         10        SEND_VAL_EX                                              '%40'
         11        SEND_VAL_EX                                              0
         12        DO_FCALL                                      0  $6      
         13        IS_EQUAL                                         ~7      $6, 0
         14        BOOL                                             ~5      ~7
         15    > > JMPZ                                                     ~5, ->36
   28    16    >   INIT_FCALL                                               'trim'
         17        INIT_FCALL                                               'substr'
         18        SEND_VAR                                                 !0
         19        INIT_FCALL                                               'strpos'
         20        SEND_VAR                                                 !0
         21        SEND_VAL                                                 '%3A'
         22        DO_ICALL                                         $8      
         23        ADD                                              ~9      $8, 1
         24        SEND_VAL                                                 ~9
         25        INIT_FCALL                                               'strpos'
         26        SEND_VAR                                                 !0
         27        SEND_VAL                                                 '%0A'
         28        DO_ICALL                                         $10     
         29        SUB                                              ~11     $10, 5
         30        SEND_VAL                                                 ~11
         31        DO_ICALL                                         $12     
         32        SEND_VAR                                                 $12
         33        DO_ICALL                                         $13     
         34        ASSIGN                                                   !1, $13
         35      > JMP                                                      ->49
   30    36    >   INIT_FCALL                                               'trim'
         37        INIT_FCALL                                               'substr'
         38        SEND_VAR                                                 !0
         39        INIT_FCALL                                               'strpos'
         40        SEND_VAR                                                 !0
         41        SEND_VAL                                                 '%3A'
         42        DO_ICALL                                         $15     
         43        ADD                                              ~16     $15, 1
         44        SEND_VAL                                                 ~16
         45        DO_ICALL                                         $17     
         46        SEND_VAR                                                 $17
         47        DO_ICALL                                         $18     
         48        ASSIGN                                                   !1, $18
   34    49    >   CONCAT                                           ~20     !1, '%0A'
         50        ECHO                                                     ~20
   36    51        INIT_FCALL                                               'substr'
         52        SEND_VAR                                                 !1
         53        SEND_VAL                                                 9
         54        DO_ICALL                                         $21     
         55        ASSIGN                                                   !1, $21
   37    56        ECHO                                                     !1
         57      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.32 ms | 1392 KiB | 19 Q