3v4l.org

run code in 300+ PHP versions simultaneously
<?php $plaintext = "\x04\x03\x02\x01\x00\x00\x00"; $ciphertext = mcrypt_encrypt( MCRYPT_RIJNDAEL_128, "YELLOW SUBMARINE", $plaintext, MCRYPT_MODE_ECB ); $decrypted = trim( mcrypt_encrypt( MCRYPT_RIJNDAEL_128, "YELLOW SUBMARINE", $ciphertext, MCRYPT_MODE_ECB ) ); var_dump([ bin2hex($plaintext), bin2hex($decrypted) ]); var_dump([ mb_strlen($plaintext, '8bit'), mb_strlen($decrypted, '8bit') ]);

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.0110.01116.50
8.3.50.0140.00521.93
8.3.40.0120.00318.59
8.3.30.0150.00618.67
8.3.20.0000.00720.21
8.3.10.0050.00323.48
8.3.00.0040.00419.38
8.2.180.0150.00418.67
8.2.170.0100.00322.96
8.2.160.0110.00422.08
8.2.150.0050.00324.18
8.2.140.0050.00224.66
8.2.130.0030.00617.38
8.2.120.0080.00026.35
8.2.110.0030.00620.47
8.2.100.0090.00317.80
8.2.90.0050.00319.17
8.2.80.0030.00717.97
8.2.70.0040.00417.50
8.2.60.0030.00617.80
8.2.50.0060.00318.07
8.2.40.0000.00719.34
8.2.30.0000.00720.70
8.2.20.0000.00817.59
8.2.10.0040.00418.12
8.2.00.0040.00417.92
8.1.280.0090.00625.92
8.1.270.0090.00022.16
8.1.260.0060.00328.09
8.1.250.0100.00328.09
8.1.240.0030.00622.34
8.1.230.0070.00317.66
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0100.00017.23
8.1.190.0030.00617.00
8.1.180.0040.00418.10
8.1.170.0050.00318.57
8.1.160.0000.00721.94
8.1.150.0070.00018.86
8.1.140.0000.00819.50
8.1.130.0040.00417.64
8.1.120.0080.00017.25
8.1.110.0030.00617.27
8.1.100.0040.00417.34
8.1.90.0000.00717.30
8.1.80.0000.00717.45
8.1.70.0030.00317.33
8.1.60.0030.00617.46
8.1.50.0040.00417.53
8.1.40.0050.00317.40
8.1.30.0090.00017.58
8.1.20.0000.00817.66
8.1.10.0040.00417.57
8.1.00.0020.00517.48
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.36
8.0.270.0030.00317.04
8.0.260.0030.00317.14
8.0.250.0040.00416.95
8.0.240.0080.00016.86
8.0.230.0040.00416.85
8.0.220.0000.00816.84
8.0.210.0070.00016.86
8.0.200.0000.00916.94
8.0.190.0000.00716.96
8.0.180.0030.00516.86
8.0.170.0040.00416.93
8.0.160.0080.00016.84
8.0.150.0000.00716.87
8.0.140.0030.00816.80
8.0.130.0060.00013.27
8.0.120.0050.00316.76
8.0.110.0050.00316.72
8.0.100.0040.00416.86
8.0.90.0030.00516.84
8.0.80.0100.00916.93
8.0.70.0050.00216.87
8.0.60.0030.00516.78
8.0.50.0040.00416.68
8.0.30.0120.00616.84
8.0.20.0100.00917.40
8.0.10.0050.00317.05
8.0.00.0120.00516.73
7.4.330.0020.00216.79
7.4.320.0060.00016.52
7.4.300.0060.00016.35
7.4.290.0000.00716.63
7.4.280.0040.00416.44
7.4.270.0030.00316.60
7.4.260.0040.00416.57
7.4.250.0000.00816.38
7.4.240.0040.00416.49
7.4.230.0000.00716.40
7.4.220.0110.00816.70
7.4.210.0060.01516.66
7.4.200.0000.00716.70
7.4.160.0070.01416.57
7.4.150.0110.00817.40
7.4.140.0110.00817.86
7.4.130.0090.00816.41
7.4.120.0060.01216.54
7.4.110.0160.00316.39
7.4.100.0090.01316.48
7.4.90.0100.00716.50
7.4.80.0060.01219.39
7.4.70.0120.00516.50
7.4.60.0090.00916.39
7.4.50.0130.00316.38
7.4.40.0080.00816.57
7.4.30.0090.01216.37
7.4.00.0080.00415.02
7.3.330.0020.00213.20
7.3.320.0050.00013.07
7.3.310.0030.00316.27
7.3.300.0070.00016.17
7.3.290.0060.01116.25
7.3.280.0120.00816.30
7.3.270.0100.00717.40
7.3.260.0100.00716.48
7.3.250.0110.00516.36
7.3.240.0070.01016.29
7.3.230.0070.01016.39
7.3.210.0090.00716.23
7.3.200.0130.00316.29
7.3.190.0030.01616.15
7.3.180.0140.00716.32
7.3.170.0100.00716.54
7.3.160.0080.00816.29
7.3.10.0080.00816.22
7.3.00.0110.00316.11
7.2.330.0110.01416.46
7.2.320.0130.00416.49
7.2.310.0070.01016.67
7.2.300.0100.00716.61
7.2.290.0150.00416.22
7.2.130.0060.00916.50
7.2.120.0080.00816.10
7.2.110.0140.00316.34
7.2.100.0140.00416.15
7.2.90.0150.00916.86
7.2.80.0070.00716.25
7.2.70.0150.01216.42
7.2.60.0050.01516.43
7.2.50.0040.01116.62
7.2.40.0120.01216.34
7.2.30.0150.00516.60
7.2.20.0180.00416.49
7.2.10.0100.01016.67
7.2.00.0110.00817.82
7.1.250.0090.01115.41
7.1.200.0070.00715.46
7.1.100.0030.01017.98
7.1.70.0000.00816.98
7.1.60.0100.01419.48
7.1.50.0030.01316.92
7.1.00.0030.07722.43
7.0.200.0490.00414.73
7.0.60.0130.06719.97
7.0.50.0070.06317.86
7.0.40.0100.04320.34
7.0.30.0200.08320.31
7.0.20.0300.07020.09
7.0.10.0100.08720.04
7.0.00.0030.05720.21
5.6.280.0070.05020.81
5.6.210.0130.03020.74
5.6.200.0130.07318.22
5.6.190.0100.07720.27
5.6.180.0270.08320.62
5.6.170.0200.03720.54
5.6.160.0030.07720.33
5.6.150.0070.08018.19
5.6.140.0070.04318.22
5.6.130.0000.05318.23
5.6.120.0030.07021.05
5.6.110.0100.07721.07
5.6.100.0070.08321.02
5.6.90.0070.08720.96
5.6.80.0130.08020.52
5.5.350.2870.03720.36
5.5.340.0000.04718.00
5.5.330.0100.06320.28
5.5.320.0200.05020.34
5.5.310.0370.07320.34
5.5.300.0100.03317.96
5.5.290.0100.08017.92
5.5.280.0100.08321.04
5.5.270.0030.09020.83
5.5.260.0100.07320.67
5.5.250.0130.04020.69
5.5.240.0300.06320.22

preferences:
43.3 ms | 401 KiB | 5 Q