3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expected_result = "MeO+OkLlLR7+3acBmx40mXUq9/2jyB7Bgk4HPCMMOZWm0Q8ImAaNNxmb5Ukjl6lS+nRyYOTYvi2KP3D+7PIKpQ=="; $key = "nkCrEY3Lek2GHVC9Yfg6LK00dWYat88L"; $savedUser = "test1user1"; $movieID = "asd90asd89f7d9"; $fileName = "myporn.mp4"; $message = "id=" . $movieID . "&username=" . $savedUser . "&filename=" . $fileName; $myVarIWantToEncodeAndDecode = $message; echo ($message); //http_build_query $iv = md5(md5($key)); $iv = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; $encoded = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, ($key), $myVarIWantToEncodeAndDecode, MCRYPT_MODE_CBC, $iv )); echo ("<br>\r\n".$encoded ."\r\n<br>"); echo ("<br>\r\n".$expected_result ."\r\n<br>");

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.0090.00916.63
8.3.50.0070.01316.30
8.3.40.0090.00618.61
8.3.30.0090.00618.64
8.3.20.0020.00520.16
8.3.10.0080.00021.91
8.3.00.0040.00421.65
8.2.180.0120.00318.41
8.2.170.0150.00022.96
8.2.160.0030.01020.36
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00521.04
8.2.120.0050.00326.35
8.2.110.0070.00320.55
8.2.100.0060.00617.72
8.2.90.0050.00319.21
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0070.00317.93
8.2.50.0060.00318.09
8.2.40.0060.00322.17
8.2.30.0050.00219.38
8.2.20.0000.00817.77
8.2.10.0040.00418.03
8.2.00.0070.00018.15
8.1.280.0070.01425.92
8.1.270.0000.00823.98
8.1.260.0080.00028.09
8.1.250.0000.00728.09
8.1.240.0040.00722.20
8.1.230.0060.00617.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.50
8.1.190.0060.00317.35
8.1.180.0050.00318.10
8.1.170.0080.00018.64
8.1.160.0040.00420.78
8.1.150.0000.00719.04
8.1.140.0050.00319.60
8.1.130.0000.00717.67
8.1.120.0070.00017.55
8.1.110.0050.00317.52
8.1.100.0080.00017.34
8.1.90.0070.00017.40
8.1.80.0040.00417.37
8.1.70.0000.00717.40
8.1.60.0040.00417.54
8.1.50.0000.00817.52
8.1.40.0080.00017.54
8.1.30.0040.00417.71
8.1.20.0000.00817.51
8.1.10.0000.00817.65
8.1.00.0040.00417.50
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0040.00418.42
8.0.270.0000.00817.20
8.0.260.0000.00617.19
8.0.250.0000.00716.99
8.0.240.0040.00417.01
8.0.230.0000.00617.06
8.0.220.0000.00716.98
8.0.210.0070.00016.90
8.0.200.0000.00617.09
8.0.190.0040.00417.00
8.0.180.0070.00017.00
8.0.170.0060.00317.08
8.0.160.0000.00717.07
8.0.150.0030.00616.95
8.0.140.0000.01017.00
8.0.130.0000.00613.50
8.0.120.0040.00416.92
8.0.110.0050.00316.81
8.0.100.0040.00416.88
8.0.90.0030.00316.95
8.0.80.0130.00717.02
8.0.70.0000.00816.94
8.0.60.0070.00016.87
8.0.50.0040.00416.89
8.0.30.0120.00617.04
8.0.20.0080.01017.40
8.0.10.0000.00716.91
8.0.00.0060.01116.82
7.4.330.0000.00516.72
7.4.320.0050.00216.59
7.4.300.0000.00716.66
7.4.290.0040.00416.48
7.4.280.0080.00016.49
7.4.270.0030.00316.61
7.4.260.0040.00416.55
7.4.250.0070.00016.50
7.4.240.0080.00016.54
7.4.230.0070.00016.45
7.4.220.0100.01016.64
7.4.210.0070.00716.75
7.4.200.0020.00516.66
7.4.160.0070.01316.48
7.4.150.0110.00717.40
7.4.140.0120.01217.86
7.4.130.0050.01116.47
7.4.120.0100.00716.53
7.4.110.0190.00316.54
7.4.100.0070.01716.39
7.4.90.0090.00916.51
7.4.80.0090.00919.39
7.4.70.0100.00516.69
7.4.60.0080.01516.50
7.4.50.0070.00816.43
7.4.40.0100.00616.59
7.4.30.0150.00616.75
7.4.00.0120.00315.02
7.3.330.0060.00013.15
7.3.320.0000.00513.25
7.3.310.0040.00416.37
7.3.300.0070.00016.30
7.3.290.0070.00816.42
7.3.280.0130.00616.41
7.3.270.0140.00317.40
7.3.260.0090.01216.63
7.3.250.0060.01116.52
7.3.240.0120.00616.50
7.3.230.0110.00516.39
7.3.210.0130.01016.53
7.3.200.0100.01319.39
7.3.190.0100.00716.51
7.3.180.0090.00916.45
7.3.170.0070.01016.54
7.3.160.0070.01016.45
7.2.330.0140.00416.88
7.2.320.0090.01216.72
7.2.310.0060.01016.40
7.2.300.0180.00016.73
7.2.290.0080.00916.33
7.2.60.0060.00916.96
7.2.00.0030.01019.44
7.1.200.0000.01215.96
7.1.100.0000.01417.86
7.1.70.0030.00617.17
7.1.60.0150.01119.40
7.1.50.0030.01716.76
7.1.00.0070.07322.37
7.0.200.0330.00714.91
7.0.60.0130.06021.82
7.0.50.0000.07717.98
7.0.40.0100.08320.31
7.0.30.0230.07720.09
7.0.20.0200.06720.18
7.0.10.0070.04720.23
7.0.00.0070.05020.01
5.6.280.0030.05021.12
5.6.210.0030.04320.66
5.6.200.0030.06018.18
5.6.190.0030.04320.39
5.6.180.0300.05020.41
5.6.170.0200.06720.52
5.6.160.0000.04720.38
5.6.150.0130.07018.21
5.6.140.0030.08718.22
5.6.130.0070.04318.21
5.6.120.0130.07721.04
5.6.110.0000.05021.14
5.6.100.0100.07321.05
5.6.90.0130.07721.15
5.6.80.0070.07720.54
5.5.350.0030.08320.41
5.5.340.0230.05017.99
5.5.330.0070.04320.29
5.5.320.0470.05320.22
5.5.310.0370.07020.26
5.5.300.0000.08717.96
5.5.290.0030.05017.98
5.5.280.0130.05020.77
5.5.270.0030.04320.87
5.5.260.0100.08020.83
5.5.250.0070.05320.79
5.5.240.0100.07020.44

preferences:
72.01 ms | 401 KiB | 5 Q