3v4l.org

run code in 300+ PHP versions simultaneously
<?php function pkcs7_pad($data, $size) { $length = $size - strlen($data) % $size; return $data . str_repeat(chr($length), $length); } $encrypted = "AWPNfurpnp67Mge0WInMxw=="; $key ='SinigangNaManokMayHalongBaboy'; $iv = 'SinigangNaBaboy'; //echo mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, base64_decode($encrypted), MCRYPT_MODE_CFB, $iv); //echo mcrypt_decrypt(MCRYPT_RIJNDAEL_128, str_pad($key, 32, chr(0), STR_PAD_RIGHT), base64_decode($encrypted), MCRYPT_MODE_CBC, str_pad($iv, 16, chr(0), STR_PAD_RIGHT)); echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-cbc' , $key , OPENSSL_RAW_DATA , $iv ); echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-cbc' , $key , OPENSSL_ZERO_PADDING , $iv ); echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-cfb' , $key , OPENSSL_RAW_DATA , $iv ); echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-cfb' , $key , OPENSSL_ZERO_PADDING , $iv ); echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-cfb1' , $key , OPENSSL_RAW_DATA , $iv ); echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-cfb1' , $key , OPENSSL_ZERO_PADDING , $iv ); echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-cfb8' , $key , OPENSSL_RAW_DATA , $iv ); echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-cfb8' , $key , OPENSSL_ZERO_PADDING , $iv ); echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-ecb' , $key , OPENSSL_RAW_DATA , $iv ); echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-ecb' , $key , OPENSSL_ZERO_PADDING , $iv ); echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-ofb' , $key , OPENSSL_RAW_DATA , $iv ); echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-ofb' , $key , OPENSSL_ZERO_PADDING , $iv ); ?>

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.0140.00018.52
8.3.50.0080.00921.98
8.3.40.0000.01518.78
8.3.30.0070.00718.67
8.3.20.0040.00420.22
8.3.10.0060.00321.91
8.3.00.0070.00319.12
8.2.180.0150.00016.88
8.2.170.0120.00922.96
8.2.160.0100.00319.08
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0060.00320.45
8.2.120.0000.00726.35
8.2.110.0000.00921.05
8.2.100.0040.00717.72
8.2.90.0030.00517.97
8.2.80.0060.00318.22
8.2.70.0000.00817.50
8.2.60.0090.00018.04
8.2.50.0000.00918.10
8.2.40.0040.00420.59
8.2.30.0000.00819.23
8.2.20.0080.00017.71
8.2.10.0000.00718.16
8.2.00.0040.00418.09
8.1.280.0090.00625.92
8.1.270.0040.00423.97
8.1.260.0000.00828.09
8.1.250.0090.00028.09
8.1.240.0030.00622.07
8.1.230.0110.00022.02
8.1.220.0000.00917.77
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0000.00718.94
8.1.150.0000.00718.82
8.1.140.0000.00719.54
8.1.130.0040.00417.71
8.1.120.0070.00017.34
8.1.110.0040.00417.40
8.1.100.0000.00817.49
8.1.90.0050.00317.37
8.1.80.0000.00717.49
8.1.70.0000.00717.45
8.1.60.0050.00317.63
8.1.50.0040.00417.51
8.1.40.0040.00417.59
8.1.30.0000.00817.58
8.1.20.0000.00717.71
8.1.10.0000.00917.59
8.1.00.0040.00417.49
8.0.300.0000.00719.73
8.0.290.0000.00716.88
8.0.280.0070.00018.29
8.0.270.0000.00816.86
8.0.260.0000.00617.28
8.0.250.0000.00816.95
8.0.240.0030.00516.93
8.0.230.0000.00917.02
8.0.220.0040.00416.83
8.0.210.0070.00016.94
8.0.200.0060.00316.99
8.0.190.0000.00816.86
8.0.180.0000.00717.00
8.0.170.0000.00817.04
8.0.160.0050.00316.89
8.0.150.0080.00016.94
8.0.140.0030.00316.92
8.0.130.0060.00013.37
8.0.120.0000.00716.91
8.0.110.0000.00816.91
8.0.100.0000.00716.72
8.0.90.0040.00416.78
8.0.80.0060.00916.92
8.0.70.0000.00916.86
8.0.60.0040.00416.95
8.0.50.0050.00316.75
8.0.30.0140.00516.98
8.0.20.0100.01117.40
8.0.10.0040.00416.94
8.0.00.0140.00616.79
7.4.330.0000.00515.08
7.4.320.0000.00716.65
7.4.300.0030.00316.62
7.4.290.0040.00416.42
7.4.280.0060.00316.61
7.4.270.0030.00316.59
7.4.260.0030.00716.56
7.4.250.0040.00416.63
7.4.240.0000.00716.67
7.4.230.0030.00516.77
7.4.220.0100.01716.70
7.4.210.0070.00816.60
7.4.200.0050.00316.68
7.4.160.0060.00916.50
7.4.150.0090.00917.40
7.4.140.0080.00817.86
7.4.130.0100.00716.51
7.4.120.0090.01016.43
7.4.110.0070.01316.52
7.4.100.0070.01216.64
7.4.90.0160.00616.36
7.4.80.0100.00917.39
7.4.70.0150.00516.51
7.4.60.0080.01016.44
7.4.50.0100.00716.50
7.4.40.0090.00816.46
7.4.30.0070.01116.57
7.4.20.0100.00616.48
7.4.10.0090.00916.52
7.4.00.0100.00716.03
7.3.330.0000.00513.37
7.3.320.0050.00013.19
7.3.310.0000.00616.22
7.3.300.0040.00416.33
7.3.290.0060.00016.38
7.3.280.0100.00716.36
7.3.270.0030.01317.40
7.3.260.0140.01116.59
7.3.250.0070.01216.28
7.3.240.0080.00816.45
7.3.230.0080.01216.50
7.3.220.0040.01416.36
7.3.210.0070.01216.38
7.3.200.0100.00916.39
7.3.190.0150.00416.44
7.3.180.0100.00816.50
7.3.170.0130.01016.32
7.3.160.0100.00816.41
7.3.150.0100.00716.36
7.3.140.0080.00916.35
7.3.130.0040.01316.42
7.3.120.0110.00816.07
7.3.110.0080.01116.15
7.3.100.0090.00716.06
7.3.90.0100.00516.06
7.3.80.0060.01216.17
7.3.70.0100.00715.99
7.3.60.0100.00915.71
7.3.50.0080.00915.67
7.3.40.0060.01115.68
7.3.30.0090.00815.66
7.3.20.0100.00616.42
7.3.10.0090.00916.36
7.3.00.0090.00816.40
7.2.340.0160.00516.43
7.2.330.0090.01216.52
7.2.320.0120.00816.61
7.2.310.0090.00916.46
7.2.300.0090.00816.49
7.2.290.0090.00916.57
7.2.280.0070.01016.40
7.2.270.0090.00916.55
7.2.260.0050.01216.39
7.2.250.0100.00816.22
7.2.240.0100.00816.18
7.2.230.0090.01016.14
7.2.220.0090.01016.20
7.2.210.0100.00616.24
7.2.200.0090.00916.17
7.2.190.0060.00915.65
7.2.180.0060.01115.71
7.2.170.0080.00915.71
7.2.160.0080.00915.94
7.2.150.0190.00816.53
7.2.140.0070.01016.52
7.2.130.0080.00816.54
7.2.120.0080.01116.58
7.2.110.0100.01116.53
7.2.100.0080.01116.56
7.2.90.0120.00816.57
7.2.80.0060.01216.57
7.2.70.0120.00716.55
7.2.60.0170.01016.60
7.2.50.0100.01116.61
7.2.40.0310.01116.84
7.2.30.0360.00816.77
7.2.20.0390.00916.72
7.2.10.0390.01016.70
7.2.00.0340.01016.74
7.1.330.0160.00515.67
7.1.320.0140.00815.59
7.1.310.0150.01015.69
7.1.300.0100.01015.54
7.1.290.0130.00815.63
7.1.280.0110.01215.56
7.1.270.0130.00815.59
7.1.260.0140.00815.60
7.1.250.0140.00815.63
7.1.240.0150.01015.58
7.1.230.0220.00915.52
7.1.220.0210.00915.60
7.1.210.0190.00715.52
7.1.200.0150.01015.61
7.1.190.0170.00815.63
7.1.180.0180.00715.57
7.1.170.0170.00815.47
7.1.160.0400.00715.71
7.1.150.0450.01215.81
7.1.140.0380.00815.79
7.1.130.0430.00815.70
7.1.120.0370.00815.72
7.1.110.0370.00815.68
7.1.100.0350.00915.62
7.1.90.0320.01015.66
7.1.80.0430.00915.64
7.1.70.0370.00615.63
7.1.60.0260.01218.33
7.1.50.0330.00918.07
7.1.40.0330.00918.10
7.1.30.0250.01018.04
7.1.20.0240.00918.02
7.1.10.0240.00615.15
7.1.00.0240.01716.09
7.0.330.0180.00815.34
7.0.320.0120.01315.38
7.0.310.0200.00615.42
7.0.300.0150.00815.40
7.0.290.0470.01015.46
7.0.280.0180.00615.37
7.0.270.0340.01015.52
7.0.260.0350.01115.58
7.0.250.0450.00815.50
7.0.240.0420.00915.50
7.0.230.0340.00915.46
7.0.220.0460.00815.39
7.0.210.0320.01015.27
7.0.200.0330.01115.22
7.0.190.0310.01015.21
7.0.180.0250.00915.27
7.0.170.0240.01015.34
7.0.160.0260.00715.20
7.0.150.0240.00815.33
7.0.140.0220.00915.34
7.0.130.0260.00815.28
7.0.120.0260.00915.34
7.0.110.0230.00815.21
7.0.100.0230.00915.22
7.0.90.0240.00915.25
7.0.80.0190.01015.32
7.0.70.0390.01515.87
7.0.60.0280.01615.79
7.0.50.0300.01515.82
7.0.40.0330.01615.88
7.0.30.0310.01515.96
7.0.20.0470.01615.90
7.0.10.0300.01515.94
7.0.00.0320.01715.90
5.6.400.0140.01015.32
5.6.390.0170.00815.27
5.6.380.0130.01215.17
5.6.370.0180.01015.27
5.6.360.0150.01115.37
5.6.350.0130.01315.31
5.6.340.0170.01115.40
5.6.330.0130.01115.35
5.6.320.0160.00715.37
5.6.310.0160.00815.26
5.6.300.0140.01916.17
5.6.290.0120.02115.96
5.6.280.0160.02216.74
5.6.270.0120.01916.07
5.6.260.0150.01816.12
5.6.250.0130.01716.15
5.6.240.0170.01516.05
5.6.230.0100.02016.09
5.6.220.0220.02516.72
5.6.210.0230.02216.64
5.6.200.0250.02316.80
5.6.190.0220.02216.74
5.6.180.0240.02116.68
5.6.170.0250.02216.76
5.6.160.0270.02316.68
5.6.150.0250.02216.63
5.6.140.0210.02416.78
5.6.130.0210.02516.74
5.6.120.0120.02416.71
5.6.110.0180.02316.78
5.6.100.0250.02316.84
5.6.90.0260.02216.78
5.6.80.0240.02216.57
5.6.70.0240.02216.53
5.6.60.0280.02016.55
5.6.50.0280.02116.49
5.6.40.0230.02216.51
5.6.30.0280.02016.52
5.6.20.0250.02116.46
5.6.10.0220.02316.49
5.6.00.0210.02416.55
5.5.380.0150.01815.64
5.5.370.0160.01615.58
5.5.360.0200.02516.12
5.5.350.0250.02216.18
5.5.340.0240.02416.27
5.5.330.0230.02116.29
5.5.320.0220.02416.28
5.5.310.0250.02116.31
5.5.300.0210.02316.30
5.5.290.0220.02416.30
5.5.280.0140.02416.41
5.5.270.0220.02316.34
5.5.260.0260.02416.30
5.5.250.0270.02216.21
5.5.240.0250.01916.12
5.5.230.0220.02316.14
5.5.220.0230.02716.08
5.5.210.0270.02216.12
5.5.200.0220.02316.11
5.5.190.0270.02216.12
5.5.180.0250.02316.13
5.5.170.0180.00915.15
5.5.160.0240.02216.08
5.5.150.0220.02216.04
5.5.140.0250.02016.00
5.5.130.0220.02715.97
5.5.120.0260.02316.08
5.5.110.0240.02116.17
5.5.100.0230.02116.08
5.5.90.0220.02116.03
5.5.80.0240.02116.03
5.5.70.0250.02216.10
5.5.60.0250.02016.07
5.5.50.0230.02016.10
5.5.40.0240.02016.04
5.5.30.0250.01916.03
5.5.20.0220.02216.12
5.5.10.0230.02216.03
5.5.00.0240.02016.05

preferences:
33.39 ms | 401 KiB | 5 Q