3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = hex2bin('000102030405060708090a0b0c0d0e0f'); $message = hex2bin('5061726101676f6e000300'); $iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); $encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $message, MCRYPT_MODE_CBC, $iv); $decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $encrypted, MCRYPT_MODE_CBC, $iv); // This should still be padded: var_dump(bin2hex($decrypted)); // Let's strip off the padding: $stripped = rtrim($decrypted, "\0"); var_dump(bin2hex($stripped)); // Does this equal the original message? var_dump($stripped === $message);

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.00416.88
8.3.50.0080.01321.88
8.3.40.0150.00018.79
8.3.30.0070.00719.11
8.3.20.0130.00620.35
8.3.10.0000.00821.77
8.3.00.0100.01017.63
8.2.180.0040.01518.41
8.2.170.0070.00722.96
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0030.00524.66
8.2.130.0100.01026.16
8.2.120.0040.00421.12
8.2.110.0070.00321.05
8.2.100.0070.00418.03
8.2.90.0030.00617.75
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.00717.91
8.2.50.0000.00818.07
8.2.40.0030.00619.89
8.2.30.0000.00917.88
8.2.20.0000.00817.77
8.2.10.0030.00517.88
8.2.00.0040.00418.14
8.1.280.0070.01125.92
8.1.270.0040.01120.43
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00922.16
8.1.230.0070.00422.67
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.01017.35
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0060.00320.27
8.1.160.0000.00718.75
8.1.150.0050.00518.73
8.1.140.0040.00417.34
8.1.130.0030.00617.39
8.1.120.0050.00317.48
8.1.110.0040.00417.45
8.1.100.0040.00417.38
8.1.90.0030.00517.29
8.1.80.0000.00717.41
8.1.70.0020.00617.35
8.1.60.0070.00517.53
8.1.50.0070.00517.53
8.1.40.0110.00317.52
8.1.30.0100.00317.61
8.1.20.0090.00417.59
8.1.10.0090.00517.48
8.1.00.0090.00417.48
8.0.300.0000.00719.79
8.0.290.0090.00016.58
8.0.280.0030.00318.35
8.0.270.0000.00717.26
8.0.260.0000.00716.74
8.0.250.0030.00316.97
8.0.240.0030.00316.92
8.0.230.0040.00416.96
8.0.220.0000.00816.91
8.0.210.0000.00716.75
8.0.200.0050.00316.92
8.0.190.0080.00416.89
8.0.180.0080.00416.81
8.0.170.0090.00216.92
8.0.160.0050.00616.78
8.0.150.0050.00616.76
8.0.140.0050.00716.76
8.0.130.0080.00415.61
8.0.120.0110.00116.79
8.0.110.0050.00416.86
8.0.100.0020.00816.81
8.0.90.0040.00616.80
8.0.80.0070.00516.79
8.0.70.0040.00616.84
8.0.60.0030.00616.89
8.0.50.0040.00516.82
8.0.30.0070.00716.85
8.0.20.0070.00616.99
8.0.10.0110.00216.99
8.0.00.0080.00816.77
7.4.330.0070.00417.52
7.4.320.0030.00316.55
7.4.300.0030.00316.53
7.4.290.0070.00516.40
7.4.280.0050.00716.49
7.4.270.0080.00516.53
7.4.260.0050.00716.52
7.4.250.0080.00516.52
7.4.240.0060.00416.50
7.4.230.0050.00516.48
7.4.220.0060.00716.54
7.4.210.0070.00516.46
7.4.200.0050.00516.51
7.4.190.0100.00216.57
7.4.180.0080.00316.61
7.4.160.0060.00616.49
7.4.150.0080.00616.61
7.4.140.0080.00816.78
7.4.130.0100.00516.45
7.4.120.0120.00616.45
7.4.110.0100.00716.41
7.4.100.0100.00816.45
7.4.90.0110.00616.44
7.4.80.0090.00816.71
7.4.70.0090.00816.50
7.4.60.0100.00716.45
7.4.50.0090.00816.43
7.4.40.0110.00616.41
7.4.30.0100.00716.51
7.4.20.0110.00616.41
7.4.10.0100.00816.32
7.4.00.0090.00916.17
7.3.330.0090.00515.25
7.3.320.0140.00215.14
7.3.310.0080.00316.21
7.3.300.0070.00316.23
7.3.290.0080.00716.17
7.3.280.0090.00716.27
7.3.270.0050.00816.44
7.3.260.0090.00616.24
7.3.250.0130.00616.29
7.3.240.0140.00516.29
7.3.230.0100.00816.32
7.3.220.0120.00616.23
7.3.210.0110.00816.25
7.3.200.0090.01016.25
7.3.190.0110.00716.26
7.3.180.0110.00616.28
7.3.170.0120.00716.28
7.3.160.0110.00716.27
7.3.150.0100.00816.26
7.3.140.0100.00916.31
7.3.130.0090.00816.10
7.3.120.0110.00816.05
7.3.110.0120.00716.05
7.3.100.0100.00815.91
7.3.90.0100.00715.99
7.3.80.0110.00715.94
7.3.70.0110.00615.87
7.3.60.0090.00815.83
7.3.50.0100.00815.84
7.3.40.0090.00815.85
7.3.30.0090.00815.74
7.3.20.0170.00916.17
7.3.10.0240.00716.11
7.3.00.0180.00616.11
7.2.340.0120.00516.88
7.2.330.0130.00816.40
7.2.320.0120.00916.43
7.2.310.0130.00816.40
7.2.300.0120.00916.43
7.2.290.0140.00916.40
7.2.280.0120.01016.48
7.2.270.0120.00916.40
7.2.260.0100.01016.28
7.2.250.0120.00816.19
7.2.240.0100.01016.22
7.2.230.0130.00716.14
7.2.220.0110.00916.16
7.2.210.0110.00916.10
7.2.200.0130.00716.08
7.2.190.0110.00816.24
7.2.180.0120.00716.07
7.2.170.0110.00816.00
7.2.160.0110.00815.96
7.2.150.0200.00716.30
7.2.140.0220.00616.33
7.2.130.0190.00916.55
7.2.120.0230.00816.32
7.2.110.0370.00716.26
7.2.100.0380.00716.23
7.2.90.0310.00916.22
7.2.80.0390.00916.27
7.2.70.0340.00816.20
7.2.60.0320.00816.42
7.2.50.0360.01016.23
7.2.40.0330.00716.26
7.2.30.0360.00816.30
7.2.20.0310.00916.25
7.2.10.0320.00816.24
7.2.00.0250.00816.56
7.1.330.0170.00615.61
7.1.320.0130.00815.36
7.1.310.0140.00815.29
7.1.300.0150.00715.34
7.1.290.0130.00715.29
7.1.280.0130.00615.25
7.1.270.0240.00615.17
7.1.260.0200.00915.13
7.1.250.0210.00915.11
7.1.240.0230.00715.13
7.1.230.0420.00715.03
7.1.220.0390.00815.05
7.1.210.0360.00715.06
7.1.200.0400.00615.09
7.1.190.0390.00915.07
7.1.180.0360.00715.06
7.1.170.0370.00814.99
7.1.160.0370.00815.05
7.1.150.0280.00815.04
7.1.140.0370.00815.10
7.1.130.0340.00915.04
7.1.120.0320.00615.11
7.1.110.0280.00915.13
7.1.100.0330.00815.18
7.1.90.0290.00815.16
7.1.80.0270.00915.20
7.1.70.0250.00715.26
7.1.60.0280.00716.69
7.1.50.0260.00816.65
7.1.40.0230.00816.59
7.1.30.0270.00816.62
7.1.20.0230.00816.63
7.1.10.0250.00715.18
7.1.00.0250.00715.14
7.0.330.0190.00815.06
7.0.320.0230.00714.88
7.0.310.0430.00614.83
7.0.300.0370.00714.81
7.0.290.0350.00814.79
7.0.280.0400.00814.78
7.0.270.0310.00814.77
7.0.260.0290.00714.86
7.0.250.0290.00714.89
7.0.240.0270.00814.97
7.0.230.0370.00814.93
7.0.220.0350.00815.01
7.0.210.0280.00714.92
7.0.200.0220.00815.00
7.0.190.0230.00815.00
7.0.180.0250.00714.96
7.0.170.0240.00614.99
7.0.160.0240.00714.93
7.0.150.0240.00814.90
7.0.140.0240.00714.87
7.0.130.0250.00714.90
7.0.120.0300.00814.96
7.0.110.0250.00714.90
7.0.100.0230.00714.85
7.0.90.0280.00614.88
7.0.80.0240.00614.88
7.0.70.0230.00614.93
7.0.60.0250.00815.02
7.0.50.0250.00715.10
7.0.40.0240.00714.91
7.0.30.0240.00614.94
7.0.20.0250.00714.89
7.0.10.0210.00814.90
7.0.00.0230.00814.92
5.6.400.0140.00615.31
5.6.390.0140.00715.22
5.6.380.0150.00915.14
5.6.370.0150.00915.11
5.6.360.0120.01015.11
5.6.350.0140.00915.18
5.6.340.0150.00815.13
5.6.330.0140.00915.17
5.6.320.0160.00815.16
5.6.310.0130.00815.18
5.6.300.0130.01215.58
5.6.290.0130.01215.65
5.6.280.0140.01015.59
5.6.270.0120.01215.59
5.6.260.0130.01015.62
5.6.250.0140.01315.61
5.6.240.0120.01415.61
5.6.230.0120.01215.63
5.6.220.0120.01215.61
5.6.210.0130.01215.62
5.6.200.0140.01215.59
5.6.190.0150.01115.58
5.6.180.0150.01115.60
5.6.170.0140.01215.56
5.6.160.0140.01215.54
5.6.150.0130.01215.59
5.6.140.0120.01315.61
5.6.130.0140.01115.62
5.6.120.0130.01215.58
5.6.110.0150.01215.58
5.6.100.0140.01215.56
5.6.90.0120.01315.53
5.6.80.0130.01215.46
5.6.70.0120.01315.48
5.6.60.0130.01315.43
5.6.50.0120.01315.43
5.6.40.0140.01115.45
5.6.30.0150.01115.48
5.6.20.0120.01215.45
5.6.10.0120.01215.44
5.6.00.0150.01115.41
5.5.380.0140.01115.23
5.5.370.0130.01315.14
5.5.360.0140.01115.13
5.5.350.0140.01115.11
5.5.340.0150.01215.19
5.5.330.0140.01315.16
5.5.320.0140.01315.18
5.5.310.0150.01115.21
5.5.300.0140.01215.15
5.5.290.0140.01215.20
5.5.280.0140.01215.22
5.5.270.0140.01215.18
5.5.260.0140.01215.16
5.5.250.0160.01115.11
5.5.240.0140.01215.07
5.5.230.0130.01215.08
5.5.220.0120.01515.11
5.5.210.0130.01215.08
5.5.200.0150.01215.03
5.5.190.0120.01515.06
5.5.180.0140.01215.04
5.5.170.0150.00814.99
5.5.160.0120.01315.05
5.5.150.0130.01115.01
5.5.140.0140.01015.04
5.5.130.0130.01315.02
5.5.120.0140.01114.99
5.5.110.0130.01315.00
5.5.100.0140.01115.03
5.5.90.0140.01015.05
5.5.80.0140.01115.07
5.5.70.0150.01015.05
5.5.60.0140.01115.01
5.5.50.0160.00915.04
5.5.40.0140.01115.04
5.5.30.0130.01215.02
5.5.20.0130.01315.04
5.5.10.0130.01214.99
5.5.00.0120.01215.03
5.4.450.0100.01012.78
5.4.440.0120.00912.86
5.4.430.0110.00912.84
5.4.420.0130.00812.81
5.4.410.0110.01012.87
5.4.400.0110.01012.77
5.4.390.0110.00913.18
5.4.380.0100.00912.76
5.4.370.0120.00912.76
5.4.360.0110.01012.74
5.4.350.0110.00912.80
5.4.340.0110.01112.76
5.4.330.0130.00512.25
5.4.320.0100.01112.79
5.4.310.0110.00912.77
5.4.300.0110.00912.78
5.4.290.0120.00812.77
5.4.280.0110.01012.79
5.4.270.0110.00912.79
5.4.260.0110.00912.78
5.4.250.0110.00912.78
5.4.240.0110.00912.75
5.4.230.0110.00812.75
5.4.220.0110.00912.71
5.4.210.0110.00912.71
5.4.200.0120.00912.73
5.4.190.0120.00912.71
5.4.180.0110.01012.73
5.4.170.0110.01012.70
5.4.160.0110.00912.72
5.4.150.0100.01112.74
5.4.140.0100.01012.58
5.4.130.0110.00912.57
5.4.120.0100.01012.59
5.4.110.0110.00912.58
5.4.100.0120.00712.58
5.4.90.0100.00812.58
5.4.80.0110.00912.60
5.4.70.0100.00912.59
5.4.60.0110.00912.60
5.4.50.0160.00912.56
5.4.40.0100.00812.58
5.4.30.0110.00712.58
5.4.20.0100.00812.60
5.4.10.0110.00812.59
5.4.00.0090.01012.47
5.3.290.0060.00212.80
5.1.60.0040.00210.83
4.4.10.0020.0019.11
4.3.110.0030.00218.77

preferences:
64.03 ms | 401 KiB | 5 Q