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(array( bin2hex($plaintext), bin2hex($decrypted) )); var_dump(array( 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.0120.00316.75
8.3.50.0150.00018.17
8.3.40.0140.00018.79
8.3.30.0080.00818.77
8.3.20.0040.00420.13
8.3.10.0030.00523.70
8.3.00.0080.00019.16
8.2.180.0120.00316.48
8.2.170.0120.00322.96
8.2.160.0100.01022.02
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00017.25
8.2.120.0070.00026.35
8.2.110.0060.00319.34
8.2.100.0080.00417.91
8.2.90.0000.00819.09
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0040.00419.45
8.2.30.0030.00320.54
8.2.20.0040.00417.54
8.2.10.0070.00018.04
8.2.00.0070.00017.98
8.1.280.0000.01625.92
8.1.270.0070.00422.09
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00619.40
8.1.230.0040.00817.54
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0040.00417.13
8.1.180.0000.00918.10
8.1.170.0030.00720.34
8.1.160.0000.00721.85
8.1.150.0040.00418.81
8.1.140.0080.00019.57
8.1.130.0070.00017.59
8.1.120.0030.00317.43
8.1.110.0000.00817.44
8.1.100.0000.00717.31
8.1.90.0030.00517.41
8.1.80.0080.00017.30
8.1.70.0040.00417.40
8.1.60.0060.00317.47
8.1.50.0090.00017.51
8.1.40.0080.00017.54
8.1.30.0040.00417.48
8.1.20.0030.00717.60
8.1.10.0040.00417.63
8.1.00.0030.00617.51
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.38
8.0.270.0000.00717.20
8.0.260.0000.00617.14
8.0.250.0040.00416.82
8.0.240.0030.00616.91
8.0.230.0000.00716.83
8.0.220.0030.00516.80
8.0.210.0000.00816.85
8.0.200.0030.00316.91
8.0.190.0060.00316.93
8.0.180.0040.00416.88
8.0.170.0030.00516.97
8.0.160.0070.00016.90
8.0.150.0030.00316.83
8.0.140.0100.00016.86
8.0.130.0000.00813.20
8.0.120.0030.00516.80
8.0.110.0040.00416.88
8.0.100.0040.00416.95
8.0.90.0000.00716.70
8.0.80.0090.00616.91
8.0.70.0050.00316.88
8.0.60.0000.00716.75
8.0.50.0000.00716.83
8.0.30.0080.01017.01
8.0.20.0100.00917.40
8.0.10.0070.00016.95
8.0.00.0120.00516.82
7.4.330.0050.00016.80
7.4.320.0030.00316.54
7.4.300.0000.00716.48
7.4.290.0030.00316.54
7.4.280.0030.00516.43
7.4.270.0040.00416.49
7.4.260.0070.00016.50
7.4.250.0030.00616.46
7.4.240.0040.00416.52
7.4.230.0000.00716.37
7.4.220.0160.00916.52
7.4.210.0070.00716.54
7.4.200.0050.00316.54
7.4.160.0070.00716.51
7.4.150.0030.01417.40
7.4.140.0120.00717.86
7.4.130.0090.00916.54
7.4.120.0110.00816.51
7.4.110.0040.01516.53
7.4.100.0040.01516.71
7.4.90.0090.00916.41
7.4.80.0120.00619.39
7.4.70.0070.01416.53
7.4.60.0100.00716.42
7.4.50.0120.00416.65
7.4.40.0070.01016.33
7.4.30.0160.00616.66
7.4.10.0090.01214.68
7.4.00.0080.00815.07
7.3.330.0060.00013.02
7.3.320.0060.00013.10
7.3.310.0020.00516.32
7.3.300.0030.00316.36
7.3.290.0080.00616.25
7.3.280.0070.01016.27
7.3.270.0060.01317.40
7.3.260.0090.01316.35
7.3.250.0090.00816.26
7.3.240.0100.01016.34
7.3.230.0140.00316.39
7.3.210.0110.00716.53
7.3.200.0090.01116.69
7.3.190.0090.00616.50
7.3.180.0110.01016.36
7.3.170.0090.01016.45
7.3.160.0090.01116.52
7.3.130.0040.01414.92
7.3.120.0070.01314.70
7.3.110.0150.00314.99
7.3.100.0000.01514.77
7.3.90.0100.00714.86
7.3.80.0000.00914.54
7.3.70.0080.00814.95
7.3.60.0040.01114.83
7.3.50.0030.01014.85
7.3.40.0080.00814.84
7.3.30.0040.01114.85
7.3.20.0110.00416.72
7.3.10.0090.00316.39
7.3.00.0090.00616.50
7.2.330.0130.00416.62
7.2.320.0110.00716.25
7.2.310.0120.00616.51
7.2.300.0040.01416.43
7.2.290.0090.00916.38
7.2.260.0140.00314.77
7.2.250.0090.00614.84
7.2.240.0070.00715.04
7.2.230.0140.00414.98
7.2.220.0000.01815.11
7.2.210.0030.00914.99
7.2.200.0070.00714.96
7.2.190.0070.01114.61
7.2.180.0060.00914.98
7.2.170.0030.01314.94
7.2.160.0040.00814.93
7.2.150.0030.01016.81
7.2.140.0030.01016.53
7.2.130.0050.00516.58
7.2.120.0030.01016.87
7.2.110.0110.00716.81
7.2.100.0040.01116.54
7.2.90.0030.01316.91
7.2.80.0040.01116.90
7.2.70.0040.00716.83
7.2.60.0030.01316.75
7.2.50.0030.01416.61
7.2.40.0060.00916.69
7.2.30.0060.00316.98
7.2.20.0030.01016.84
7.2.10.0120.00616.89
7.2.00.0080.00517.99
7.1.330.0030.01015.76
7.1.320.0080.01115.68
7.1.310.0070.00715.70
7.1.300.0030.01015.52
7.1.290.0100.00315.54
7.1.280.0000.00915.41
7.1.270.0110.00315.49
7.1.260.0060.00615.71
7.1.250.0110.00415.80
7.1.240.0040.00715.63
7.1.230.0040.01115.48
7.1.220.0100.00715.49
7.1.210.0060.01215.72
7.1.200.0040.00715.75
7.1.190.0060.00615.38
7.1.180.0110.00315.74
7.1.170.0030.01015.66
7.1.160.0060.00615.49
7.1.150.0080.00315.48
7.1.140.0040.00815.79
7.1.130.0060.00315.72
7.1.120.0050.00315.46
7.1.110.0000.00815.64
7.1.100.0030.01016.70
7.1.90.0000.00915.50
7.1.80.0080.00615.71
7.1.70.0080.00316.40
7.1.60.0080.00817.56
7.1.50.0080.00916.20
7.1.40.0060.00915.44
7.1.30.0060.00315.38
7.1.20.0090.00315.70
7.1.10.0000.01515.56
7.1.00.0030.04619.10
7.0.330.0030.01015.24
7.0.320.0100.00315.37
7.0.310.0030.01015.33
7.0.300.0090.00315.18
7.0.290.0070.00715.31
7.0.280.0000.01315.32
7.0.270.0030.00715.34
7.0.260.0060.00615.28
7.0.250.0060.00915.36
7.0.240.0040.00815.48
7.0.230.0030.00715.11
7.0.220.0090.00615.19
7.0.210.0000.00915.47
7.0.200.0180.00614.73
7.0.190.0030.00915.49
7.0.180.0040.00415.28
7.0.170.0030.00615.15
7.0.160.0100.00315.45
7.0.150.0030.01215.33
7.0.140.0060.00715.05
7.0.130.0100.00315.27
7.0.120.0000.01015.50
7.0.110.0060.00915.43
7.0.100.0000.00815.36
7.0.90.0040.01115.16
7.0.80.0080.00614.97
7.0.70.0040.00915.30
7.0.60.0120.03917.68
7.0.50.0100.04216.67
7.0.40.0030.02816.61
7.0.30.0100.02916.71
7.0.20.0210.02616.72
7.0.10.0130.04316.74
7.0.00.0030.02816.88
5.6.400.0060.00914.11
5.6.390.0000.01414.38
5.6.380.0000.01514.42
5.6.370.0070.00714.19
5.6.360.0110.00414.43
5.6.350.0070.00714.38
5.6.340.0000.01314.28
5.6.330.0040.01214.16
5.6.320.0060.00614.32
5.6.310.0080.00814.16
5.6.300.0030.01314.29
5.6.290.0040.01414.19
5.6.280.0070.03717.63
5.6.270.0070.00714.43
5.6.260.0040.00414.13
5.6.250.0000.01613.94
5.6.240.0080.00714.06
5.6.230.0040.00814.29
5.6.220.0090.00614.27
5.6.210.0050.02717.54
5.6.200.0080.04116.12
5.6.190.0030.02617.31
5.6.180.0210.02017.33
5.6.170.0160.04617.26
5.6.160.0070.04317.50
5.6.150.0020.04716.13
5.6.140.0060.04316.17
5.6.130.0030.04416.24
5.6.120.0070.02217.55
5.6.110.0070.04517.61
5.6.100.0060.03717.56
5.6.90.0050.04017.76
5.6.80.0050.03917.25
5.6.70.0080.00314.11
5.6.60.0030.01013.99
5.6.50.0050.00514.18
5.6.40.0100.00714.00
5.6.30.0030.00913.97
5.6.20.0060.00813.99
5.6.10.0060.00914.18
5.6.00.0030.00614.05
5.5.380.0040.00814.41
5.5.370.0070.00714.10
5.5.360.0070.00714.27
5.5.350.1980.02517.26
5.5.340.0070.04315.97
5.5.330.0060.04017.17
5.5.320.0020.04417.18
5.5.310.0150.02717.25
5.5.300.0060.03816.15
5.5.290.0170.01816.23
5.5.280.0050.04217.58
5.5.270.0070.04817.41
5.5.260.0100.03817.54
5.5.250.0080.03817.37
5.5.240.0070.04517.35
5.5.230.0030.00913.92
5.5.220.0000.00913.93
5.5.210.0030.00914.27
5.5.200.0030.00913.80
5.5.190.0000.01413.81
5.5.180.0060.00914.14
5.5.170.0100.00614.07
5.5.160.0030.01014.27
5.5.150.0000.01814.09
5.5.140.0100.00614.06
5.5.130.0060.00914.15
5.5.120.0060.00914.13
5.5.110.0030.01314.10
5.5.100.0000.01413.83
5.5.90.0090.00614.16
5.5.80.0030.01014.04
5.5.70.0040.01113.62
5.5.60.0000.01414.08
5.5.50.0030.01013.76
5.5.40.0080.00813.94
5.5.30.0110.00713.91
5.5.20.0030.00713.66
5.5.10.0070.01113.99
5.5.00.0060.00913.50

preferences:
67.01 ms | 400 KiB | 5 Q