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) { $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 = 43) Position 1 = 8, Position 2 = 28
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dtSRm
function name:  (null)
number of ops:  50
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          $4
          7      > JMPZ                                                     ~5, ->28
   30     8    >   INIT_FCALL                                               'trim'
          9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !0
         11        INIT_FCALL                                               'strpos'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 '%3A'
         14        DO_ICALL                                         $6      
         15        ADD                                              ~7      $6, 1
         16        SEND_VAL                                                 ~7
         17        INIT_FCALL                                               'strpos'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 '%0A'
         20        DO_ICALL                                         $8      
         21        SUB                                              ~9      $8, 5
         22        SEND_VAL                                                 ~9
         23        DO_ICALL                                         $10     
         24        SEND_VAR                                                 $10
         25        DO_ICALL                                         $11     
         26        ASSIGN                                                   !1, $11
         27      > JMP                                                      ->41
   32    28    >   INIT_FCALL                                               'trim'
         29        INIT_FCALL                                               'substr'
         30        SEND_VAR                                                 !0
         31        INIT_FCALL                                               'strpos'
         32        SEND_VAR                                                 !0
         33        SEND_VAL                                                 '%3A'
         34        DO_ICALL                                         $13     
         35        ADD                                              ~14     $13, 1
         36        SEND_VAL                                                 ~14
         37        DO_ICALL                                         $15     
         38        SEND_VAR                                                 $15
         39        DO_ICALL                                         $16     
         40        ASSIGN                                                   !1, $16
   36    41    >   CONCAT                                           ~18     !1, '%0A'
         42        ECHO                                                     ~18
   38    43        INIT_FCALL                                               'substr'
         44        SEND_VAR                                                 !1
         45        SEND_VAL                                                 9
         46        DO_ICALL                                         $19     
         47        ASSIGN                                                   !1, $19
   39    48        ECHO                                                     !1
         49      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.05 ms | 1400 KiB | 19 Q