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 = base64_encode(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.0080.00818.55
8.3.50.0110.00416.29
8.3.40.0040.01118.79
8.3.30.0110.00418.67
8.3.20.0070.00020.20
8.3.10.0080.00023.70
8.3.00.0030.00621.57
8.2.180.0070.00718.29
8.2.170.0070.01022.96
8.2.160.0100.00320.37
8.2.150.0060.00324.18
8.2.140.0020.00524.66
8.2.130.0030.00521.00
8.2.120.0060.00326.35
8.2.110.0000.01022.27
8.2.100.0030.00917.91
8.2.90.0080.00018.34
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0000.00817.93
8.2.50.0080.00418.09
8.2.40.0040.00420.47
8.2.30.0050.00219.56
8.2.20.0050.00317.79
8.2.10.0070.00018.08
8.2.00.0060.00318.14
8.1.280.0100.01025.92
8.1.270.0110.00722.18
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0040.00423.88
8.1.230.0040.00720.91
8.1.220.0080.00017.91
8.1.210.0060.00318.77
8.1.200.0060.00317.48
8.1.190.0080.00017.35
8.1.180.0030.00518.10
8.1.170.0060.00318.53
8.1.160.0040.00420.80
8.1.150.0040.00418.95
8.1.140.0000.00819.61
8.1.130.0030.00317.74
8.1.120.0050.00217.40
8.1.110.0000.00817.49
8.1.100.0070.00017.46
8.1.90.0040.00417.50
8.1.80.0000.00817.39
8.1.70.0000.00717.39
8.1.60.0000.00717.58
8.1.50.0050.00317.57
8.1.40.0040.00417.56
8.1.30.0040.00417.61
8.1.20.0040.00417.70
8.1.10.0030.00617.64
8.1.00.0040.00417.42
8.0.300.0000.00720.07
8.0.290.0000.00816.75
8.0.280.0050.00318.46
8.0.270.0030.00317.29
8.0.260.0000.00617.21
8.0.250.0030.00317.05
8.0.240.0040.00417.07
8.0.230.0080.00017.09
8.0.220.0000.00717.00
8.0.210.0050.00217.05
8.0.200.0070.00017.08
8.0.190.0050.00316.98
8.0.180.0030.00517.05
8.0.170.0070.00017.01
8.0.160.0000.00716.99
8.0.150.0000.00717.00
8.0.140.0100.00016.96
8.0.130.0030.00313.45
8.0.120.0070.00016.97
8.0.110.0000.00716.89
8.0.100.0040.00416.88
8.0.90.0040.00416.97
8.0.80.0060.00917.05
8.0.70.0040.00416.80
8.0.60.0040.00416.83
8.0.50.0040.00417.05
8.0.30.0110.00617.08
8.0.20.0110.00817.40
8.0.10.0040.00417.03
8.0.00.0120.00616.89
7.4.330.0050.00016.79
7.4.320.0030.00316.63
7.4.300.0040.00416.55
7.4.290.0000.00816.65
7.4.280.0000.00716.54
7.4.270.0060.00016.59
7.4.260.0030.00313.34
7.4.250.0070.00016.52
7.4.240.0000.00716.52
7.4.230.0030.00316.54
7.4.220.0120.00616.66
7.4.210.0000.01416.73
7.4.200.0000.00716.34
7.4.160.0140.00616.81
7.4.150.0120.00617.40
7.4.140.0100.01217.86
7.4.130.0100.00616.42
7.4.120.0080.01016.53
7.4.110.0100.00716.48
7.4.100.0140.00316.58
7.4.90.0090.01116.64
7.4.80.0120.00619.39
7.4.70.0040.01116.54
7.4.60.0100.00616.56
7.4.50.0100.00716.28
7.4.40.0080.00816.61
7.4.30.0100.00716.45
7.4.00.0030.01015.01
7.3.330.0030.00313.26
7.3.320.0050.00013.24
7.3.310.0040.00416.30
7.3.300.0060.00016.33
7.3.290.0130.00616.41
7.3.280.0120.00716.38
7.3.270.0100.00717.40
7.3.260.0180.00316.46
7.3.250.0110.00716.43
7.3.240.0160.00616.47
7.3.230.0000.01616.39
7.3.210.0100.00716.40
7.3.200.0140.00319.39
7.3.190.0000.01616.47
7.3.180.0040.01216.43
7.3.170.0070.01416.61
7.3.160.0130.01016.42
7.2.330.0150.00316.70
7.2.320.0030.01316.82
7.2.310.0120.00616.87
7.2.300.0000.01716.60
7.2.290.0100.00616.72
7.2.60.0000.01516.70
7.2.00.0030.00919.50
7.1.200.0050.00515.86
7.1.100.0070.01017.96
7.1.70.0000.00917.23
7.1.60.0060.01819.40
7.1.50.0040.00717.00
7.1.00.0030.07722.36
7.0.200.0450.00314.68
7.0.60.0300.06721.77
7.0.50.0100.04317.86
7.0.40.0070.05720.32
7.0.30.0230.05320.16
7.0.20.0200.06020.23
7.0.10.0130.08020.18
7.0.00.0030.04320.20
5.6.280.0000.06021.11
5.6.210.0030.04020.46
5.6.200.0070.08018.23
5.6.190.0200.05020.67
5.6.180.0270.07320.39
5.6.170.0230.08020.43
5.6.160.0130.06320.54
5.6.150.0000.07018.29
5.6.140.0130.07718.28
5.6.130.0000.09018.16
5.6.120.0070.08321.09
5.6.110.0100.03721.06
5.6.100.0070.06021.00
5.6.90.0030.04321.05
5.6.80.0070.08320.42
5.5.350.0100.08020.39
5.5.340.0070.06318.00
5.5.330.0000.04320.39
5.5.320.0630.06720.52
5.5.310.0400.06720.30
5.5.300.0100.07317.97
5.5.290.0030.08718.04
5.5.280.0100.07720.87
5.5.270.0070.07320.83
5.5.260.0030.06720.94
5.5.250.0030.04020.75
5.5.240.0230.06320.32

preferences:
59.39 ms | 401 KiB | 5 Q