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 = (mcrypt_encrypt(MCRYPT_RIJNDAEL_256, ($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.50
8.3.50.0120.00316.09
8.3.40.0120.00318.53
8.3.30.0070.00718.79
8.3.20.0040.00420.25
8.3.10.0040.00421.81
8.3.00.0040.00423.53
8.2.180.0000.01516.38
8.2.170.0120.00322.96
8.2.160.0180.00420.45
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0030.00619.37
8.2.120.0040.00426.35
8.2.110.0120.00920.90
8.2.100.0060.00617.78
8.2.90.0060.00319.17
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0040.00418.09
8.2.40.0050.00322.23
8.2.30.0000.00719.45
8.2.20.0000.00817.68
8.2.10.0040.00418.21
8.2.00.0040.00418.12
8.1.280.0090.01225.92
8.1.270.0110.00722.20
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0060.00323.96
8.1.230.0070.00418.86
8.1.220.0040.00417.78
8.1.210.0030.00618.77
8.1.200.0030.00717.47
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0030.00618.59
8.1.160.0070.00020.79
8.1.150.0040.00419.01
8.1.140.0030.00519.62
8.1.130.0030.00317.74
8.1.120.0040.00417.54
8.1.110.0030.00417.41
8.1.100.0000.00817.43
8.1.90.0040.00417.45
8.1.80.0030.00617.43
8.1.70.0000.00717.35
8.1.60.0070.00317.64
8.1.50.0060.00317.44
8.1.40.0030.00717.50
8.1.30.0000.00917.57
8.1.20.0040.00417.72
8.1.10.0040.00417.64
8.1.00.0050.00317.57
8.0.300.0000.00818.77
8.0.290.0050.00316.88
8.0.280.0000.00718.39
8.0.270.0030.00317.30
8.0.260.0030.00317.27
8.0.250.0030.00317.05
8.0.240.0000.00916.94
8.0.230.0040.00416.96
8.0.220.0000.00717.05
8.0.210.0060.00316.98
8.0.200.0000.00616.95
8.0.190.0000.00817.09
8.0.180.0030.00617.07
8.0.170.0040.00416.98
8.0.160.0000.00716.90
8.0.150.0000.00716.95
8.0.140.0030.00716.98
8.0.130.0030.00313.37
8.0.120.0040.00416.99
8.0.110.0000.00716.95
8.0.100.0000.00717.03
8.0.90.0070.00017.05
8.0.80.0000.02116.95
8.0.70.0070.00017.02
8.0.60.0000.00816.99
8.0.50.0000.00816.98
8.0.30.0060.01017.05
8.0.20.0090.01217.40
8.0.10.0040.00416.83
8.0.00.0130.00816.85
7.4.330.0020.00316.67
7.4.320.0070.00016.48
7.4.300.0090.00016.47
7.4.290.0070.00016.53
7.4.280.0000.00816.45
7.4.270.0050.00316.47
7.4.260.0000.00716.66
7.4.250.0070.00016.59
7.4.240.0000.00716.39
7.4.230.0000.00716.70
7.4.220.0060.01616.64
7.4.210.0140.00316.59
7.4.200.0040.00416.66
7.4.160.0090.00616.46
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0110.00716.57
7.4.120.0110.01116.52
7.4.110.0110.00716.50
7.4.100.0060.01116.43
7.4.90.0160.00616.53
7.4.80.0090.00919.39
7.4.70.0140.00316.84
7.4.60.0100.00616.51
7.4.50.0030.01116.30
7.4.40.0070.00716.61
7.4.30.0090.00916.44
7.4.10.0110.00715.14
7.4.00.0060.00915.11
7.3.330.0050.00013.34
7.3.320.0000.00613.35
7.3.310.0000.00716.36
7.3.300.0070.00016.44
7.3.290.0000.00716.45
7.3.280.0080.00616.40
7.3.270.0090.00917.40
7.3.260.0140.01316.67
7.3.250.0080.01016.34
7.3.240.0100.00716.56
7.3.230.0100.00616.39
7.3.210.0150.00316.52
7.3.200.0120.01019.39
7.3.190.0120.00616.35
7.3.180.0100.01016.44
7.3.170.0100.00716.45
7.3.160.0060.01216.41
7.3.130.0100.00714.55
7.3.120.0070.00715.13
7.3.110.0040.01215.08
7.3.100.0080.00414.82
7.3.90.0090.00914.86
7.3.80.0040.01214.54
7.3.70.0040.00414.92
7.3.60.0140.00314.75
7.3.50.0030.01314.89
7.3.40.0060.00914.84
7.3.30.0030.01414.82
7.3.20.0100.00316.62
7.3.10.0100.00616.54
7.3.00.0090.00816.60
7.2.330.0000.01716.68
7.2.320.0110.00716.61
7.2.310.0120.00616.70
7.2.300.0110.00816.93
7.2.290.0060.00916.57
7.2.260.0150.00314.93
7.2.250.0030.01414.59
7.2.240.0030.01414.66
7.2.230.0060.01015.06
7.2.220.0070.00514.68
7.2.210.0090.00615.12
7.2.200.0050.00414.88
7.2.190.0100.00715.04
7.2.180.0140.00314.70
7.2.170.0030.01314.80
7.2.160.0000.01215.23
7.2.150.0030.01416.91
7.2.140.0130.00016.57
7.2.130.0070.00916.88
7.2.120.0060.01016.87
7.2.110.0100.00616.76
7.2.100.0050.01116.63
7.2.90.0090.00416.82
7.2.80.0050.00816.83
7.2.70.0060.00716.66
7.2.60.0080.00716.86
7.2.50.0110.00716.92
7.2.40.0140.00316.81
7.2.30.0080.00816.81
7.2.20.0060.00816.89
7.2.10.0050.00816.85
7.2.00.0060.01017.53
7.1.330.0080.00815.74
7.1.320.0060.00915.68
7.1.310.0070.00715.77
7.1.300.0070.00715.57
7.1.290.0070.00715.78
7.1.280.0040.01115.88
7.1.270.0030.00715.47
7.1.260.0060.00915.67
7.1.250.0100.00415.58
7.1.240.0080.00415.76
7.1.230.0030.00615.59
7.1.220.0030.00915.63
7.1.210.0080.00315.60
7.1.200.0090.00115.92
7.1.190.0100.00715.86
7.1.180.0050.00915.74
7.1.170.0080.00416.01
7.1.160.0070.00715.36
7.1.150.0060.00915.45
7.1.140.0060.00315.64
7.1.130.0060.00315.54
7.1.120.0000.01715.55
7.1.110.0090.00615.81
7.1.100.0040.00816.82
7.1.90.0030.01415.80
7.1.80.0090.00615.76
7.1.70.0040.00416.56
7.1.60.0070.00717.49
7.1.50.0080.01116.40
7.1.40.0070.00715.44
7.1.30.0060.00615.74
7.1.20.0100.00315.92
7.1.10.0070.00715.80
7.1.00.0020.04418.98
7.0.330.0040.01115.28
7.0.320.0030.00915.18
7.0.310.0080.00314.87
7.0.300.0040.01214.97
7.0.290.0000.01415.36
7.0.280.0090.00315.28
7.0.270.0060.01015.16
7.0.260.0090.00315.30
7.0.250.0030.01015.41
7.0.240.0030.01015.04
7.0.230.0040.01115.36
7.0.220.0040.00715.25
7.0.210.0070.00715.51
7.0.200.0120.00815.10
7.0.190.0030.01015.09
7.0.180.0040.00415.27
7.0.170.0000.01115.44
7.0.160.0140.00015.29
7.0.150.0060.00315.23
7.0.140.0040.01215.36
7.0.130.0000.01115.04
7.0.120.0030.00515.30
7.0.110.0060.01015.38
7.0.100.0100.00615.43
7.0.90.0070.00315.58
7.0.80.0030.01015.48
7.0.70.0070.00415.45
7.0.60.0130.04318.44
7.0.50.0040.02416.49
7.0.40.0070.04516.89
7.0.30.0130.02816.70
7.0.20.0180.03016.67
7.0.10.0070.04916.85
7.0.00.0070.04516.95
5.6.400.0080.00314.04
5.6.390.0090.00614.35
5.6.380.0000.01013.98
5.6.370.0000.01413.93
5.6.360.0000.01514.36
5.6.350.0040.01114.34
5.6.340.0070.00714.14
5.6.330.0080.00814.32
5.6.320.0060.00614.33
5.6.310.0060.00613.79
5.6.300.0120.00414.05
5.6.290.0030.01014.08
5.6.280.0040.01917.65
5.6.270.0030.00614.46
5.6.260.0000.01414.32
5.6.250.0040.00714.24
5.6.240.0070.00714.06
5.6.230.0000.01714.34
5.6.220.0000.01014.22
5.6.210.0050.02917.43
5.6.200.0050.04816.37
5.6.190.0110.04017.48
5.6.180.0160.03817.32
5.6.170.0200.04317.26
5.6.160.0130.04017.32
5.6.150.0070.02316.08
5.6.140.0110.03216.17
5.6.130.0070.04016.12
5.6.120.0030.02817.67
5.6.110.0100.04017.56
5.6.100.0050.04517.68
5.6.90.0060.04617.39
5.6.80.0080.02217.25
5.6.70.0030.01014.34
5.6.60.0090.00914.07
5.6.50.0040.00414.16
5.6.40.0100.00714.19
5.6.30.0060.00314.14
5.6.20.0040.00814.25
5.6.10.0030.01314.12
5.6.00.0130.00314.11
5.5.380.0000.01014.45
5.5.370.0110.00414.13
5.5.360.0060.00313.92
5.5.350.0050.04417.20
5.5.340.0000.02716.01
5.5.330.0050.04517.35
5.5.320.0250.03517.33
5.5.310.0170.04517.04
5.5.300.0080.04115.96
5.5.290.0050.02715.95
5.5.280.0060.04917.61
5.5.270.0050.03017.48
5.5.260.0050.02717.57
5.5.250.0090.04017.30
5.5.240.0150.04117.12
5.5.230.0030.01213.81
5.5.220.0070.00713.70
5.5.210.0030.01013.68
5.5.200.0090.00913.63
5.5.190.0000.01313.92
5.5.180.0110.00413.43
5.5.170.0090.00613.91
5.5.160.0080.01114.04
5.5.150.0170.00414.14
5.5.140.0070.01414.21
5.5.130.0110.00714.05
5.5.120.0100.01214.18
5.5.110.0140.01113.92
5.5.100.0070.01114.23
5.5.90.0120.00313.96
5.5.80.0040.01514.08
5.5.70.0060.01213.93
5.5.60.0150.00014.05
5.5.50.0120.00313.81
5.5.40.0090.00613.67
5.5.30.0040.01113.86
5.5.20.0070.00314.32
5.5.10.0070.00714.09
5.5.00.0040.01113.68

preferences:
51.38 ms | 400 KiB | 5 Q