3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL);$address = "141.105.121.87";$port = 10000;$mysock = socket_create(AF_INET,SOCK_STREAM, SOL_TCP);socket_bind($mysock, $address,$port);socket_listen($mysock, 5);echo "Server started, acceptingconnections ...\n";$i = 0;while (true) {$client = socket_accept($mysock);$i++;$c_msg = socket_read($client,65536);$a = 61;$b = 53;$n = $a * $b;$m = ($a - 1) * ($b - 1);$e = 19; // encryption key$k = 1;do {$d = (1 + ($k * $m)) / $e;// decryption key$k++;} while (!is_int($d));// explode cipher message tocipher blocks$c = explode(" ", $c_msg);// decipher the cipher blocks and concat them into plain message$p_msg = "";foreach ($c as $x) {$p_msg .= chr(bcmod(bcpow($x,$d), $n));}//$msg = socket_read($client,2048);echo "\n===== Connection # ". $i . " =====\n";echo "\n Decripting Message........\n";echo "\n-----Chiper Message-----\n";echo "\n $c_msg\n";echo "\n -----Plain Message-----\n";echo "\n$p_msg\n";$decript_file=fopen("C:/xampp/htdocs/RSA/hasil_stego_decript.txt", "w");fwrite($decript_file,$p_msg);fclose($decript_file);echo "\nSending response message to client ...";$t = "Thanks. Your connection # is " . $i . ".";socket_write($client, $t,strlen($t));echo "\nMessage sent\n";echo "\n===== End ofconnection # " . $i . " =====\n";}echo "\nClosing sockets...\n";socket_close($client);socket_close($mysock);?>

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.320.0060.03912.47
5.4.310.0030.05012.46
5.4.300.0050.03612.47
5.4.290.0060.03812.46
5.4.280.0100.03112.36
5.4.270.0040.03812.36
5.4.260.0050.03812.36
5.4.250.0050.03812.36
5.4.240.0050.03812.36
5.4.230.0040.03912.36
5.4.220.0070.03412.36
5.4.210.0030.03812.35
5.4.200.0070.04512.36
5.4.190.0080.03512.35
5.4.180.0100.03812.35
5.4.170.0120.04012.36
5.4.160.0050.04312.36
5.4.150.0070.04612.36
5.4.140.0050.03812.04
5.4.130.0080.03512.03
5.4.120.0030.03811.99
5.4.110.0030.04211.98
5.4.100.0070.04811.98
5.4.90.0080.03611.98
5.4.80.0080.03811.98
5.4.70.0080.04411.98
5.4.60.0070.03311.98
5.4.50.0090.03711.98
5.4.40.0070.04411.96
5.4.30.0040.04411.96
5.4.20.0070.03311.96
5.4.10.0060.03411.96
5.4.00.0060.03511.46
5.3.290.0030.04112.80
5.3.280.0030.04112.71
5.3.270.0070.03812.73
5.3.260.0060.03812.72
5.3.250.0060.03612.72
5.3.240.0080.03412.72
5.3.230.0040.04012.71
5.3.220.0050.03712.68
5.3.210.0040.04112.68
5.3.200.0060.03712.68
5.3.190.0060.03712.68
5.3.180.0030.03912.67
5.3.170.0060.03512.67
5.3.160.0080.03412.68
5.3.150.0040.04112.67
5.3.140.0050.03712.66
5.3.130.0040.04112.66
5.3.120.0090.03812.66
5.3.110.0090.05112.66
5.3.100.0070.04912.11
5.3.90.0060.05512.09
5.3.80.0110.04012.07
5.3.70.0100.04712.08
5.3.60.0070.03712.06
5.3.50.0070.03612.00
5.3.40.0080.04512.00
5.3.30.0080.04811.95
5.3.20.0060.04111.73
5.3.10.0050.03811.70
5.3.00.0060.03711.68
5.2.170.0020.0399.19
5.2.160.0040.0339.18
5.2.150.0050.0339.18
5.2.140.0020.0349.18
5.2.130.0030.0319.14
5.2.120.0040.0299.14
5.2.110.0050.0299.15
5.2.100.0040.0299.15
5.2.90.0020.0329.14
5.2.80.0040.0319.14
5.2.70.0080.0389.14
5.2.60.0100.0379.10
5.2.50.0110.0359.06
5.2.40.0090.0359.05
5.2.30.0050.0369.02
5.2.20.0080.0339.00
5.2.10.0040.0298.93
5.2.00.0030.0338.79
5.1.60.0070.0238.08
5.1.50.0050.0258.07
5.1.40.0040.0268.05
5.1.30.0050.0268.40
5.1.20.0050.0258.42
5.1.10.0010.0288.15
5.1.00.0040.0268.16
5.0.50.0020.0226.64
5.0.40.0050.0186.50
5.0.30.0040.0306.31
5.0.20.0020.0236.28
5.0.10.0050.0186.26
5.0.00.0030.0306.25
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0050.0134.76
4.4.60.0020.0174.76
4.4.50.0040.0184.77
4.4.40.0030.0264.71
4.4.30.0050.0134.76
4.4.20.0020.0174.84
4.4.10.0010.0174.85
4.4.00.0020.0254.76
4.3.110.0050.0154.67
4.3.100.0040.0144.67
4.3.90.0030.0184.64
4.3.80.0020.0274.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0040.0174.63
4.3.40.0030.0234.54
4.3.30.0020.0163.30
4.3.20.0020.0163.28
4.3.10.0050.0133.23
4.3.00.0000.01719.45

preferences:
146.9 ms | 939 KiB | 8 Q