3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secret = 'a0a7e7997b6d5fcd55f4b5c32611b87c'; function encrypt128($str, $secret) { $block = 16; $pad = $block - (strlen($str) % $block); $str .= str_repeat(chr($pad), $pad); return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $secret, $str, MCRYPT_MODE_ECB)); } function sslEncrypt128($str, $secret) { return base64_encode(openssl_encrypt($str, 'aes-128-ecb', $secret, OPENSSL_RAW_DATA)); } var_dump(encrypt128('small1', $secret)); var_dump(sslEncrypt128('small1', $secret));

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.10.0090.00019.86
8.3.140.0080.00017.26
8.3.130.0100.00018.78
8.3.120.0000.00818.98
8.3.110.0030.00618.68
8.3.100.0000.00824.06
8.3.90.0030.00526.77
8.3.80.0090.00018.43
8.3.70.0080.00816.48
8.3.60.0080.00818.43
8.3.50.0090.00717.42
8.3.40.0140.00418.98
8.3.30.0110.00318.65
8.3.20.0070.00020.21
8.3.10.0040.00420.89
8.3.00.0050.00520.24
8.2.260.0030.00616.45
8.2.250.0000.00816.70
8.2.240.0120.00417.26
8.2.230.0090.00320.94
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0080.00417.00
8.2.190.0090.00616.88
8.2.180.0090.00916.72
8.2.170.0100.01022.96
8.2.160.0030.01022.08
8.2.150.0070.00025.66
8.2.140.0030.00624.66
8.2.130.0060.00326.16
8.2.120.0000.00721.00
8.2.110.0060.01321.24
8.2.100.0120.00017.97
8.2.90.0090.00020.01
8.2.80.0050.00220.57
8.2.70.0030.00517.75
8.2.60.0080.00517.69
8.2.50.0110.00318.43
8.2.40.0100.00318.29
8.2.30.0060.00718.15
8.2.20.0110.00217.80
8.2.10.0080.00617.76
8.2.00.0100.00317.70
8.1.300.0030.01018.38
8.1.290.0090.00030.84
8.1.280.0100.01025.92
8.1.270.0080.00022.18
8.1.260.0030.00626.35
8.1.250.0140.00028.09
8.1.240.0090.00022.19
8.1.230.0070.00420.96
8.1.220.0040.00417.79
8.1.210.0040.00418.86
8.1.200.0100.00017.48
8.1.190.0070.00617.17
8.1.180.0100.00317.66
8.1.170.0080.00517.99
8.1.160.0070.00717.85
8.1.150.0050.00917.87
8.1.140.0100.00318.04
8.1.130.0110.00217.42
8.1.120.0090.00417.41
8.1.110.0110.00317.41
8.1.100.0100.00617.31
8.1.90.0100.00417.42
8.1.80.0080.00317.35
8.1.70.0090.00517.35
8.1.60.0130.00317.46
8.1.50.0110.00717.42
8.1.40.0160.00317.43
8.1.30.0150.00317.54
8.1.20.0130.00517.56
8.1.10.0130.00317.48
8.1.00.0100.00517.41
8.0.300.0000.00820.04
8.0.290.0050.00216.75
8.0.280.0080.00517.53
8.0.270.0070.00617.08
8.0.260.0040.01017.07
8.0.250.0070.00617.13
8.0.240.0090.00517.13
8.0.230.0080.00517.18
8.0.220.0110.00316.99
8.0.210.0070.00717.01
8.0.200.0080.00416.95
8.0.190.0080.00417.02
8.0.180.0090.00516.95
8.0.170.0090.00516.92
8.0.160.0110.00516.95
8.0.150.0110.00416.91
8.0.140.0110.00316.90
8.0.130.0090.00616.53
8.0.120.0090.00716.95
8.0.110.0080.00516.92
8.0.100.0070.00616.89
8.0.90.0070.00516.93
8.0.80.0070.00616.89
8.0.70.0070.00516.92
8.0.60.0080.00416.89
8.0.50.0080.00416.89
8.0.30.0070.00616.94
8.0.20.0070.00717.09
8.0.10.0080.00517.01
8.0.00.0080.00716.99
7.4.330.0080.00216.56
7.4.320.0130.00116.83
7.4.300.0100.00416.63
7.4.290.0120.00416.67
7.4.280.0140.00416.63
7.4.270.0090.00516.58
7.4.260.0090.00616.61
7.4.250.0090.00516.60
7.4.240.0060.00516.60
7.4.230.0070.00416.56
7.4.220.0060.00416.56
7.4.210.0080.00416.53
7.4.200.0060.00416.55
7.4.190.0080.00316.61
7.4.180.0050.00616.63
7.4.160.0060.00516.60
7.4.150.0070.00516.58
7.4.140.0100.00416.64
7.4.130.0100.00716.51
7.4.120.0090.00716.51
7.4.110.0080.00716.54
7.4.100.0090.00716.54
7.4.90.0090.00616.49
7.4.80.0100.00716.60
7.4.70.0080.00716.50
7.4.60.0090.00716.53
7.4.50.0100.00616.50
7.4.40.0090.00616.48
7.4.30.0090.00716.51
7.4.20.0090.00716.50
7.4.10.0080.00816.48
7.4.00.0090.00716.44
7.3.330.0110.00516.18
7.3.320.0120.00416.19
7.3.310.0110.00316.48
7.3.300.0070.00416.42
7.3.290.0080.00416.46
7.3.280.0080.00516.43
7.3.270.0070.00616.52
7.3.260.0090.00516.52
7.3.250.0110.00616.51
7.3.240.0100.00716.47
7.3.230.0090.00716.47
7.3.220.0100.00616.41
7.3.210.0110.00616.40
7.3.200.0100.00716.40
7.3.190.0100.00716.42
7.3.180.0100.00716.41
7.3.170.0090.00716.43
7.3.160.0100.00616.41
7.3.150.0100.00616.42
7.3.140.0100.00716.43
7.3.130.0090.00816.40
7.3.120.0090.00716.41
7.3.110.0090.00716.39
7.3.100.0110.00716.17
7.3.90.0120.00716.30
7.3.80.0110.00816.16
7.3.70.0100.00816.14
7.3.60.0120.00616.16
7.3.50.0120.00816.13
7.3.40.0120.00616.10
7.3.30.0110.00716.12
7.3.20.0110.00816.63
7.3.10.0210.00616.39
7.3.00.0300.00816.32
7.2.340.0110.00616.43
7.2.330.0140.00716.49
7.2.320.0130.00616.43
7.2.310.0100.00816.43
7.2.300.0100.00816.44
7.2.290.0120.00816.45
7.2.280.0120.00616.49
7.2.270.0120.00616.46
7.2.260.0110.00716.42
7.2.250.0100.00816.45
7.2.240.0120.00716.42
7.2.230.0110.00716.29
7.2.220.0110.00816.25
7.2.210.0120.00716.18
7.2.200.0100.00816.24
7.2.190.0110.00816.24
7.2.180.0110.00816.20
7.2.170.0110.00616.23
7.2.160.0110.00716.21
7.2.150.0130.00816.73
7.2.140.0150.00616.76
7.2.130.0350.00816.53
7.2.120.0330.00716.46
7.2.110.0340.00716.43
7.2.100.0280.00816.44
7.2.90.0260.00816.42
7.2.80.0250.00916.31
7.2.70.0300.00816.31
7.2.60.0280.00716.31
7.2.50.0270.00816.31
7.2.40.0250.00816.36
7.2.30.0270.00816.35
7.2.20.0260.00816.33
7.2.10.0280.00616.34
7.2.00.0250.00716.35
7.1.330.0130.00816.23
7.1.320.0240.00715.92
7.1.310.0170.00815.89
7.1.300.0190.00615.84
7.1.290.0130.00715.91
7.1.280.0200.00615.81
7.1.270.0140.00715.79
7.1.260.0150.00715.79
7.1.250.0300.00715.46
7.1.240.0300.00715.45
7.1.230.0330.00715.45
7.1.220.0360.00615.45
7.1.210.0330.00715.44
7.1.200.0300.00715.39
7.1.190.0370.00715.32
7.1.180.0280.00715.44
7.1.170.0300.00715.31
7.1.160.0320.00715.32
7.1.150.0270.00715.31
7.1.140.0250.00715.34
7.1.130.0270.00715.38
7.1.120.0260.00715.38
7.1.110.0240.00815.39
7.1.100.0260.00815.35
7.1.90.0270.00615.36
7.1.80.0240.00715.39
7.1.70.0280.00715.36
7.1.60.0280.00716.78
7.1.50.0260.00916.74
7.1.40.0250.00816.79
7.1.30.0240.00816.77
7.1.20.0310.00816.72
7.1.10.0220.00815.37
7.1.00.0220.00715.40
7.0.330.0270.00615.47
7.0.320.0300.00715.15
7.0.310.0240.00714.99
7.0.300.0310.00714.98
7.0.290.0280.00715.03
7.0.280.0290.00715.06
7.0.270.0270.00715.03
7.0.260.0290.00615.05
7.0.250.0290.00615.11
7.0.240.0260.00615.19
7.0.230.0280.00615.09
7.0.220.0240.00715.10
7.0.210.0260.00715.07
7.0.200.0280.00615.12
7.0.190.0270.00715.06
7.0.180.0240.00715.10
7.0.170.0290.00615.12
7.0.160.0240.00715.10
7.0.150.0260.00715.06
7.0.140.0260.00715.10
7.0.130.0250.00615.13
7.0.120.0250.00715.15
7.0.110.0220.00715.11
7.0.100.0240.00615.08
7.0.90.0230.00715.06
7.0.80.0230.00715.05
7.0.70.0210.00715.08
7.0.60.0250.00615.17
7.0.50.0220.00715.09
7.0.40.0200.00715.13
7.0.30.0200.00715.11
7.0.20.0220.00815.08
7.0.10.0190.00715.19
7.0.00.0210.00715.17
5.6.400.0130.00715.73
5.6.390.0130.00815.66
5.6.380.0110.00915.37
5.6.370.0130.00815.69
5.6.360.0120.00815.69
5.6.350.0130.00815.70
5.6.340.0120.00915.73
5.6.330.0130.00715.69
5.6.320.0120.00815.76
5.6.310.0130.00815.73
5.6.300.0120.00915.59
5.6.290.0120.00915.63
5.6.280.0130.00715.64
5.6.270.0110.00915.60
5.6.260.0120.00815.60
5.6.250.0140.00715.59
5.6.240.0130.00815.61
5.6.230.0130.00815.62
5.6.220.0130.00715.60
5.6.210.0140.00715.63
5.6.200.0130.00815.64
5.6.190.0130.00815.62
5.6.180.0120.00915.59
5.6.170.0130.00815.60
5.6.160.0130.00715.58
5.6.150.0130.00815.59
5.6.140.0140.00715.60
5.6.130.0120.00815.59
5.6.120.0130.00815.65
5.6.110.0120.00815.56
5.6.100.0130.00915.55
5.6.90.0120.00815.59
5.6.80.0130.00815.51
5.6.70.0130.00815.57
5.6.60.0140.00815.60
5.6.50.0110.00815.51
5.6.40.0130.00915.56
5.6.30.0130.00815.54
5.6.20.0130.00715.52
5.6.10.0130.00815.50
5.6.00.0110.00915.51
5.5.380.0130.00016.52
5.5.370.0140.00016.52
5.5.360.0070.00516.52
5.5.350.0100.00316.52
5.5.340.0100.00316.52
5.5.330.0110.00216.52
5.5.320.0090.00416.52
5.5.310.0040.00916.52
5.5.300.0110.00316.52
5.5.290.0070.00716.52
5.5.280.0130.00016.52
5.5.270.0100.00316.52
5.5.260.0070.00716.52
5.5.250.0070.00716.52
5.5.240.0120.00016.52
5.5.230.0090.00316.52
5.5.220.0110.00316.52
5.5.210.0060.00616.52
5.5.200.0140.00016.52
5.5.190.0040.00816.52
5.5.180.0070.00516.52
5.5.170.0110.00416.52
5.5.160.0130.00016.52
5.5.150.0070.00716.52
5.5.140.0120.00016.52
5.5.130.0070.00716.52
5.5.120.0070.00716.52
5.5.110.0130.00016.52
5.5.100.0120.00016.52
5.5.90.0090.00516.52
5.5.80.0140.00016.52
5.5.70.0130.00016.52
5.5.60.0120.00016.52
5.5.50.0080.00416.52
5.5.40.0120.00016.52
5.5.30.0080.00416.52
5.5.20.0090.00316.52
5.5.10.0120.00016.52
5.5.00.0120.00016.52
5.4.450.0070.00216.52
5.4.440.0080.00316.52
5.4.430.0070.00416.52
5.4.420.0080.00316.52
5.4.410.0050.00516.52
5.4.400.0070.00316.52
5.4.390.0100.00016.52
5.4.380.0110.00016.52
5.4.370.0050.00516.52
5.4.360.0050.00516.52
5.4.350.0040.00716.52
5.4.340.0070.00416.52
5.4.330.0100.00016.52
5.4.320.0080.00416.52
5.4.310.0050.00516.52
5.4.300.0100.00016.52
5.4.290.0120.00016.52
5.4.280.0000.01016.52
5.4.270.0140.00016.52
5.4.260.0050.00516.52
5.4.250.0050.00516.52
5.4.240.0060.00316.52
5.4.230.0100.00016.52
5.4.220.0100.00016.52
5.4.210.0060.00616.52
5.4.200.0030.00716.52
5.4.190.0050.00516.52
5.4.180.0040.00816.52
5.4.170.0080.00316.52
5.4.160.0080.00316.52
5.4.150.0100.00016.52
5.4.140.0070.00316.52
5.4.130.0090.00016.52
5.4.120.0100.00016.52
5.4.110.0050.00516.52
5.4.100.0110.00016.52
5.4.90.0070.00216.52
5.4.80.0030.00716.52
5.4.70.0100.00016.52
5.4.60.0100.00016.52
5.4.50.0050.00516.52
5.4.40.0070.00216.52
5.4.30.0100.00016.52
5.4.20.0100.00016.52
5.4.10.0060.00316.52
5.4.00.0040.00716.52
5.3.290.0070.00216.52
5.3.280.0060.00416.52
5.3.270.0110.00016.52
5.3.260.0070.00416.52
5.3.250.0080.00216.52
5.3.240.0070.00316.52
5.3.230.0070.00416.52
5.3.220.0070.00316.52
5.3.210.0050.00516.52
5.3.200.0050.00516.52
5.3.190.0100.00016.52
5.3.180.0110.00016.52
5.3.170.0070.00416.52
5.3.160.0100.00016.52
5.3.150.0080.00316.52
5.3.140.0110.00016.52
5.3.130.0110.00016.52
5.3.120.0120.00016.52
5.3.110.0100.00016.52
5.3.100.0020.00816.52
5.3.90.0040.00616.52
5.3.80.0050.00516.52
5.3.70.0050.00516.52
5.3.60.0080.00216.52
5.3.50.0000.01016.52
5.3.40.0050.00516.52
5.3.30.0000.00916.52
5.3.20.0050.00516.52
5.3.10.0090.00016.52
5.3.00.0050.00516.52
5.2.170.0080.00016.52
5.2.160.0040.00416.52
5.2.150.0000.00816.52
5.2.140.0050.00316.52
5.2.130.0040.00416.52
5.2.120.0080.00016.52
5.2.110.0050.00316.52
5.2.100.0000.01016.52
5.2.90.0080.00016.52
5.2.80.0000.00816.52
5.2.70.0040.00416.52
5.2.60.0000.00816.52
5.2.50.0030.00616.52
5.2.40.0080.00016.52
5.2.30.0060.00216.52
5.2.20.0030.00516.52
5.2.10.0080.00016.52
5.2.00.0090.00016.52
5.1.60.0050.00216.52
5.1.50.0050.00316.52
5.1.40.0030.00516.52
5.1.30.0070.00016.52
5.1.20.0050.00216.52
5.1.10.0050.00216.52
5.1.00.0020.00516.52
5.0.50.0060.00016.52
5.0.40.0040.00216.52
5.0.30.0070.00016.52
5.0.20.0040.00416.52
5.0.10.0040.00216.52
5.0.00.0070.00016.52
4.4.90.0000.00416.52
4.4.80.0000.00316.52
4.4.70.0000.00416.52
4.4.60.0030.00016.52
4.4.50.0030.00016.52
4.4.40.0030.00016.52
4.4.30.0030.00016.52
4.4.20.0000.00416.52
4.4.10.0030.00016.52
4.4.00.0000.00316.52
4.3.110.0000.00316.52
4.3.100.0030.00016.52
4.3.90.0000.00316.52
4.3.80.0000.00416.52
4.3.70.0020.00216.52
4.3.60.0000.00416.52
4.3.50.0040.00016.52
4.3.40.0030.00016.52
4.3.30.0030.00016.52
4.3.20.0000.00316.52
4.3.10.0000.00216.52
4.3.00.0000.00316.52

preferences:
33.92 ms | 403 KiB | 5 Q