3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'hello'; $key = 'test'; echo bin2hex(mcrypt_encrypt(MCRYPT_ARCFOUR, $key, $text, MCRYPT_MODE_STREAM, '')); echo "\n"; echo bin2hex(mcrypt_decrypt(MCRYPT_ARCFOUR, $key, $text, MCRYPT_MODE_STREAM, '')); $encrypted = hex2bin('c6ea4b7d8f'); echo "\n"; echo mcrypt_encrypt(MCRYPT_ARCFOUR, $key, $encrypted, MCRYPT_MODE_STREAM, ''); echo "\n"; echo mcrypt_decrypt(MCRYPT_ARCFOUR, $key, $encrypted, MCRYPT_MODE_STREAM, ''); /* --- using OpenSSL --- */ echo "\n"; echo bin2hex(openssl_encrypt($text, 'RC4', pack('H*', $key), OPENSSL_ZERO_PADDING | OPENSSL_RAW_DATA));

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.20.0060.00917.69
8.4.10.0000.00917.79
8.3.150.0090.00616.77
8.3.140.0000.00816.60
8.3.130.0050.00318.38
8.3.120.0090.00919.04
8.3.110.0080.00020.94
8.3.100.0110.00824.06
8.3.90.0040.01126.77
8.3.80.0060.00316.50
8.3.70.0080.00816.58
8.3.60.0140.00416.75
8.3.50.0150.01221.27
8.3.40.0140.00718.83
8.3.30.0160.00418.80
8.3.20.0000.00818.77
8.3.10.0090.00621.53
8.3.00.0070.01120.95
8.2.260.0050.00317.36
8.2.250.0090.00616.96
8.2.240.0060.00316.94
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0070.01126.77
8.2.200.0060.00316.63
8.2.190.0110.00416.63
8.2.180.0150.00716.64
8.2.170.0100.01022.96
8.2.160.0140.00319.29
8.2.150.0030.00624.18
8.2.140.0090.00024.66
8.2.130.0120.00326.16
8.2.120.0050.00219.83
8.2.110.0070.00420.82
8.2.100.0000.01218.04
8.2.90.0030.00619.22
8.2.80.0080.00017.97
8.2.70.0090.00017.63
8.2.60.0030.00517.92
8.2.50.0080.00018.10
8.2.40.0030.00522.32
8.2.30.0040.00420.74
8.2.20.0040.00417.76
8.2.10.0000.00817.95
8.2.00.0000.00817.94
8.1.310.0040.00418.46
8.1.300.0070.01017.93
8.1.290.0040.00818.88
8.1.280.0150.00425.92
8.1.270.0160.00323.78
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0090.00020.78
8.1.230.0130.00017.53
8.1.220.0060.00317.74
8.1.210.0090.00018.77
8.1.200.0030.00617.35
8.1.190.0090.00017.23
8.1.180.0040.00418.10
8.1.170.0080.00018.55
8.1.160.0030.00318.90
8.1.150.0000.00718.84
8.1.140.0040.00419.52
8.1.130.0000.00717.53
8.1.120.0000.00817.46
8.1.110.0000.00717.39
8.1.100.0040.00417.39
8.1.90.0030.00417.42
8.1.80.0040.00417.45
8.1.70.0030.00317.26
8.1.60.0000.00817.43
8.1.50.0050.00317.45
8.1.40.0070.00017.40
8.1.30.0000.00817.64
8.1.20.0000.00817.67
8.1.10.0030.00517.28
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.39
8.0.270.0000.00717.19
8.0.260.0000.00617.21
8.0.250.0070.00016.88
8.0.240.0060.00016.95
8.0.230.0040.00316.84
8.0.220.0040.00416.77
8.0.210.0050.00216.91
8.0.200.0030.00317.00
8.0.190.0000.00717.01
8.0.180.0040.00416.81
8.0.170.0050.00316.86
8.0.160.0040.00416.93
8.0.150.0000.00816.75
8.0.140.0040.00416.85
8.0.130.0000.00613.36
8.0.120.0040.00416.86
8.0.110.0020.00516.95
8.0.100.0040.00416.97
8.0.90.0040.00416.79
8.0.80.0060.01316.81
8.0.70.0040.00416.79
8.0.60.0080.00016.78
8.0.50.0000.00716.86
8.0.30.0130.00517.00
8.0.20.0110.01117.40
8.0.10.0000.00717.02
8.0.00.0140.00516.62
7.4.330.0050.00015.08
7.4.320.0070.00016.55
7.4.300.0030.00316.62
7.4.290.0040.00416.66
7.4.280.0070.00016.61
7.4.270.0000.00716.38
7.4.260.0070.00016.40
7.4.250.0070.00016.47
7.4.240.0040.00316.55
7.4.230.0000.00716.55
7.4.220.0060.02216.63
7.4.210.0130.00716.54
7.4.200.0000.00716.62
7.4.160.0120.00316.44
7.4.150.0070.01017.40
7.4.140.0120.01017.86
7.4.130.0070.01216.58
7.4.120.0080.00816.51
7.4.110.0070.01016.41
7.4.100.0120.00616.66
7.4.90.0090.01516.48
7.4.80.0120.01219.39
7.4.70.0150.00316.59
7.4.60.0130.00316.53
7.4.50.0060.00916.49
7.4.40.0090.00816.58
7.4.30.0170.00016.50
7.4.00.0060.01015.10
7.3.330.0030.00313.21
7.3.320.0050.00013.16
7.3.310.0060.00316.25
7.3.300.0020.00516.12
7.3.290.0030.00416.24
7.3.280.0080.00916.28
7.3.270.0120.00617.40
7.3.260.0090.00916.27
7.3.250.0110.00816.28
7.3.240.0080.00816.28
7.3.230.0100.00716.44
7.3.210.0100.00716.38
7.3.200.0120.00616.45
7.3.190.0030.01416.36
7.3.180.0090.00616.52
7.3.170.0170.00016.37
7.3.160.0100.01016.32
7.3.120.0050.01414.51
7.3.110.0140.00414.73
7.3.100.0070.00914.77
7.3.90.0030.01114.81
7.3.80.0080.00514.70
7.3.70.0080.00614.74
7.3.60.0050.00714.82
7.3.50.0100.00314.89
7.3.40.0100.00514.82
7.3.30.0060.00614.79
7.3.20.0030.00916.60
7.3.10.0070.00616.62
7.3.00.0030.01016.64
7.2.330.0080.01116.27
7.2.320.0070.01716.41
7.2.310.0030.01316.61
7.2.300.0100.00616.55
7.2.290.0160.00016.48
7.2.250.0080.01114.84
7.2.240.0100.00914.88
7.2.230.0060.00814.64
7.2.220.0060.00614.70
7.2.210.0050.00915.03
7.2.200.0030.01114.82
7.2.190.0030.01114.84
7.2.180.0060.00714.99
7.2.170.0020.01014.91
7.2.160.0000.01514.99
7.2.150.0030.01016.85
7.2.140.0000.01316.79
7.2.130.0070.00716.79
7.2.120.0020.01016.74
7.2.110.0050.01016.73
7.2.100.0050.00716.88
7.2.90.0080.00416.60
7.2.80.0050.00916.72
7.2.70.0070.00416.82
7.2.60.0050.01016.67
7.2.50.0050.00616.54
7.2.40.0060.00916.68
7.2.30.0050.00616.84
7.2.20.0070.00816.87
7.2.10.0070.00516.75
7.2.00.0070.00617.66
7.1.330.0050.01015.76
7.1.320.0090.00415.67
7.1.310.0010.01415.52
7.1.300.0080.00615.41
7.1.290.0060.00515.63
7.1.280.0080.00515.62
7.1.270.0050.00615.40
7.1.260.0050.00815.52
7.1.250.0030.00715.70
7.1.240.0090.00615.76
7.1.230.0030.01015.69
7.1.220.0030.00615.55
7.1.210.0000.01115.66
7.1.200.0080.00615.67
7.1.190.0040.00415.61
7.1.180.0130.00015.40
7.1.170.0040.00715.55
7.1.160.0030.01015.76
7.1.150.0030.00915.76
7.1.140.0100.00615.64
7.1.130.0030.00715.47
7.1.120.0090.00315.73
7.1.110.0070.00715.36
7.1.100.0030.00916.80
7.1.90.0060.00915.41
7.1.80.0000.01515.63
7.1.70.0020.00616.19
7.1.60.0070.01218.00
7.1.50.0050.01316.04
7.1.40.0030.01015.57
7.1.30.0070.00715.67
7.1.20.0080.00615.46
7.1.10.0130.00015.66
7.1.00.0060.04119.06
7.0.330.0000.01215.38
7.0.320.0030.00715.12
7.0.310.0040.00815.18
7.0.300.0030.00715.24
7.0.290.0090.00315.30
7.0.280.0000.01315.21
7.0.270.0070.00715.32
7.0.260.0030.00615.27
7.0.250.0030.01015.16
7.0.240.0090.00015.04
7.0.230.0110.00415.14
7.0.220.0060.00615.41
7.0.210.0040.00815.42
7.0.200.0200.00314.88
7.0.190.0040.01115.29
7.0.180.0040.00815.10
7.0.170.0000.01415.25
7.0.160.0070.00715.23
7.0.150.0060.00315.39
7.0.140.0100.00315.52
7.0.130.0100.00315.46
7.0.120.0040.01115.27
7.0.110.0030.01015.45
7.0.100.0030.01015.46
7.0.90.0080.00415.40
7.0.80.0070.00715.41
7.0.70.0040.00415.48
7.0.60.0190.03817.72
7.0.50.0050.02316.58
7.0.40.0170.04016.87
7.0.30.0140.03016.75
7.0.20.0130.03116.90
7.0.10.0050.04216.84
7.0.00.0120.03016.87
5.6.400.0040.01114.46
5.6.390.0000.01214.38
5.6.380.0040.00414.39
5.6.370.0030.00614.23
5.6.360.0040.01214.42
5.6.350.0080.00314.10
5.6.340.0070.00714.43
5.6.330.0030.01414.05
5.6.320.0030.00914.43
5.6.310.0040.01114.31
5.6.300.0070.00813.99
5.6.290.0090.00614.09
5.6.280.0040.04117.62
5.6.270.0040.00714.33
5.6.260.0050.00614.13
5.6.250.0040.00714.00
5.6.240.0000.01014.06
5.6.230.0000.00814.14
5.6.220.0090.00314.41
5.6.210.0080.02017.36
5.6.200.0040.03616.32
5.6.190.0100.03917.43
5.6.180.0170.02717.33
5.6.170.0140.02817.20
5.6.160.0160.02917.23
5.6.150.0100.03517.23
5.6.140.0140.03117.27
5.6.130.0080.03517.30
5.6.120.0170.02917.29
5.6.110.0080.03317.29
5.6.100.0280.03017.27
5.6.90.0100.03117.21
5.6.80.0100.03016.83
5.6.70.0130.03016.94
5.6.60.0100.03416.86
5.6.50.0200.03116.99
5.6.40.0110.02816.77
5.6.30.0180.02517.04
5.6.20.0200.03516.96
5.6.10.0120.03416.81
5.6.00.0150.02816.94
5.5.380.0070.00714.01
5.5.370.0060.00313.75
5.5.360.0000.01414.40
5.5.350.0120.04517.17
5.5.340.0080.04215.96
5.5.330.0100.04117.11
5.5.320.0100.03517.28
5.5.310.0170.02717.35
5.5.300.0110.03417.00
5.5.290.0150.02917.17
5.5.280.0150.03017.08
5.5.270.0200.03117.08
5.5.260.0230.03717.04
5.5.250.0100.03017.04
5.5.240.0230.02816.60
5.5.230.0150.02916.77
5.5.220.0220.02916.70
5.5.210.0130.03016.60
5.5.200.0170.03716.83
5.5.190.0110.03316.97
5.5.180.0130.03116.82
5.5.170.0030.00713.89
5.5.160.0120.03516.91
5.5.150.0080.03516.73
5.5.140.0150.02516.78
5.5.130.0160.03016.85
5.5.120.0110.02916.74
5.5.110.0080.03516.82
5.5.100.0100.03516.66
5.5.90.0130.03516.81
5.5.80.0100.03316.71
5.5.70.0100.03416.78
5.5.60.0100.03216.77
5.5.50.0120.03616.60
5.5.40.0290.02716.75
5.5.30.0130.02516.85
5.5.20.0290.03416.82
5.5.10.0120.02816.79
5.5.00.0200.03116.66

preferences:
63.43 ms | 403 KiB | 5 Q