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);
Output for 5.5.24 - 5.5.34, 5.6.8 - 5.6.20, 5.6.28, 7.0.0 - 7.0.5, 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
00:02:57/177515 [ERROR] Modal Panel not expected found. Message found [] 177515 [ERROR] Modal Panel not expected found. Message found []
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 00:02:57/177515 [ERROR] Modal Panel not expected found. Message found [] 177515 [ERROR] Modal Panel not expected found. Message found []
Output for 7.0.6, 7.3.32 - 7.3.33, 7.4.33, 8.0.13
Fatal error: Uncaught Error: Call to undefined function iconv_strpos() in /in/lv4TD:27 Stack trace: #0 {main} thrown in /in/lv4TD on line 27
Process exited with code 255.
Output for 5.5.35, 5.6.21
Fatal error: Call to undefined function iconv_strpos() in /in/lv4TD on line 27
Process exited with code 255.

preferences:
132.07 ms | 401 KiB | 182 Q