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:44/164241123123 [ERROR] Element isn't present. Form [INCOME FORM] - Element [TITLE INCOME] - id/name/xpath [.//span[.='Income']] [ERROR] Element label don't exist. Form [INCOME FORM] - Element [TITLE INCOME] - Label Found [] - Label Expected [Income] [ERROR] Modal Panel not expected found. Message found [SSN is already registered to another customer. Please verify.]"; $var2 = ""; if (strpos($tc_note,"[ERROR]") !== false && iconv_strpos($tc_note,"@") == 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 = 14
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 35
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/IcqoN
function name:  (null)
number of ops:  57
compiled vars:  !0 = $tc_note, !1 = $var2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   ASSIGN                                                   !0, '%40Time%3A+00%3A02%3A44%2F164241123123%0A%5BERROR%5D+Element+isn%27t+present.+Form+%5BINCOME+FORM%5D+-+Element+%5BTITLE+INCOME%5D+-+id%2Fname%2Fxpath+%5B.%2F%2Fspan%5B.%3D%27Income%27%5D%5D%0A%5BERROR%5D+Element+label+don%27t+exist.+Form+%5BINCOME+FORM%5D+-+Element+%5BTITLE+INCOME%5D+-+Label+Found+%5B%5D+-+Label+Expected+%5BIncome%5D%0A%5BERROR%5D+Modal+Panel+not+expected+found.+Message+found+%5BSSN+is+already+registered+to+another+customer.+Please+verify.%5D'
   28     1        ASSIGN                                                   !1, ''
   29     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, ->14
          8    >   INIT_FCALL_BY_NAME                                       'iconv_strpos'
          9        SEND_VAR_EX                                              !0
         10        SEND_VAL_EX                                              '%40'
         11        DO_FCALL                                      0  $6      
         12        IS_EQUAL                                         ~7      $6, 0
         13        BOOL                                             ~5      ~7
         14    > > JMPZ                                                     ~5, ->35
   30    15    >   INIT_FCALL                                               'trim'
         16        INIT_FCALL                                               'substr'
         17        SEND_VAR                                                 !0
         18        INIT_FCALL                                               'strpos'
         19        SEND_VAR                                                 !0
         20        SEND_VAL                                                 '%3A'
         21        DO_ICALL                                         $8      
         22        ADD                                              ~9      $8, 1
         23        SEND_VAL                                                 ~9
         24        INIT_FCALL                                               'strpos'
         25        SEND_VAR                                                 !0
         26        SEND_VAL                                                 '%0A'
         27        DO_ICALL                                         $10     
         28        SUB                                              ~11     $10, 5
         29        SEND_VAL                                                 ~11
         30        DO_ICALL                                         $12     
         31        SEND_VAR                                                 $12
         32        DO_ICALL                                         $13     
         33        ASSIGN                                                   !1, $13
         34      > JMP                                                      ->48
   32    35    >   INIT_FCALL                                               'trim'
         36        INIT_FCALL                                               'substr'
         37        SEND_VAR                                                 !0
         38        INIT_FCALL                                               'strpos'
         39        SEND_VAR                                                 !0
         40        SEND_VAL                                                 '%3A'
         41        DO_ICALL                                         $15     
         42        ADD                                              ~16     $15, 1
         43        SEND_VAL                                                 ~16
         44        DO_ICALL                                         $17     
         45        SEND_VAR                                                 $17
         46        DO_ICALL                                         $18     
         47        ASSIGN                                                   !1, $18
   36    48    >   CONCAT                                           ~20     !1, '%0A'
         49        ECHO                                                     ~20
   38    50        INIT_FCALL                                               'substr'
         51        SEND_VAR                                                 !1
         52        SEND_VAL                                                 9
         53        DO_ICALL                                         $21     
         54        ASSIGN                                                   !1, $21
   39    55        ECHO                                                     !1
         56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.9 ms | 1400 KiB | 19 Q