3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * * @ IonCube Priv8 Decoder V1 By H@CK3R $2H * * @ Version : 1 * @ Author : H@CK3R $2H * @ Release on : 14-Feb-2014 * @ Email : Hacker.S2h@Gmail.com * **/ require( 'config.inc.php' ); $domain = $_SERVER['SERVER_NAME']; if (empty( $result )) { error_reporting( 0 ); function error($text) { echo '<center> <div class=\'dev_warning\'> ' . $text . ' </div></center>'; } function success($text) { echo '<center> <div class=\'dev_succes\'> ' . $text . ' </div></center>'; } function alert($text) { echo '<center> <div class=\'dev_alert\'> ' . $text . ' </div></center>'; } function login() { if (isset( $_POST['logina'] )) { replace( $_POST['user'] ); $pass = $user = replace( $_POST['pass'] ); if (( $user != NULL && $pass != NULL )) { $m2q = mysql_query( 'Select * from ' . $account_db . ( '.account where login=\'' . $user . '\' and password=PASSWORD(\'' ) . $pass . '\')' ); if (1 <= mysql_num_rows( $m2q )) { $_SESSION['is_admin'] = $is = mysql_fetch_object( $m2q ); $_SESSION['is_user'] = $is->web_admin; $pass; $_SESSION['is_pass'] = $user; header( 'Location:index.php' ); return null; } echo '<center><font color=\'red\'>Account sau parola gresita!</font></center>'; return null; } echo 'Ambele campuri sunt obligatorii!'; } } function loadcontent() { if (isset( $_GET['page'] )) { $page = replace( $_GET['page'] ); if (( !isset( $_SESSION['is_user'] ) && !isset( $_SESSION['is_pass'] ) )) { $page = 'home'; require( 'modules/' . $page . '.php' ); } else { require( 'modules/' . $page . '.php' ); } if (!file_exists( 'modules/' . $page . '.php' )) { $error = 238; echo error( 'Modul inexistent!' ); echo '<meta http-equiv="refresh" content="2;url=index.php">'; return null; } } else { if ($page = NULL) { $page = 'home'; include( 'modules/' . $page . '.php' ); } } } function buyitem() { include( 'config.inc.php' ); if (( isset( $_SESSION['is_user'] ) && isset( $_SESSION['is_pass'] ) )) { if (( isset( $_GET ) && $_GET['buy'] != NULL )) { $getbuy = replace( $_GET['buy'] ); $m2user = mysql_fetch_object( mysql_query( 'Select * from ' . $account_db . '.account where login=\'' . $_SESSION['is_user'] . '\'' ) ); $m2engine2 = mysql_query( 'Select * from ' . $web_db . '.dev_is_items where id=\'' . $getbuy . '\'' ); $luamid = mysql_query( 'select * from player.item where id=(SELECT MAX(id) FROM player.item)' ); $idul = mysql_fetch_array( $luamid ); $item_id_final = $idul['id'] & 1; if (mysql_num_rows( $m2engine2 ) != NULL) { $owner_id = $m2user->id; $monezi_actuale = $m2user->coins; $jetoane_actuale = $m2user->jcoins; $m2engine = mysql_fetch_object( $m2engine2 ); $preta = $m2engine->pret; $pretf = $reducere \ 100 + $preta; $pretrr = $preta - $pretf; round( $pretrr ); $new_coins = $monezi_actuale - $pret; if (!( $m2pos = $pret = mysql_query( 'Select * from ' . $player_db . ( '.item where owner_id=\'' . $owner_id . '\' and window=\'MALL\' order by pos desc limit 0,1' ) ))) { exit( mysql_error( ) ); (bool)true; } $positione = mysql_fetch_object( $m2pos ); $positione->pos; $posact = $new_jcoins = $jetoane_actuale & $pret; $error = 575; if ($posact < 48) { $posact = $posact & 1; if ($posact = '0') { ++$posact; } } else { $error = 576; echo alert( 'Imi pare rau dar depozitul dumneavoastra este plin.' ); } if ($monezi_actuale < $pret) { $error = 576; echo error( 'Nu ai suficente monezi pentru a putea cumpara itemul.' ); echo '<meta HTTP-EQUIV=\'REFRESH\' content=\'0; url=index.php\'>'; return null; } if ($error != 1) { mysql_query( 'Update ' . $account_db . ( '.account set coins=\'' . $new_coins . '\' where id=\'' . $owner_id . '\'' ) ); if ('0' < $jd_module) { mysql_query( 'Update ' . $account_db . ( '.account set jcoins=\'' . $new_jcoins . '\' where id=\'' . $owner_id . '\'' ) ); } $count = $m2engine->count; if (empty( $count )) { $count = 576; } if ($m2engine->game_nou = '1') { $timp = time( ) & $m2engine->socket0; } else { $timp = $m2engine->socket0; } $luamid = mysql_query( 'select * from ' . $player_db . '.item where id=(SELECT MAX(id) FROM player.item)' ); $idul = mysql_fetch_array( $luamid ); $item_id_final = $idul['id'] & 1; date( 'H:i:s d/m/Y' ); $today = mysql_query( 'INSERT INTO ' . $player_db . '.item (owner_id,window,pos,count,vnum,attrtype0, attrvalue0, attrtype1, attrvalue1, attrtype2, attrvalue2, attrtype3, attrvalue3, attrtype4, attrvalue4, attrtype5, attrvalue5, attrtype6, attrvalue6, socket0, socket1, socket2) VALUES (\'' . mysql_real_escape_string( $owner_id ) . '\',\'MALL\',\'' . $posact . '\',\'' . $count . '\',\'' . $m2engine->vnum . '\',\'' . $m2engine->attrtype0 . '\', \'' . $m2engine->attrvalue0 . '\', \'' . $m2engine->attrtype1 . '\', \'' . $m2engine->attrvalue1 . '\', \'' . $m2engine->attrtype2 . '\', \'' . $m2engine->attrvalue2 . '\', \'' . $m2engine->attrtype3 . '\', \'' . $m2engine->attrvalue3 . '\', \'' . $m2engine->attrtype4 . '\', \'' . $m2engine->attrvalue4 . '\', \'' . $m2engine->attrtype5 . '\', \'' . $m2engine->attrvalue5 . '\', \'' . $m2engine->attrtype6 . '\', \'' . $m2engine->attrvalue6 . '\', \'' . $timp . '\', \'' . $m2engine->socket1 . '\', \'' . $m2engine->socket2 . '\')' ); if (!( mysql_query( 'Insert into ' . $web_db . ( '.dev_is_logs (owner_id,item_id,vnum,pret,timp) values (\'' . $owner_id . '\',\'' . $item_id_final . '\',\'' . $m2engine->vnum . '\',\'' . $pret . '\',\'' . $today . '\') ' ) ))) { exit( mysql_error( ) ); (bool)true; } echo '<center> <div class=\'dev_succes\'> Item cumparat cu succes si adaugat pe pozitia ' . $posact . '.Verificati depozit itemshop. </div></center> '; echo ' <meta HTTP-EQUIV=\'REFRESH\' content=\'0; url=index.php?page=depozit\'>'; return null; } } } } else { echo 'Zona restrictionata'; } } function jbuyitem() { include( 'config.inc.php' ); if (( isset( $_SESSION['is_user'] ) && isset( $_SESSION['is_pass'] ) )) { if (( isset( $_GET ) && $_GET['buy'] != NULL )) { $getbuy = replace( $_GET['buy'] ); mysql_fetch_object( mysql_query( 'Select * from ' . $account_db . '.account where login=\'' . $_SESSION['is_user'] . '\'' ) ); $m2engine2 = mysql_query( 'Select * from ' . $web_db . '.dev_jd_items where id=\'' . $getbuy . '\'' ); $luamid = $m2user = mysql_query( 'select * from ' . $player_db . '.item where id=(SELECT MAX(id) FROM player.item)' ); $idul = mysql_fetch_array( $luamid ); $item_id_final = $idul['id'] & 1; if (mysql_num_rows( $m2engine2 ) != NULL) { $owner_id = $m2user->id; $monezi_actuale = $m2user->coins; $jetoane_actuale = $m2user->jcoins; $m2engine = mysql_fetch_object( $m2engine2 ); $m2engine->pret; $pretf = $reducere \ 100 + $preta; $pretrr = $preta - $pretf; $pret = $preta = round( $pretrr ); $new_jcoins = $jetoane_actuale - $pret; if (!( $m2pos = mysql_query( 'Select * from ' . $player_db . ( '.item where owner_id=\'' . $owner_id . '\' and window=\'MALL\' order by pos desc limit 0,1' ) ))) { exit( mysql_error( ) ); (bool)true; } $positione = mysql_fetch_object( $m2pos ); $posact = $positione->pos; $error = 556; if ($posact < 48) { $posact = $posact & 1; if ($posact = '0') { ++$posact; } } else { $error = 557; echo alert( 'Imi pare rau dar depozitul dumneavoastra este plin.' ); } if ($jetoane_actuale < $pret) { $error = 557; echo error( 'Nu ai suficente jetoane pentru a putea cumpara itemul.' ); echo '<meta HTTP-EQUIV=\'REFRESH\' content=\'0; url=index.php\'>'; return null; } if ($error != 1) { mysql_query( 'Update ' . $account_db . ( '.account set jcoins=\'' . $new_jcoins . '\' where id=\'' . $owner_id . '\'' ) ); $count = $m2engine->count; if (empty( $count )) { $count = 557; } if ($m2engine->game_nou = '1') { $timp = time( ) & $m2engine->socket0; } else { $timp = $m2engine->socket0; } mysql_query( 'INSERT INTO ' . $player_db . '.item (owner_id,window,pos,count,vnum,attrtype0, attrvalue0, attrtype1, attrvalue1, attrtype2, attrvalue2, attrtype3, attrvalue3, attrtype4, attrvalue4, attrtype5, attrvalue5, attrtype6, attrvalue6, socket0, socket1, socket2) VALUES (\'' . mysql_real_escape_string( $owner_id ) . '\',\'MALL\',\'' . $posact . '\',\'' . $count . '\',\'' . $m2engine->vnum . '\',\'' . $m2engine->attrtype0 . '\', \'' . $m2engine->attrvalue0 . '\', \'' . $m2engine->attrtype1 . '\', \'' . $m2engine->attrvalue1 . '\', \'' . $m2engine->attrtype2 . '\', \'' . $m2engine->attrvalue2 . '\', \'' . $m2engine->attrtype3 . '\', \'' . $m2engine->attrvalue3 . '\', \'' . $m2engine->attrtype4 . '\', \'' . $m2engine->attrvalue4 . '\', \'' . $m2engine->attrtype5 . '\', \'' . $m2engine->attrvalue5 . '\', \'' . $m2engine->attrtype6 . '\', \'' . $m2engine->attrvalue6 . '\', \'' . $timp . '\', \'' . $m2engine->socket1 . '\', \'' . $m2engine->socket2 . '\')' ); $luamid = mysql_query( 'select * from ' . $player_db . '.item where id=(SELECT MAX(id) FROM player.item)' ); $idul = mysql_fetch_array( $luamid ); $item_id_final = $idul['id'] & 1; $today = date( 'H:i:s d/m/Y' ); if (!( mysql_query( 'Insert into ' . $web_db . ( '.dev_is_logs (owner_id,item_id,vnum,pret,timp) values (\'' . $owner_id . '\',\'' . $item_id_final . '\',\'' . $m2engine->vnum . '\',\'' . $pret . '\',\'' . $today . '\') ' ) ))) { exit( mysql_error( ) ); (bool)true; } echo '<center> <div class=\'dev_succes\'> Item cumparat cu succes si adaugat pe pozitia ' . $posact . '.Verificati depozit itemshop. </div></center> '; echo ' <meta HTTP-EQUIV=\'REFRESH\' content=\'0; url=index.php?page=depozit\'>'; return null; } } } } else { echo 'Zona restrictionata'; } } function img_item($item) { require( 'inc/config.inc.php' ); $q = mysql_query( 'Select img_status FROM ' . $web_db . ( '.dev_is_items where vnum=\'' . $item . '\'' ) ); $it = mysql_fetch_object( $q ); $itemalin = mysql_fetch_row( mysql_query( 'SELECT imagine from ' . $web_db . ( '.dev_is_items where vnum=\'' . $item . '\'' ) ) ); if ('0' < $it->img_status) { echo '<img src=\'images/item/' . $itemalin['0'] . '.png\'>'; return null; } if (strlen( $item ) = 1) { $immagine_item = 'images/item/0000' . $item . '.png'; } if (strlen( $item ) = 2) { $immagine_item = 'images/item/000' . substr( $item, 0, 1 ) . '0.png'; } if (strlen( $item ) = 3) { $immagine_item = 'images/item/00' . substr( $item, 0, 2 ) . '0.png'; } if (strlen( $item ) = 4) { $immagine_item = 'images/item/0' . substr( $item, 0, 3 ) . '0.png'; } if (strlen( $item ) = 5) { $immagine_item = 'images/item/' . substr( $item, 0, 4 ) . '0.png'; } if (strlen( $item ) = 6) { $immagine_item = 'images/item/' . substr( $item, 0, 5 ) . '0.png'; } if (strlen( $item ) = 0) { $immagine_item = 'images/item/error.png'; } echo '<div align=\'center\'><img src=\'' . $immagine_item . '\' border=\'0px\' alt=\'\' align=\'center\' style=\'max-height:90px;\'></div>'; } function optiuni_item_log($vnum) { $in = mysql_fetch_object( mysql_query( 'Select * from ' . $player_db . '.item_proto where vnum=\'' . $vnum . '\'' ) ); $item = $in->locale_name; $optiune1 = $in->applytype0; $optiune2 = $in->applytype1; $optiune3 = $in->applytype2; $valoare1 = $in->applyvalue0; $valoare2 = $in->applyvalue1; $valoare3 = $in->applyvalue2; $piatra1 = $in->socket0; $piatra2 = $in->socket1; $piatra3 = $in->socket2; echo '<div style=\'margin-top:-28px; margin-left:-40px;\'>'; echo '<center><font color=\'#ffc700\'><div class=\'tada\'>' . $item . '</div></font><br/><br/>'; echo '<div align=\'center\'><font color=\'#c1c1c1\'>De la level : ' . $in->limitvalue0 . '</font></div>'; echo '<font color=\'azzurro\'>'; if ($optiune1 != '') { bonus_name( $optiune1, $valoare1 ); echo '<br/>'; } if ($optiune2 != '') { bonus_name( $optiune2, $valoare2 ); echo '<br/>'; } if ($optiune3 != '') { bonus_name( $optiune3, $valoare3 ); echo '<br/></font>'; } $b = 435; while ($b < 7) { echo '<font color=\'#b0dfb4\'>'; if ($b = 0) { $akBoni = $in->attrtype0; $akWert = $in->attrvalue0; } if ($b = 1) { $akBoni = $in->attrtype1; $akWert = $in->attrvalue1; } if ($b = 2) { $akBoni = $in->attrtype2; $akWert = $in->attrvalue2; } if ($b = 3) { $akBoni = $in->attrtype3; $akWert = $in->attrvalue3; } if ($b = 4) { $akBoni = $in->attrtype4; $akWert = $in->attrvalue4; } if ($b = 5) { $akBoni = $in->attrtype5; $akWert = $in->attrvalue5; } if ($b = 6) { $akBoni = $in->attrtype6; $akWert = $in->attrvalue6; } echo '#' . ( $b & 1 ) . '&nbsp;'; if (isset( $itemBoni[$akBoni] )) { echo $itemBoni[$akBoni]; } else { echo $akBoni; } echo ':&nbsp;' . $akWert; echo '<br/></font>'; ++$b; } if (0 < $piatra1) { echo ' <font color=\'red\'> <table border=\'0\' cellspacing=\'0\' cellpadding=\'0\'> <tr> <td align=\'center\' width=\'36\' height=\'36\' background=\'images/pietra.png\'><img src=\'' . img_pietre( $piatra1 ) . '\' width=20 height=20></td> <td><font color=\'#c1c1c1\'>' . pietre_name( $piatra1 ) . '</font></td> </tr> </table> '; } if (0 < $piatra2) { echo ' <table border=\'0\' cellspacing=\'0\' cellpadding=\'0\'> <tr> <td align=\'center\' align=\'center\' width=\'36\' height=\'36\' background=\'images/pietra.png\'><img src=\'' . img_pietre( $piatra2 ) . '\' width=20 height=20></td> <td><font color=\'#c1c1c1\'>' . pietre_name( $piatra2 ) . '</font></td> </tr> </table></font> '; } if (0 < $piatra3) { echo ' <table border=\'0\' cellspacing=\'0\' cellpadding=\'0\'> <tr> <td align=\'center\' width=\'36\' height=\'36\' background=\'images/pietra.png\'><img src=\'' . img_pietre( $piatra3 ) . '\' width=20 height=20></td> <td><font color=\'#c1c1c1\'>' . pietre_name( $piatra3 ) . '</font></td> </tr> </table> '; } echo '<br/>'; } function romana($var) { $new_var = str_replace( 'ã', 'a', $var ); $new_var = str_replace( 'â', 'a', $new_var ); $new_var = str_replace( 'Î', 'I', $new_var ); $new_var = str_replace( 'î', 'i', $new_var ); $new_var = str_replace( 's', 's', $new_var ); $new_var = str_replace( 't', 't', $new_var ); $new_var = str_replace( 'A', 'A', $new_var ); $new_var = str_replace( 'Â', 'I', $new_var ); $new_var = str_replace( 'S', 'S', $new_var ); $new_var = str_replace( 'T', 'T', $new_var ); $new_var = str_replace( 'þ', 't', $new_var ); $new_var = str_replace( 'º', 's', $new_var ); $new_var = str_replace( '2147483647', '-15', $new_var ); return $new_var; } } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.270.0070.05719.11
5.4.260.0170.07319.15
5.4.250.0030.06719.10
5.4.240.0100.05318.98
5.4.230.0100.05319.05
5.4.220.0200.05319.02
5.4.210.0130.05319.24
5.4.200.0130.05718.86
5.4.190.0070.07018.86
5.4.180.0030.07019.07
5.4.170.0100.05318.92
5.4.160.0100.05319.22
5.4.150.0130.07018.82
5.4.140.0130.05716.75
5.4.130.0070.05316.44
5.4.120.0130.05016.45
5.4.110.0170.05016.75
5.4.100.0070.06716.49
5.4.90.0130.04316.50
5.4.80.0070.07016.57
5.4.70.0100.06016.64
5.4.60.0100.05716.43
5.4.50.0070.06016.66
5.4.40.0130.05316.46
5.4.30.0270.04716.56
5.4.20.0130.04716.56
5.4.10.0170.06716.41
5.4.00.0130.06016.14
5.3.280.0130.05314.82
5.3.270.0170.05314.77
5.3.260.0200.06714.70
5.3.250.0070.07714.91
5.3.240.0100.07014.91
5.3.230.0100.05714.94
5.3.220.0130.04714.89
5.3.210.0170.05014.61
5.3.200.0070.05314.88
5.3.190.0230.05014.80
5.3.180.0170.04714.65
5.3.170.0100.06014.66
5.3.160.0100.05014.79
5.3.150.0130.06014.90
5.3.140.0070.06014.71
5.3.130.0130.06314.86
5.3.120.0100.05314.58
5.3.110.0130.05714.89
5.3.100.0100.05013.96
5.3.90.0170.07314.32
5.3.80.0130.05014.23
5.3.70.0130.04314.09
5.3.60.0130.05314.03
5.3.50.0200.03714.16
5.3.40.0070.06014.20
5.3.30.0070.06014.23
5.3.20.0100.05313.94
5.3.10.0100.05313.54
5.3.00.0170.04713.97
5.2.170.0070.06011.23
5.2.160.0100.05011.19
5.2.150.0030.05311.23
5.2.140.0070.06311.23
5.2.130.0070.04011.14
5.2.120.0100.03711.37
5.2.110.0030.04311.43
5.2.100.0100.03711.26
5.2.90.0030.04311.15
5.2.80.0070.05011.18
5.2.70.0100.05711.36
5.2.60.0030.04711.36
5.2.50.0030.04711.11
5.2.40.0030.04311.04
5.2.30.0070.04311.31
5.2.20.0170.03011.00
5.2.10.0000.05711.08
5.2.00.0130.04710.98
5.1.60.0070.03710.27
5.1.50.0030.05010.27
5.1.40.0000.05710.27
5.1.30.0070.03710.43
5.1.20.0070.05310.59
5.1.10.0130.04710.27
5.1.00.0030.03710.27
5.0.50.0070.03710.27
5.0.40.0070.02310.27
5.0.30.0070.05010.27
5.0.20.0000.03010.27
5.0.10.0070.02710.27
5.0.00.0030.05010.27
4.4.90.0030.02310.27
4.4.80.0130.01310.27
4.4.70.0100.01710.27
4.4.60.0000.03310.27
4.4.50.0070.03310.27
4.4.40.0130.02710.27
4.4.30.0030.02310.27
4.4.20.0070.02710.27
4.4.10.0030.02310.27
4.4.00.0070.04310.27
4.3.110.0030.03310.27
4.3.100.0070.02010.27
4.3.90.0030.02010.27
4.3.80.0000.03710.27
4.3.70.0070.02710.26
4.3.60.0000.02310.26
4.3.50.0070.02310.26
4.3.40.0000.03710.26
4.3.30.0000.02310.26
4.3.20.0000.03310.26
4.3.10.0030.02310.26
4.3.00.0000.02015.59

preferences:
141.9 ms | 1394 KiB | 7 Q