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); $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 = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, ($key), $myVarIWantToEncodeAndDecode, MCRYPT_MODE_CBC,$iv ); echo ("\r\nPHP Key:".$encoded ."\r\n<br>"); echo ("\r\n Expect: ".$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.0100.01016.88
8.3.50.0150.00721.16
8.3.40.0070.00718.92
8.3.30.0090.00618.84
8.3.20.0070.00020.34
8.3.10.0070.00023.65
8.3.00.0060.00321.86
8.2.180.0070.00718.30
8.2.170.0070.01022.96
8.2.160.0060.00920.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.00
8.2.120.0080.00026.35
8.2.110.0130.00319.27
8.2.100.0050.00517.80
8.2.90.0000.00819.23
8.2.80.0060.00317.97
8.2.70.0000.00917.62
8.2.60.0080.00017.91
8.2.50.0070.00318.09
8.2.40.0060.00322.32
8.2.30.0070.00019.49
8.2.20.0040.00417.69
8.2.10.0070.00018.21
8.2.00.0000.00818.20
8.1.280.0150.00425.92
8.1.270.0100.01022.20
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.23
8.1.230.0030.00717.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0060.00317.22
8.1.180.0000.00818.10
8.1.170.0040.00418.49
8.1.160.0050.00320.72
8.1.150.0000.00719.00
8.1.140.0030.00519.61
8.1.130.0000.00717.71
8.1.120.0000.00817.56
8.1.110.0040.00417.52
8.1.100.0040.00417.49
8.1.90.0040.00417.39
8.1.80.0040.00417.39
8.1.70.0030.00317.45
8.1.60.0000.00717.52
8.1.50.0030.00617.60
8.1.40.0000.00817.58
8.1.30.0030.00517.60
8.1.20.0080.00017.66
8.1.10.0040.00417.51
8.1.00.0000.00817.43
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0070.00018.48
8.0.270.0070.00017.20
8.0.260.0000.00617.31
8.0.250.0030.00317.07
8.0.240.0070.00017.05
8.0.230.0000.00616.92
8.0.220.0070.00017.00
8.0.210.0040.00416.89
8.0.200.0000.00616.89
8.0.190.0000.00717.05
8.0.180.0070.00017.01
8.0.170.0040.00417.04
8.0.160.0030.00417.05
8.0.150.0030.00616.93
8.0.140.0000.01016.86
8.0.130.0060.00013.48
8.0.120.0040.00416.96
8.0.110.0000.00716.90
8.0.100.0000.00717.04
8.0.90.0000.00716.86
8.0.80.0000.01816.97
8.0.70.0000.00716.87
8.0.60.0040.00416.93
8.0.50.0030.00516.95
8.0.30.0050.01217.19
8.0.20.0140.00517.40
8.0.10.0050.00217.00
8.0.00.0100.00816.79
7.4.330.0060.00016.76
7.4.320.0000.00616.55
7.4.300.0040.00416.55
7.4.290.0000.00716.54
7.4.280.0080.00016.61
7.4.270.0030.00316.63
7.4.260.0000.00716.67
7.4.250.0000.00716.40
7.4.240.0000.00716.53
7.4.230.0030.00316.63
7.4.220.0170.01016.51
7.4.210.0030.01016.75
7.4.200.0030.00316.63
7.4.160.0100.00716.53
7.4.150.0070.01317.40
7.4.140.0150.00517.86
7.4.130.0080.00916.57
7.4.120.0110.00616.57
7.4.110.0060.01216.50
7.4.100.0000.01816.53
7.4.90.0030.01416.53
7.4.80.0070.01119.39
7.4.70.0080.00816.68
7.4.60.0030.01316.66
7.4.50.0100.00716.26
7.4.40.0100.00716.46
7.4.30.0140.00616.43
7.4.00.0000.01415.06
7.3.330.0030.00313.26
7.3.320.0000.00513.40
7.3.310.0070.00016.48
7.3.300.0000.00716.25
7.3.290.0110.00616.40
7.3.280.0090.00916.44
7.3.270.0000.01717.40
7.3.260.0120.00816.24
7.3.250.0100.00816.48
7.3.240.0100.00916.46
7.3.230.0060.01816.53
7.3.210.0130.00316.43
7.3.200.0080.00819.39
7.3.190.0150.00616.43
7.3.180.0090.00916.46
7.3.170.0130.00416.63
7.3.160.0120.00916.63
7.2.330.0140.00316.68
7.2.320.0140.00316.80
7.2.310.0070.01016.54
7.2.300.0120.00616.40
7.2.290.0090.00916.51
7.2.60.0090.00317.05
7.2.00.0120.00319.30
7.1.200.0030.00915.89
7.1.100.0090.00318.07
7.1.70.0050.00217.25
7.1.60.0060.01619.40
7.1.50.0090.00916.96
7.1.00.0100.07322.32
7.0.200.0410.00614.86
7.0.60.0170.07321.69
7.0.50.0170.07317.98
7.0.40.0000.08720.06
7.0.30.0170.07320.01
7.0.20.0400.06020.02
7.0.10.0100.08320.04
7.0.00.0070.08020.16
5.6.280.0070.05021.13
5.6.210.0030.06020.54
5.6.200.0030.07718.22
5.6.190.0070.04320.38
5.6.180.0230.07020.73
5.6.170.0300.07720.63
5.6.160.0130.07320.49
5.6.150.0130.07718.29
5.6.140.0100.03718.21
5.6.130.0030.08318.16
5.6.120.0170.07321.15
5.6.110.0070.08721.21
5.6.100.0100.08021.02
5.6.90.0070.08021.20
5.6.80.0070.08020.54
5.5.350.0030.08020.44
5.5.340.0070.08718.01
5.5.330.0030.04320.57
5.5.320.0470.03320.34
5.5.310.0270.08720.36
5.5.300.0070.08017.93
5.5.290.0030.04317.90
5.5.280.0070.04720.81
5.5.270.0030.05720.80
5.5.260.0100.08020.90
5.5.250.0030.04020.75
5.5.240.0170.07720.19

preferences:
49.59 ms | 401 KiB | 5 Q