3v4l.org

run code in 300+ PHP versions simultaneously
<?phperror_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)
8.3.60.0160.00316.38
8.3.50.0130.00521.98
8.3.40.0040.01118.50
8.3.30.0100.00319.09
8.3.20.0060.00320.33
8.3.10.0080.00020.34
8.3.00.0090.00019.13
8.2.180.0180.00416.38
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.10
8.2.110.0090.00022.11
8.2.100.0040.00817.72
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0030.00618.04
8.2.50.0060.00318.07
8.2.40.0000.00718.20
8.2.30.0020.00519.30
8.2.20.0050.00317.55
8.2.10.0030.00517.86
8.2.00.0040.00417.48
8.1.280.0180.00025.92
8.1.270.0080.00022.01
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00621.95
8.1.230.0070.00419.09
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0080.00017.23
8.1.180.0020.00518.10
8.1.170.0100.00018.39
8.1.160.0000.00821.94
8.1.150.0000.00718.76
8.1.140.0040.00417.37
8.1.130.0040.00417.76
8.1.120.0030.00317.35
8.1.110.0050.00317.32
8.1.100.0040.00417.26
8.1.90.0000.00717.39
8.1.80.0070.00017.30
8.1.70.0000.00717.25
8.1.60.0020.00517.46
8.1.50.0070.00017.40
8.1.40.0030.00517.42
8.1.30.0040.00417.52
8.1.20.0000.00717.50
8.1.10.0070.00017.39
8.1.00.0040.00417.37
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0000.00718.29
8.0.270.0030.00317.12
8.0.260.0030.00317.20
8.0.250.0000.00716.82
8.0.240.0070.00016.81
8.0.230.0040.00416.78
8.0.220.0000.00616.81
8.0.210.0040.00416.76
8.0.200.0000.00816.81
8.0.190.0030.00316.85
8.0.180.0000.00816.67
8.0.170.0020.00516.78
8.0.160.0000.00716.83
8.0.150.0040.00416.74
8.0.140.0050.00316.72
8.0.130.0000.00613.44
8.0.120.0080.00016.76
8.0.110.0000.00716.65
8.0.100.0040.00416.79
8.0.90.0000.00716.68
8.0.80.0120.00616.75
8.0.70.0070.00016.63
8.0.60.0040.00416.76
8.0.50.0000.00716.71
8.0.30.0100.00817.14
8.0.20.0110.00817.40
8.0.10.0000.00716.89
8.0.00.0090.00816.69
7.4.330.0050.00015.00
7.4.320.0000.00616.36
7.4.300.0030.00316.38
7.4.290.0000.00716.46
7.4.280.0050.00516.37
7.4.270.0050.00216.34
7.4.260.0040.00416.50
7.4.250.0050.00316.32
7.4.240.0020.00516.38
7.4.230.0030.00316.37
7.4.220.0060.01216.55
7.4.210.0100.00616.44
7.4.200.0040.00416.36
7.4.160.0200.02316.55
7.4.150.0090.01217.40
7.4.140.0160.00117.86
7.4.130.0120.00516.54
7.4.120.0130.00816.38
7.4.110.0040.01216.23
7.4.100.0080.00816.45
7.4.90.0070.01016.52
7.4.80.0070.01019.39
7.4.70.0110.00716.57
7.4.60.0130.00316.36
7.4.50.0040.00416.04
7.4.40.0120.01216.50
7.4.30.0100.00716.36
7.3.330.0000.00613.01
7.3.320.0000.00513.02
7.3.310.0070.00016.23
7.3.300.0030.00316.04
7.3.290.0090.00616.13
7.3.280.0060.01116.11
7.3.270.0090.00917.40
7.3.260.0100.00716.50
7.3.250.0150.00216.50
7.3.240.0100.00616.10
7.3.230.0060.01116.39
7.3.210.0060.01016.15
7.3.200.0040.01219.39
7.3.190.0110.01316.04
7.3.180.0110.00516.32
7.3.170.0100.00616.33
7.3.160.0160.00016.26
7.2.330.0150.00416.46
7.2.320.0160.00316.66
7.2.310.0120.00616.18
7.2.300.0140.00316.37
7.2.290.0120.00616.60
5.4.320.0030.04319.16
5.4.310.0030.03719.24
5.4.300.0170.03319.03
5.4.290.0000.04018.93
5.4.280.0070.03719.09
5.4.270.0000.04019.13
5.4.260.0070.04019.13
5.4.250.0070.04718.92
5.4.240.0030.04719.13
5.4.230.0100.04719.20
5.4.220.0000.04019.21
5.4.210.0070.03319.12
5.4.200.0000.04018.78
5.4.190.0000.04018.91
5.4.180.0030.03719.08
5.4.170.0030.03718.92
5.4.160.0000.04019.11
5.4.150.0030.04019.23
5.4.140.0030.03716.44
5.4.130.0000.04016.22
5.4.120.0000.04716.36
5.4.110.0030.04316.46
5.4.100.0070.04016.43
5.4.90.0000.04716.39
5.4.80.0070.04316.48
5.4.70.0030.04016.42
5.4.60.0000.04316.37
5.4.50.0030.05016.45
5.4.40.0030.04016.41
5.4.30.0030.03716.38
5.4.20.0030.05016.43
5.4.10.0000.04016.16
5.4.00.0030.03315.71

preferences:
35.44 ms | 401 KiB | 5 Q