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 = "AWPNfurpnpe0WInMxw=="; $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.0150.00318.45
8.3.50.0070.01017.50
8.3.40.0140.00318.77
8.3.30.0110.00718.89
8.3.20.0070.00021.90
8.3.10.0050.00321.85
8.3.00.0020.00523.54
8.2.180.0090.00916.75
8.2.170.0110.00322.96
8.2.160.0070.00720.39
8.2.150.0030.00524.18
8.2.140.0090.00624.66
8.2.130.0050.00326.16
8.2.120.0040.00426.16
8.2.110.0060.00322.21
8.2.100.0130.00017.84
8.2.90.0120.00217.63
8.2.80.0040.00419.20
8.2.70.0040.00417.80
8.2.60.0090.00018.03
8.2.50.0080.00018.10
8.2.40.0030.00622.36
8.2.30.0000.00819.22
8.2.20.0040.00418.04
8.2.10.0050.00320.64
8.2.00.0000.01119.28
8.1.280.0140.00325.92
8.1.270.0090.00023.88
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0060.00323.95
8.1.230.0030.00819.10
8.1.220.0040.00417.74
8.1.210.0070.00318.77
8.1.200.0030.00617.48
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0090.00018.65
8.1.160.0040.00418.90
8.1.150.0040.00418.74
8.1.140.0040.00418.80
8.1.130.0030.00620.11
8.1.120.0040.00417.41
8.1.110.0040.00417.41
8.1.100.0030.00617.32
8.1.90.0030.00517.43
8.1.80.0000.00817.29
8.1.70.0030.00317.46
8.1.60.0060.00317.44
8.1.50.0040.00417.49
8.1.40.0000.00917.55
8.1.30.0000.00817.52
8.1.20.0080.00017.57
8.1.10.0040.00417.64
8.1.00.0000.00817.47
8.0.300.0000.00719.52
8.0.290.0060.00316.63
8.0.280.0000.00818.42
8.0.270.0070.00017.14
8.0.260.0000.00618.40
8.0.250.0060.00316.95
8.0.240.0030.00317.02
8.0.230.0030.00317.02
8.0.220.0000.00716.98
8.0.210.0030.00516.82
8.0.200.0030.00517.00
8.0.190.0090.00016.90
8.0.180.0080.00016.81
8.0.170.0000.00916.89
8.0.160.0040.00416.87
8.0.150.0040.00416.90
8.0.140.0030.00516.88
8.0.130.0030.00313.31
8.0.120.0030.00516.79
8.0.110.0000.00716.81
8.0.100.0040.00417.04
8.0.90.0040.00416.97
8.0.80.0130.00316.94
8.0.70.0080.00016.81
8.0.60.0040.00416.74
8.0.50.0050.00316.87
8.0.30.0090.00917.06
8.0.20.0110.00817.06
8.0.10.0030.00516.99
8.0.00.0100.00816.79
7.4.330.0000.00615.55
7.4.320.0040.00416.65
7.4.300.0030.00316.57
7.4.290.0080.00016.51
7.4.280.0040.00416.56
7.4.270.0040.00416.68
7.4.260.0030.00316.55
7.4.250.0030.00316.40
7.4.240.0040.00316.63
7.4.230.0030.00316.59
7.4.220.0000.00816.64
7.4.210.0080.00816.57
7.4.200.0000.00716.57
7.4.160.0080.01016.58
7.4.130.0110.01416.67
7.4.120.0000.01816.42
7.4.110.0030.01516.42
7.4.100.0030.01416.55
7.4.90.0150.00316.54
7.4.80.0170.00719.39
7.4.70.0060.01216.67
7.4.60.0120.00316.42
7.4.50.0040.01216.38
7.4.40.0130.00616.49
7.4.00.0100.00714.76
7.3.330.0000.00613.32
7.3.320.0000.00513.38
7.3.310.0000.00716.14
7.3.300.0000.00716.42
7.3.290.0000.00816.37
7.3.280.0070.01116.37
7.3.260.0090.01116.42
7.3.240.0080.01116.47
7.3.230.0090.00916.54
7.3.210.0090.00916.50
7.3.200.0100.01016.33
7.3.190.0070.01016.36
7.3.180.0130.00316.39
7.3.170.0080.01216.50
7.3.160.0030.01316.34
7.3.120.0030.01315.05
7.3.110.0030.01415.14
7.3.100.0030.01214.87
7.3.90.0000.01415.18
7.3.80.0060.00314.99
7.3.70.0000.00814.65
7.3.60.0100.00514.66
7.3.50.0050.00714.82
7.3.40.0100.00714.69
7.3.30.0050.01514.66
7.3.20.0020.01116.43
7.3.10.0020.01016.47
7.3.00.0050.01016.42
7.2.330.0110.00716.59
7.2.320.0040.01416.39
7.2.310.0030.01316.66
7.2.300.0070.01116.63
7.2.290.0070.01016.29
7.2.250.0060.00914.85
7.2.240.0100.00914.89
7.2.230.0030.00914.84
7.2.220.0040.01115.21
7.2.210.0000.01214.62
7.2.200.0030.00914.94
7.2.190.0100.00514.86
7.2.180.0060.00614.82
7.2.170.0030.00814.85
7.2.160.0140.00714.53
7.2.150.0070.00416.52
7.2.140.0100.00316.57
7.2.130.0060.00916.65
7.2.120.0070.01416.71
7.2.110.0090.00616.80
7.2.100.0070.01616.68
7.2.90.0060.00616.77
7.2.80.0110.00016.63
7.2.70.0080.00416.70
7.2.60.0080.00416.63
7.2.50.0060.00616.78
7.2.40.0060.00616.76
7.2.30.0060.00616.55
7.2.20.0090.00316.67
7.2.10.0110.00016.68
7.2.00.0070.00416.55
7.1.330.0040.01115.39
7.1.320.0000.01315.45
7.1.310.0120.00015.58
7.1.300.0100.00415.68
7.1.290.0040.00815.50
7.1.280.0070.00515.46
7.1.270.0020.00915.48
7.1.260.0080.00615.61
7.1.250.0030.01415.61

preferences:
48.73 ms | 401 KiB | 5 Q