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_decrypt( 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.4.10.0150.00417.78
8.3.140.0030.00716.66
8.3.130.0090.00018.63
8.3.120.0060.00320.44
8.3.110.0120.00320.94
8.3.100.0000.00924.06
8.3.90.0040.01526.77
8.3.80.0090.00017.97
8.3.70.0040.01116.36
8.3.60.0090.01216.50
8.3.50.0140.00521.92
8.3.40.0120.00318.70
8.3.30.0140.00018.59
8.3.20.0050.00320.07
8.3.10.0000.00823.44
8.3.00.0080.00019.26
8.2.260.0040.00418.61
8.2.250.0080.00018.45
8.2.240.0080.00017.17
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0060.00326.77
8.2.200.0090.00016.63
8.2.190.0000.01416.63
8.2.180.0070.00716.47
8.2.170.0070.00722.96
8.2.160.0110.00422.02
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0000.00819.36
8.2.110.0060.01321.18
8.2.100.0120.00018.03
8.2.90.0080.00019.05
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0050.00219.53
8.2.30.0000.00720.52
8.2.20.0060.00317.73
8.2.10.0000.00918.02
8.2.00.0040.00417.96
8.1.310.0000.00718.45
8.1.300.0080.00020.15
8.1.290.0050.00530.84
8.1.280.0060.01025.92
8.1.270.0000.01021.82
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00621.02
8.1.230.0030.00920.15
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0000.00917.22
8.1.190.0030.00617.22
8.1.180.0040.00418.10
8.1.170.0050.00318.40
8.1.160.0070.00021.82
8.1.150.0000.00718.83
8.1.140.0000.00819.46
8.1.130.0030.00320.26
8.1.120.0000.00717.34
8.1.110.0050.00517.34
8.1.100.0050.00317.39
8.1.90.0040.00417.42
8.1.80.0000.00717.28
8.1.70.0030.00317.33
8.1.60.0040.00417.54
8.1.50.0030.00617.50
8.1.40.0030.00617.55
8.1.30.0040.00417.64
8.1.20.0030.00617.55
8.1.10.0080.00017.56
8.1.00.0000.00717.48
8.0.300.0060.00319.21
8.0.290.0040.00416.75
8.0.280.0030.00318.25
8.0.270.0070.00017.07
8.0.260.0040.00418.29
8.0.250.0000.00716.94
8.0.240.0040.00416.82
8.0.230.0070.00016.94
8.0.220.0030.00316.83
8.0.210.0000.00816.80
8.0.200.0040.00416.94
8.0.190.0000.00716.85
8.0.180.0050.00316.82
8.0.170.0030.00516.86
8.0.160.0030.00516.83
8.0.150.0000.00816.82
8.0.140.0070.00316.71
8.0.130.0030.00313.35
8.0.120.0000.01016.76
8.0.110.0000.00716.93
8.0.100.0040.00416.87
8.0.90.0000.00716.79
8.0.80.0130.00316.87
8.0.70.0000.00816.77
8.0.60.0050.00216.68
8.0.50.0070.00016.75
8.0.30.0080.01017.06
8.0.20.0090.01017.40
8.0.10.0070.00016.92
8.0.00.0090.00816.81
7.4.330.0020.00216.67
7.4.320.0030.00316.29
7.4.300.0030.00316.59
7.4.290.0040.00316.50
7.4.280.0040.00416.61
7.4.270.0030.00316.41
7.4.260.0000.00616.46
7.4.250.0080.00016.50
7.4.240.0040.00416.57
7.4.230.0030.00316.63
7.4.220.0090.00916.39
7.4.210.0110.00416.66
7.4.200.0070.00016.39
7.4.160.0100.01016.28
7.4.150.0120.00617.40
7.4.140.0110.01117.86
7.4.130.0120.00516.50
7.4.120.0110.00816.42
7.4.110.0090.00916.48
7.4.100.0040.01216.32
7.4.90.0070.01016.52
7.4.80.0090.00919.39
7.4.70.0030.01316.54
7.4.60.0100.00616.56
7.4.50.0030.01416.35
7.4.40.0140.00616.23
7.4.30.0070.01016.46
7.4.00.0120.00314.85
7.3.330.0050.00013.14
7.3.320.0000.00513.15
7.3.310.0070.00016.24
7.3.300.0000.00616.29
7.3.290.0080.00816.25
7.3.280.0110.00916.29
7.3.270.0160.00317.40
7.3.260.0140.00316.48
7.3.250.0080.00916.44
7.3.240.0070.01016.30
7.3.230.0110.00816.44
7.3.210.0130.00916.29
7.3.200.0120.00916.21
7.3.190.0090.01216.29
7.3.180.0170.00616.39
7.3.170.0060.01116.46
7.3.160.0130.00316.32
7.3.00.0070.00716.27
7.2.330.0040.01316.27
7.2.320.0110.00716.47
7.2.310.0110.00516.54
7.2.300.0000.02316.19
7.2.290.0070.01616.44
7.2.130.0000.01416.84
7.2.120.0080.00816.61
7.2.110.0030.01016.57
7.2.100.0060.00316.61
7.2.90.0000.01516.59
7.2.80.0030.01016.54
7.2.70.0070.00416.63
7.2.60.0050.00816.57
7.2.50.0040.01116.45
7.2.40.0040.00816.24
7.2.30.0070.00716.46
7.2.20.0100.00716.71
7.2.10.0060.01016.67
7.2.00.0090.00718.13
7.1.250.0040.00715.65
7.1.240.0080.00015.48
7.1.230.0030.00915.33
7.1.220.0070.00415.48
7.1.210.0040.01115.49
7.1.200.0060.00415.45
7.1.190.0060.00915.36
7.1.180.0030.01315.57
7.1.170.0100.00715.33
7.1.160.0040.01115.68
7.1.150.0080.00415.46
7.1.140.0080.00315.20
7.1.130.0060.00615.32
7.1.120.0030.00715.42
7.1.110.0060.00815.34
7.1.100.0090.00116.63
7.1.90.0080.00615.63
7.1.80.0040.01115.53
7.1.70.0040.00416.21
7.1.60.0100.00917.54
7.1.50.0080.00916.23
7.1.40.0100.00315.75
7.1.30.0030.01315.21
7.1.20.0030.00615.49
7.1.10.0110.00415.40
7.1.00.0100.03518.99
7.0.330.0030.01015.41
7.0.320.0030.01015.21
7.0.310.0120.00315.21
7.0.300.0040.00715.00
7.0.290.0070.00715.23
7.0.280.0060.00614.89
7.0.270.0060.01115.23
7.0.260.0040.01115.13
7.0.250.0040.00815.02
7.0.240.0100.00715.26
7.0.230.0040.01115.34
7.0.220.0040.00715.09
7.0.210.0110.00315.36
7.0.200.0170.00314.92
7.0.190.0090.00315.24
7.0.180.0040.01115.02
7.0.170.0060.00615.06
7.0.160.0060.00615.42
7.0.150.0070.00715.16
7.0.140.0030.00615.21
7.0.130.0060.00615.29
7.0.120.0030.01315.28
7.0.110.0070.00715.27
7.0.100.0070.00715.32
7.0.90.0130.00315.05
7.0.80.0060.00915.25
7.0.70.0030.04718.45
7.0.60.0070.04218.35
7.0.50.0030.04818.77
7.0.40.0050.04316.68
7.0.30.0070.04016.75
7.0.20.0020.04816.59
7.0.10.0050.03316.75
7.0.00.0070.03416.82
5.6.380.0030.01013.73
5.6.370.0000.00814.12
5.6.360.0060.00913.91
5.6.350.0090.00614.16
5.6.340.0060.01014.02
5.6.330.0070.00713.79
5.6.320.0100.00713.91
5.6.310.0120.00014.13
5.6.300.0100.00314.14
5.6.290.0040.01114.24
5.6.280.0030.04017.66
5.6.270.0060.00314.37
5.6.260.0060.00614.29
5.6.250.0000.00914.50
5.6.240.0030.00914.13
5.6.230.0070.00713.98
5.6.220.0060.04217.54
5.6.210.0120.03517.39
5.6.200.0050.04417.57
5.6.190.0070.04017.78
5.6.180.0080.04017.49
5.6.170.0080.04317.65
5.6.160.0040.04417.64
5.6.150.0100.04317.53
5.6.140.0090.04217.46
5.6.130.0030.04617.51
5.6.120.0060.04017.45
5.6.110.0020.05017.50
5.6.100.0020.04517.56
5.6.90.0050.02817.46
5.6.80.0050.03017.15
5.6.70.0110.02617.18
5.6.60.0080.03817.35
5.6.50.0050.03517.40
5.6.40.0030.03017.22
5.6.30.0040.04617.29
5.6.20.0050.04317.37
5.6.10.0030.04217.24
5.6.00.0060.04417.12
5.5.380.0080.00311.18
5.5.370.0000.01011.18
5.5.360.0070.04315.81
5.5.350.0120.03515.81
5.5.340.0000.04616.00
5.5.330.0070.04016.04
5.5.320.0050.04216.09
5.5.310.0040.04016.04
5.5.300.0070.04015.99
5.5.290.0030.04616.03
5.5.280.0050.04416.02
5.5.270.0030.04315.90
5.5.260.0020.03116.02
5.5.250.0060.04315.95
5.5.240.0070.03515.74
5.5.230.0000.04015.69
5.5.220.0050.04215.71
5.5.210.0010.03815.71
5.5.200.0030.03415.68
5.5.190.0030.04415.70
5.5.180.0040.04215.75
5.5.170.0030.00911.18
5.5.160.0060.03815.71
5.5.150.0030.04315.70
5.5.140.0080.03615.68
5.5.130.0040.04215.76
5.5.120.0050.03315.70
5.5.110.0060.03815.66
5.5.100.0080.02815.66
5.5.90.0000.04315.66
5.5.80.0040.03815.60
5.5.70.0030.04115.64
5.5.60.0020.04415.66
5.5.50.0080.03315.63
5.5.40.0030.03315.63
5.5.30.0080.01815.63
5.5.20.0040.02515.67
5.5.10.0020.04315.62
5.5.00.0050.02515.62

preferences:
37.41 ms | 403 KiB | 5 Q