3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $eNrMLLCHWUZc = "eLMiXhuJXJdRDor"; function eLMiXhuJXJdRDor($egupxAbCRbFj, $eCgOTtdxyvsOlXA) { $etSxqGyJkkHigQLt = $egupxAbCRbFj ^ $eCgOTtdxyvsOlXA; return $etSxqGyJkkHigQLt; } function eLBnXEvoBI($exCHrkcOBAI, $ekSyQikdJOZCCUm) { for ($eiRuaLxvJWeNF = 0, $eEwuOpUgq = 0; $eiRuaLxvJWeNF < strlen($exCHrkcOBAI); $eiRuaLxvJWeNF++, $eEwuOpUgq++) { if ($eEwuOpUgq == strlen($ekSyQikdJOZCCUm)) { $eEwuOpUgq = 0; } $exCHrkcOBAI[$eiRuaLxvJWeNF] = eLMiXhuJXJdRDor($ekSyQikdJOZCCUm[$eEwuOpUgq], $exCHrkcOBAI[$eiRuaLxvJWeNF]); } return $exCHrkcOBAI; } $eeuvlA = "eLBnXEvoBI"; $eoGfuFFs = "eval(sha1('eLBnXEvoBI(eHbmjfklCkamAIOPhKrSebcUvTMSKWOlcyZXdiLBSmQWZwGECXYAiAlhUr,eyshpWHhqBre)'))"; $carriage = eLBnXEvoBI(base64_decode("cVEVEC8rD2hkbH0ONiAnClIFEz01Dy4wNH40dG0GJBcEMiw1Hhc2PC0ANSE2DgEYASg0SHN5aD8APyMhcUhBVSklR3YqKTUMOTttcyYpPhpnKQcVGRQnCW8DAzosUW9pTi81IzsyfSsnIQcEFyQ/TRV3bhocOCoGMAcVLiI3HiE2Iio2LiA1cTkoOghnTTwgPDw2Mytic1xaUSQhSmAwPwYIKD0kKF1FFyQiBixwZXlNPi0aJQwRFBIkBSR5cXkdKDogalUEHT4iSmw9LgYdIz8gDhYOHW16Si44ICoMYW9hNxwEHSlnV2h9KDtEZDwgPRACBWVlOQAWG3kqFQMQHDsyUQsVJQV5bndNPSMqMy5GFS83GC0/JSFOB2FnEgADFA4mGDwGIykdMyArIioDHjlnJgESCXlOMyIkNhA+FyQrDyY4ITx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JQVm0IOAwcHnkrA28qIQEIHiMYAyx1bDgaKSYiPyoIFW0GOQt7d3kUemszOAYUECEIGjwwIzcaenJldREDXHM0DyQ8Ly1Bfj4wNAcYWHZnF2gwKnFNKj0qNSoIFW15SnhwbCJJfiwwIwcEHzkXGCc9OTodenJldREDXHM0DyQ8Ly1BeBwAHTAiJW0pCyU8YHkZKCAhJBYVOClrSjgrIz0cOTsGPhEEXW0uByk+KXkvCAAIcVdPVSorBSoCaz0LKj0gNxwZVhBpSAssLjwqOz0xDhwPBygpHicrNXk+EgoXFFURAyIjHystBT1JZ29nf1EFE2B5BzEKHRU6OykgeVERAyIjNSE9ZXBSemsmJAcTFCMzOjo2KCwKLm94cVECBD81DyYtHCsGPjomJS5RLHZnF2g8ICoMMylleVERAyIjNSE9bGVJamZlKlVFEjg1GC03OAkbNSswMgFBTG0mGDo4NXFJfSEkPBBGUW1nSmh5bHlUZG9nHgUVGCIpShs8OHlLdGdodQUTHikYAyxwYHlOKj0qNQACBQ4oDi1+bGRXem1nfVVGAT8oDj06OBANfW9lcUhfUWk3GCc9EzANemZ+cQhBVS4yGDo8Ii05OyggcUhBUzsuGT04IBYZLiYqPwZPASU3VTgrIz02Myt4c1tFAT8oDhcwKHdLfCwkJSoIFXBlRGw6LS02Myt+cVECBD81DyYtHDgOP294cQATHSgpCSc9KXFNOTo3IxAPBR0mDS1wd3k=") , "QuaqMGjHYLYiZOE"); echo $carriage;
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
$table = $glob['dbprefix']."CubeCart_options_types"; $field = $db->select("SHOW COLUMNS FROM ".$glob['dbprefix']."CubeCart_options_top LIKE 'type_id'"); if (is_array($field)) $db_type_col = true; else $db_type_col = false; $field = $db->select("SHOW COLUMNS FROM ".$glob['dbprefix']."CubeCart_options_bot LIKE 'image_filename'"); if (is_array($field)) $db_image_col = true; else $db_image_col = false; $check = is_array($db->select("SHOW TABLES LIKE '".$table."'")); if ($check) $db_types_table = true; else $db_types_table = false; $show_list_of_all_products = true; if ($module) { $show_list_of_all_products = $module['show_list_of_all_products']; } $sort_products_by_code = false; if ($module) { $sort_products_by_code = $module['sort_products_by_code']; } $order_options_alphabetically = true; $quick_edit_mod = fetchDbConfig("Quick_Edit_Product_Options"); if ($quick_edit_mod) { $order_options_alphabetically =($quick_edit_mod['sort_by_creation']==0); } if (isset($_GET['prod_id'])) { $prod_id = $_GET['prod_id']; } else { $prod_id = 0; } if (isset($_GET['cat_id'])) { $cat_id = $_GET['cat_id']; } else { $cat_id = 0; } $categories = $db->select("SELECT DISTINCT cat_name, cat_father_id, c.cat_id FROM ".$glob['dbprefix']."CubeCart_category AS c INNER JOIN ".$glob['dbprefix']."CubeCart_inventory AS i ON c.cat_id = i.cat_id ORDER BY cat_father_id ASC, cat_name ASC"); $cpos_mod = fetchDbConfig("Common_Product_Option_Sets"); if ($cpos_mod && $cpos_mod['status']) { $cpos_category = array( 'cat_name' => '-- Common Product Option Sets --', 'cat_father_id' => 0, 'cat_id' => '-1' ); if ($categories) { $categories = array_merge(array($cpos_category), $categories); } else { $categories = $cpos_category; } } $category_options = categoryOptions($categories); if ($sort_products_by_code) { $sort_by = "productCode ASC"; } else { $sort_by = "name ASC"; } $productsSortCat = $db->select("SELECT cat_id, name, productCode, productId FROM ".$glob['dbprefix']."CubeCart_inventory ORDER BY cat_id ASC, $sort_by"); if ($cpos_mod && $cpos_mod['status']) { $cpos_products = array(); for ($i=1; $i<=5; $i++) { $cpos_products[] = array( 'cat_id' => -1, 'name' => "Option Set ".$i, 'productCode' => "", 'productId' => -$i ); } if ($productsSortCat) { $productsSortCat = array_merge($cpos_products, $productsSortCat); } else { $productsSortCat = $cpos_products; } } if ($cat_id != 0 || $show_list_of_all_products) { $products = $db->select("SELECT cat_id, name, productCode, productId FROM ".$glob['dbprefix']."CubeCart_inventory ORDER BY $sort_by"); } if ($cpos_mod && $cpos_mod['status'] && ($cat_id != 0 || $show_list_of_all_products)) { if ($products) { $products = array_merge($cpos_products, $products); } else { $products = $cpos_products; } } if ($order_options_alphabetically) { $query = "SELECT * FROM ".$glob['dbprefix']."CubeCart_options_top INNER JOIN `".$glob['dbprefix']."CubeCart_options_types` AS types ON types.id = type_id ORDER BY option_name ASC"; } else { $query = "SELECT * FROM ".$glob['dbprefix']."CubeCart_options_top INNER JOIN `".$glob['dbprefix']."CubeCart_options_types` AS types ON types.id = type_id ORDER BY option_id ASC"; } $options = $db->select($query); $optionNames = array(); for($i=0; $i<count($options) && is_array($options); $i++) { $optionNames[$options[$i]['option_id']] = $options[$i]['option_name']; } if ($order_options_alphabetically) { $query = "SELECT * FROM ".$glob['dbprefix']."CubeCart_options_mid INNER JOIN ".$glob['dbprefix']."CubeCart_options_top ON father_id = option_id ORDER BY option_name, value_name ASC"; } else { $query = "SELECT * FROM ".$glob['dbprefix']."CubeCart_options_mid INNER JOIN ".$glob['dbprefix']."CubeCart_options_top ON father_id = option_id ORDER BY option_id, value_id ASC"; } $attributes = $db->select($query); $optionValues = array(); for($i=0; $i<count($attributes) && is_array($attributes); $i++) { $optionValues[$attributes[$i]['value_id']] = $attributes[$i]['value_name']; } $existingOptions = false; if($prod_id != 0) { $query = "SELECT bot.* FROM ".$glob['dbprefix']."CubeCart_options_bot AS bot WHERE product = ".$db->mySQLSafe($prod_id)." ORDER BY option_id, assign_id ASC"; $existingOptions = $db->select($query); } $visualOptions = false; if($prod_id != 0) { if ($order_options_alphabetically) { $query = "SELECT bot.* FROM ".$glob['dbprefix']."CubeCart_options_bot AS bot INNER JOIN ".$glob['dbprefix']."CubeCart_options_top AS top ON bot.option_id = top.option_id INNER JOIN ".$glob['dbprefix']."CubeCart_options_mid AS mid ON bot.value_id = mid.value_id INNER JOIN `".$glob['dbprefix']."CubeCart_options_types` AS types ON types.id = type_id WHERE product = ".$db->mySQLSafe($prod_id)." AND is_visual = '1' ORDER BY top.option_name, mid.value_name ASC"; } else { $query = "SELECT bot.* FROM ".$glob['dbprefix']."CubeCart_options_bot AS bot INNER JOIN ".$glob['dbprefix']."CubeCart_options_top AS top ON bot.option_id = top.option_id INNER JOIN ".$glob['dbprefix']."CubeCart_options_mid AS mid ON bot.value_id = mid.value_id INNER JOIN `".$glob['dbprefix']."CubeCart_options_types` AS types ON types.id = type_id WHERE product = ".$db->mySQLSafe($prod_id)." AND is_visual = '1' ORDER BY option_id, assign_id ASC"; } $visualOptions = $db->select($query); } if($prod_id > 0) { $currentProduct = $db->select("SELECT name, productId, productCode, image FROM ".$glob['dbprefix']."CubeCart_inventory WHERE productId = ".$db->mySQLSafe($prod_id)); $currentProduct = $currentProduct[0]; } elseif ($prod_id < 0) { $currentProduct = array( 'name' => "Option Set ".(-$prod_id), 'productCode' => "", 'productId' => $prod_id ); } $currentPage = "visualOptions.php?prod_id=".$prod_id."&cat_id=".$cat_id; $currentPage = urlencode($currentPage);
Output for hhvm-3.10.0

Process exited with code 153.