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.5.30.0070.00517.51
8.5.20.0170.00716.80
8.5.10.0190.00518.45
8.5.00.0220.00918.40
8.4.180.0230.00919.75
8.4.170.0220.01119.97
8.4.160.0230.00920.03
8.4.150.0190.00416.90
8.4.140.0210.01217.79
8.4.130.0200.00817.95
8.4.120.0270.00819.26
8.4.110.0250.00819.19
8.4.100.0270.00918.33
8.4.90.0220.00519.19
8.4.80.0210.00718.85
8.4.70.0270.00817.92
8.4.60.0240.00919.14
8.4.50.0230.01118.15
8.4.40.0260.00317.83
8.4.30.0240.00617.80
8.4.20.0260.01017.96
8.4.10.0210.00817.66
8.3.300.0270.00618.86
8.3.290.0190.01119.52
8.3.280.0270.00918.25
8.3.270.0250.01016.52
8.3.260.0250.00616.70
8.3.250.0230.00717.75
8.3.240.0230.00816.51
8.3.230.0260.00816.52
8.3.220.0230.00317.05
8.3.210.0230.01016.65
8.3.200.0270.00816.62
8.3.190.0220.01116.86
8.3.180.0210.01017.58
8.3.170.0250.00716.59
8.3.160.0250.00916.92
8.3.150.0230.01017.47
8.3.140.0260.00916.80
8.3.130.0210.00716.51
8.3.120.0250.00717.67
8.3.110.0210.00618.76
8.3.100.0230.00416.64
8.3.90.0240.00821.61
8.3.80.0240.00517.58
8.3.70.0200.01216.40
8.3.60.0280.00516.80
8.3.50.0170.01320.11
8.3.40.0260.00418.39
8.3.30.0180.00818.47
8.3.20.0200.00819.16
8.3.10.0150.00819.94
8.3.00.0120.01017.79
8.2.300.0290.00919.26
8.2.290.0200.00818.57
8.2.280.0200.00517.51
8.2.270.0200.00916.90
8.2.260.0190.00516.52
8.2.250.0200.00416.65
8.2.240.0210.00516.99
8.2.230.0190.00619.56
8.2.220.0200.00520.33
8.2.210.0200.00621.64
8.2.200.0190.00717.58
8.2.190.0170.01116.68
8.2.180.0180.01217.48
8.2.170.0200.00620.51
8.2.160.0210.00520.47
8.2.150.0200.00321.71
8.2.140.0180.00721.27
8.2.130.0220.00821.94
8.2.120.0170.00619.56
8.2.110.0180.00719.40
8.2.100.0160.00818.03
8.2.90.0090.00617.85
8.2.80.0130.00317.98
8.2.70.0170.00617.66
8.2.60.0140.00817.93
8.2.50.0140.00817.88
8.2.40.0150.01118.85
8.2.30.0140.00917.84
8.2.20.0140.00917.79
8.2.10.0190.00817.75
8.2.00.0190.00717.90
8.1.340.0240.00919.55
8.1.330.0180.01019.14
8.1.320.0210.00716.27
8.1.310.0160.00717.16
8.1.300.0200.00416.16
8.1.290.0200.00423.42
8.1.280.0210.00921.09
8.1.270.0160.01018.94
8.1.260.0200.00421.93
8.1.250.0190.00422.86
8.1.240.0200.01119.78
8.1.230.0190.01020.02
8.1.220.0150.00917.69
8.1.210.0160.00818.08
8.1.200.0160.00817.47
8.1.190.0160.00717.40
8.1.180.0190.00517.75
8.1.170.0160.00718.88
8.1.160.0150.00818.13
8.1.150.0180.00718.15
8.1.140.0200.00417.34
8.1.130.0160.00617.50
8.1.120.0170.00517.51
8.1.110.0170.00517.64
8.1.100.0140.00917.53
8.1.90.0170.00817.30
8.1.80.0140.00917.58
8.1.70.0110.00817.46
8.1.60.0150.00717.57
8.1.50.0160.00517.54
8.1.40.0160.00517.57
8.1.30.0160.00517.70
8.1.20.0150.00617.69
8.1.10.0150.00517.52
8.1.00.0140.00617.46
8.0.300.0140.00818.39
8.0.290.0180.00416.69
8.0.280.0150.00617.69
8.0.270.0130.00817.21
8.0.260.0130.00816.89
8.0.250.0150.00617.01
8.0.240.0140.00716.99
8.0.230.0150.00716.95
8.0.220.0140.00716.82
8.0.210.0130.01016.81
8.0.200.0140.00416.98
8.0.190.0160.00516.95
8.0.180.0130.00716.91
8.0.170.0150.00516.97
8.0.160.0120.00816.92
8.0.150.0110.00716.80
8.0.140.0110.00716.81
8.0.130.0130.00515.99
8.0.120.0150.00316.81
8.0.110.0090.00416.89
8.0.100.0070.00716.81
8.0.90.0080.00716.83
8.0.80.0110.00516.80
8.0.70.0080.00716.86
8.0.60.0080.00616.91
8.0.50.0090.00516.82
8.0.30.0090.00816.87
8.0.20.0090.00717.00
8.0.10.0130.00317.01
8.0.00.0090.00916.80
7.4.330.0120.00517.33
7.4.320.0160.00516.66
7.4.300.0110.00416.58
7.4.290.0140.00616.44
7.4.280.0130.00716.52
7.4.270.0130.00716.56
7.4.260.0120.00716.55
7.4.250.0130.00516.56
7.4.240.0090.00416.53
7.4.230.0070.00616.52
7.4.220.0100.00716.56
7.4.210.0100.00616.49
7.4.200.0090.00516.51
7.4.190.0140.00316.63
7.4.180.0130.00316.64
7.4.160.0100.00616.54
7.4.150.0100.00616.62
7.4.140.0100.00816.75
7.4.130.0120.00516.46
7.4.120.0130.00616.47
7.4.110.0120.00716.43
7.4.100.0120.00816.47
7.4.90.0120.00616.44
7.4.80.0100.00816.69
7.4.70.0110.00816.52
7.4.60.0110.00716.45
7.4.50.0100.00816.43
7.4.40.0120.00616.42
7.4.30.0110.00716.52
7.4.20.0120.00616.42
7.4.10.0110.00816.33
7.4.00.0100.00816.19
7.3.330.0130.00615.59
7.3.320.0170.00315.48
7.3.310.0100.00416.26
7.3.300.0090.00416.27
7.3.290.0100.00716.19
7.3.280.0110.00716.28
7.3.270.0080.00816.44
7.3.260.0110.00616.24
7.3.250.0140.00716.31
7.3.240.0150.00616.30
7.3.230.0110.00816.31
7.3.220.0140.00616.25
7.3.210.0120.00816.26
7.3.200.0100.01016.26
7.3.190.0120.00716.25
7.3.180.0120.00616.27
7.3.170.0130.00716.28
7.3.160.0120.00716.27
7.3.150.0110.00816.27
7.3.140.0110.00916.31
7.3.130.0100.00816.12
7.3.120.0120.00816.06
7.3.110.0130.00716.07
7.3.100.0100.00815.93
7.3.90.0110.00816.02
7.3.80.0110.00715.95
7.3.70.0120.00615.90
7.3.60.0100.00815.85
7.3.50.0110.00815.87
7.3.40.0090.00815.87
7.3.30.0100.00815.77
7.3.20.0180.00916.18
7.3.10.0240.00716.12
7.3.00.0180.00616.12
7.2.340.0120.00516.86
7.2.330.0140.00816.41
7.2.320.0130.00916.44
7.2.310.0130.00816.42
7.2.300.0130.00916.44
7.2.290.0150.00816.41
7.2.280.0120.00916.48
7.2.270.0130.00916.41
7.2.260.0110.01016.29
7.2.250.0130.00816.20
7.2.240.0110.00916.23
7.2.230.0140.00816.15
7.2.220.0120.00916.18
7.2.210.0120.00816.11
7.2.200.0140.00716.11
7.2.190.0110.00816.25
7.2.180.0120.00716.09
7.2.170.0120.00816.02
7.2.160.0120.00815.98
7.2.150.0210.00716.32
7.2.140.0220.00616.34
7.2.130.0200.00916.56
7.2.120.0230.00816.33
7.2.110.0370.00716.27
7.2.100.0380.00716.26
7.2.90.0310.00916.24
7.2.80.0380.00916.29
7.2.70.0330.00916.21
7.2.60.0320.00816.43
7.2.50.0350.01016.25
7.2.40.0320.00716.27
7.2.30.0360.00816.31
7.2.20.0310.00916.27
7.2.10.0320.00816.26
7.2.00.0250.00816.56
7.1.330.0170.00715.62
7.1.320.0140.00815.38
7.1.310.0150.00815.31
7.1.300.0150.00715.36
7.1.290.0140.00715.30
7.1.280.0140.00615.26
7.1.270.0240.00615.18
7.1.260.0200.00915.15
7.1.250.0210.00915.13
7.1.240.0230.00715.15
7.1.230.0410.00715.05
7.1.220.0390.00815.08
7.1.210.0360.00715.08
7.1.200.0390.00615.11
7.1.190.0380.00915.10
7.1.180.0360.00715.08
7.1.170.0360.00815.01
7.1.160.0370.00815.06
7.1.150.0280.00815.06
7.1.140.0370.00815.11
7.1.130.0340.00915.14
7.1.120.0320.00615.18
7.1.110.0290.00915.22
7.1.100.0320.00815.27
7.1.90.0290.00815.25
7.1.80.0270.00915.29
7.1.70.0250.00715.33
7.1.60.0270.00716.71
7.1.50.0260.00816.68
7.1.40.0230.00816.62
7.1.30.0270.00816.65
7.1.20.0230.00816.66
7.1.10.0250.00715.25
7.1.00.0250.00715.21
7.0.330.0190.00715.14
7.0.320.0230.00714.97
7.0.310.0420.00614.92
7.0.300.0370.00714.89
7.0.290.0350.00814.88
7.0.280.0390.00814.87
7.0.270.0310.00814.87
7.0.260.0290.00714.94
7.0.250.0290.00714.98
7.0.240.0270.00815.06
7.0.230.0360.00815.02
7.0.220.0340.00815.09
7.0.210.0270.00715.00
7.0.200.0230.00815.08
7.0.190.0230.00815.08
7.0.180.0250.00715.04
7.0.170.0240.00615.07
7.0.160.0240.00715.01
7.0.150.0240.00814.99
7.0.140.0240.00714.96
7.0.130.0250.00714.99
7.0.120.0300.00815.04
7.0.110.0240.00714.98
7.0.100.0230.00714.93
7.0.90.0270.00614.96
7.0.80.0240.00614.96
7.0.70.0230.00615.00
7.0.60.0250.00715.09
7.0.50.0250.00715.16
7.0.40.0240.00714.98
7.0.30.0230.00615.02
7.0.20.0240.00715.09
7.0.10.0210.00814.98
7.0.00.0230.00815.00
5.6.400.0140.00615.34
5.6.390.0140.00715.25
5.6.380.0160.00915.17
5.6.370.0150.00915.15
5.6.360.0130.01015.13
5.6.350.0150.00915.21
5.6.340.0160.00815.17
5.6.330.0140.00915.20
5.6.320.0160.00815.19
5.6.310.0130.00915.21
5.6.300.0140.01115.59
5.6.290.0130.01215.66
5.6.280.0150.01015.61
5.6.270.0130.01215.60
5.6.260.0130.01015.64
5.6.250.0140.01315.62
5.6.240.0130.01315.66
5.6.230.0130.01115.63
5.6.220.0130.01215.61
5.6.210.0140.01215.64
5.6.200.0150.01215.61
5.6.190.0150.01115.59
5.6.180.0150.01115.61
5.6.170.0140.01115.57
5.6.160.0140.01215.56
5.6.150.0140.01215.60
5.6.140.0120.01215.62
5.6.130.0140.01115.63
5.6.120.0140.01115.60
5.6.110.0150.01215.58
5.6.100.0140.01215.57
5.6.90.0130.01315.54
5.6.80.0130.01215.48
5.6.70.0130.01215.50
5.6.60.0130.01215.45
5.6.50.0120.01315.45
5.6.40.0150.01115.46
5.6.30.0150.01115.49
5.6.20.0130.01215.47
5.6.10.0130.01215.46
5.6.00.0150.01115.43
5.5.380.0140.01115.24
5.5.370.0130.01315.17
5.5.360.0150.01115.15
5.5.350.0140.01115.13
5.5.340.0150.01115.21
5.5.330.0140.01315.19
5.5.320.0140.01215.20
5.5.310.0150.01115.23
5.5.300.0140.01215.17
5.5.290.0140.01215.21
5.5.280.0140.01215.24
5.5.270.0140.01215.21
5.5.260.0150.01115.19
5.5.250.0160.01115.15
5.5.240.0140.01215.10
5.5.230.0140.01215.10
5.5.220.0130.01515.14
5.5.210.0140.01215.12
5.5.200.0150.01215.06
5.5.190.0120.01515.09
5.5.180.0140.01115.07
5.5.170.0150.00815.03
5.5.160.0130.01215.08
5.5.150.0130.01115.04
5.5.140.0140.01015.07
5.5.130.0130.01215.04
5.5.120.0140.01115.01
5.5.110.0130.01315.03
5.5.100.0150.01115.07
5.5.90.0150.01015.08
5.5.80.0140.01115.11
5.5.70.0150.01015.09
5.5.60.0140.01115.04
5.5.50.0160.00915.08
5.5.40.0150.01115.07
5.5.30.0130.01115.06
5.5.20.0140.01315.08
5.5.10.0130.01215.02
5.5.00.0130.01215.07
5.4.450.0100.01012.85
5.4.440.0120.00912.93
5.4.430.0110.00912.91
5.4.420.0130.00812.88
5.4.410.0110.01012.94
5.4.400.0110.01012.85
5.4.390.0110.00913.24
5.4.380.0110.00912.84
5.4.370.0120.00912.83
5.4.360.0120.01012.82
5.4.350.0110.00912.87
5.4.340.0120.01012.84
5.4.330.0130.00512.36
5.4.320.0110.01012.86
5.4.310.0110.00912.85
5.4.300.0110.00912.86
5.4.290.0120.00812.85
5.4.280.0110.01012.86
5.4.270.0110.00912.87
5.4.260.0120.00912.85
5.4.250.0110.00912.86
5.4.240.0110.00812.82
5.4.230.0120.00812.82
5.4.220.0120.00912.79
5.4.210.0110.00912.79
5.4.200.0120.00813.04
5.4.190.0120.00912.79
5.4.180.0110.01012.81
5.4.170.0120.00912.78
5.4.160.0110.00912.80
5.4.150.0110.01112.82
5.4.140.0100.01012.67
5.4.130.0110.00912.66
5.4.120.0100.01012.67
5.4.110.0110.00912.66
5.4.100.0120.00712.66
5.4.90.0110.00812.66
5.4.80.0120.00912.69
5.4.70.0100.00912.68
5.4.60.0110.00912.68
5.4.50.0160.00912.65
5.4.40.0110.00812.66
5.4.30.0110.00712.66
5.4.20.0100.00812.68
5.4.10.0110.00812.67
5.4.00.0100.01012.56
5.3.290.0110.00313.48
5.3.280.0180.00614.86
5.3.270.0180.00614.86
5.3.260.0200.00714.86
5.3.250.0180.00614.86
5.3.240.0180.00614.86
5.3.230.0130.01014.86
5.3.220.0160.00614.86
5.3.210.0190.00414.86
5.3.200.0190.00414.86
5.3.190.0200.00614.86
5.3.180.0200.00414.86
5.3.170.0180.00514.86
5.3.160.0190.00414.86
5.3.150.0140.00914.86
5.3.140.0190.00414.86
5.3.130.0180.00514.86
5.3.120.0180.00714.86
5.3.110.0180.00514.86
5.3.100.0180.00514.86
5.3.90.0180.00514.86
5.3.80.0160.00714.86
5.3.70.0180.00614.86
5.3.60.0190.00514.86
5.3.50.0170.00614.86
5.3.40.0180.00514.86
5.3.30.0140.00914.86
5.3.20.0170.00614.86
5.3.10.0130.01014.86
5.3.00.0190.00714.86
5.2.170.0180.00314.86
5.2.160.0120.00714.86
5.2.150.0160.00414.86
5.2.140.0120.00814.86
5.2.130.0110.00714.86
5.2.120.0120.00614.86
5.2.110.0130.00614.86
5.2.100.0130.00614.86
5.2.90.0140.00514.86
5.2.80.0150.00314.86
5.2.70.0110.00614.86
5.2.60.0150.00614.86
5.2.50.0130.00514.86
5.2.40.0130.00614.86
5.2.30.0120.00614.86
5.2.20.0140.00514.86
5.2.10.0130.00514.86
5.2.00.0140.00414.86
5.1.60.0070.00212.17
5.1.50.0110.00514.86
5.1.40.0110.00514.86
5.1.30.0120.00514.86
5.1.20.0130.00414.86
5.1.10.0120.00514.86
5.1.00.0110.00614.86
5.0.50.0110.00514.86
5.0.40.0110.00414.86
5.0.30.0130.00114.86
5.0.20.0110.00414.86
5.0.10.0100.00414.86
5.0.00.0110.00314.86
4.4.90.0050.00414.86
4.4.80.0070.00214.86
4.4.70.0080.00114.86
4.4.60.0070.00214.86
4.4.50.0080.00214.86
4.4.40.0070.00214.86
4.4.30.0090.00014.86
4.4.20.0080.00114.86
4.4.10.0030.00111.02
4.4.00.0070.00214.86
4.3.110.0040.00217.46
4.3.100.0080.00214.86
4.3.90.0060.00314.86
4.3.80.0080.00214.86
4.3.70.0050.00414.86
4.3.60.0080.00114.86
4.3.50.0080.00114.86
4.3.40.0100.00214.86
4.3.30.0060.00214.86
4.3.20.0050.00314.86
4.3.10.0040.00414.86
4.3.00.0060.00114.86

preferences:
194.41 ms | 403 KiB | 5 Q