3v4l.org

run code in 200+ 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));
based on 30ID9

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)
7.4.0rc40.0090.00615.17
7.4.0rc30.0050.00915.09
7.4.0rc20.0090.00814.85
7.4.0rc10.0070.01214.94
7.4.0beta40.0150.00914.79
7.4.0beta20.0110.00914.85
7.4.0beta10.0240.00714.80
7.4.0alpha30.0120.00814.86
7.4.0alpha20.0120.00615.02
7.4.0alpha10.0110.00814.90
7.3.100.0180.00814.63
7.3.90.0230.00714.77
7.3.80.0200.00714.75
7.3.70.0110.00814.78
7.3.60.0190.00814.77
7.3.50.0240.01014.80
7.3.40.0190.00714.65
7.3.30.0160.00614.75
7.3.20.0180.00614.83
7.3.10.0400.00614.74
7.3.00.0750.00714.79
7.2.230.0060.01214.96
7.2.220.0080.01114.93
7.2.210.0110.00914.86
7.2.200.0070.01214.83
7.2.190.0110.00814.93
7.2.180.0110.00914.84
7.2.170.0140.00514.86
7.2.160.0080.00914.91
7.2.150.0240.00814.95
7.2.140.0230.00614.97
7.2.130.0910.00914.91
7.2.120.0780.00714.89
7.2.110.0770.00814.90
7.2.100.0600.00814.93
7.2.90.0570.00814.94
7.2.80.0500.00814.89
7.2.70.0610.00814.90
7.2.60.0560.00714.84
7.2.50.0520.01014.94
7.2.40.0510.00914.91
7.2.30.0540.00914.91
7.2.20.0510.01014.90
7.2.10.0560.00614.84
7.2.00.0510.00714.90
7.1.320.0470.00813.95
7.1.310.0270.00913.95
7.1.300.0440.00613.87
7.1.290.0150.01013.75
7.1.280.0340.00513.88
7.1.270.0160.00713.88
7.1.260.0210.00913.96
7.1.250.0700.00813.87
7.1.240.0650.00813.87
7.1.230.0770.00813.91
7.1.220.0850.00613.96
7.1.210.0590.00813.89
7.1.200.0590.00813.87
7.1.190.0790.00613.84
7.1.180.0570.00713.90
7.1.170.0570.00713.84
7.1.160.0650.00713.87
7.1.150.0520.00813.86
7.1.140.0480.00813.91
7.1.130.0510.00713.90
7.1.120.0480.00713.93
7.1.110.0460.00813.90
7.1.100.0470.00913.89
7.1.90.0510.00613.93
7.1.80.0450.00913.93
7.1.70.0560.00613.84
7.1.60.0520.00917.90
7.1.50.0510.01017.85
7.1.40.0450.00917.81
7.1.30.0430.00917.82
7.1.20.0640.01017.79
7.1.10.0400.00713.76
7.1.00.0400.00713.87
7.0.330.0710.00913.48
7.0.320.0710.00613.52
7.0.310.0460.00713.44
7.0.300.0600.00813.47
7.0.290.0550.00613.54
7.0.280.0600.00713.49
7.0.270.0520.00713.48
7.0.260.0540.00613.52
7.0.250.0540.00613.56
7.0.240.0490.00813.54
7.0.230.0500.00713.54
7.0.220.0470.00813.58
7.0.210.0480.00913.50
7.0.200.0520.00813.56
7.0.190.0520.00713.45
7.0.180.0410.00813.54
7.0.170.0550.00513.52
7.0.160.0420.00913.58
7.0.150.0480.00713.49
7.0.140.0470.00813.55
7.0.130.0440.00813.55
7.0.120.0480.00713.58
7.0.110.0410.00713.56
7.0.100.0410.00613.52
7.0.90.0380.00813.50
7.0.80.0400.00813.50
7.0.70.0340.00913.56
7.0.60.0480.00713.56
7.0.50.0390.00813.56
7.0.40.0300.00813.62
7.0.30.0320.00713.57
7.0.20.0390.00913.58
7.0.10.0340.00613.62
7.0.00.0360.00813.62
5.6.400.0250.01014.11
5.6.390.0150.00914.26
5.6.380.0100.00814.19
5.6.370.0130.00914.17
5.6.360.0130.00714.25
5.6.350.0160.00714.24
5.6.340.0120.00714.28
5.6.330.0130.00814.16
5.6.320.0090.01014.33
5.6.310.0130.00914.17
5.6.300.0110.01014.23
5.6.290.0110.01214.30
5.6.280.0120.00814.38
5.6.270.0100.00914.34
5.6.260.0120.00914.27
5.6.250.0150.00814.31
5.6.240.0130.00814.25
5.6.230.0150.00714.29
5.6.220.0150.00714.24
5.6.210.0130.00814.22
5.6.200.0120.01014.26
5.6.190.0140.00814.30
5.6.180.0130.01014.24
5.6.170.0140.00914.28
5.6.160.0140.00714.19
5.6.150.0150.00514.17
5.6.140.0160.00614.33
5.6.130.0110.00914.21
5.6.120.0130.00714.42
5.6.110.0110.01114.24
5.6.100.0130.00914.24
5.6.90.0100.01014.29
5.6.80.0110.00914.08
5.6.70.0110.01014.17
5.6.60.0110.00814.19
5.6.50.0110.00914.17
5.6.40.0130.00914.22
5.6.30.0130.00814.21
5.6.20.0130.00814.16
5.6.10.0120.00914.20
5.6.00.0080.01214.16
5.5.380.0140.00512.16
5.5.370.0120.00512.13
5.5.360.0120.00612.05
5.5.350.0100.00712.26
5.5.340.0100.00812.09
5.5.330.0120.00612.12
5.5.320.0090.00712.09
5.5.310.0110.00612.16
5.5.300.0110.00712.19
5.5.290.0110.00612.13
5.5.280.0100.00612.17
5.5.270.0110.00712.08
5.5.260.0120.00612.09
5.5.250.0110.00612.09
5.5.240.0110.00612.05
5.5.230.0090.00712.06
5.5.220.0080.00712.06
5.5.210.0090.00912.12
5.5.200.0120.00712.08
5.5.190.0120.00812.15
5.5.180.0110.00612.17
5.5.170.0120.00813.79
5.5.160.0120.00412.00
5.5.150.0080.00812.15
5.5.140.0090.00712.09
5.5.130.0100.00712.00
5.5.120.0110.00612.14
5.5.110.0100.00712.11
5.5.100.0080.01012.14
5.5.90.0110.00712.13
5.5.80.0100.00612.08
5.5.70.0090.00711.99
5.5.60.0100.00711.95
5.5.50.0090.00912.07
5.5.40.0100.00712.01
5.5.30.0100.00612.07
5.5.20.0080.00712.09
5.5.10.0090.00612.04
5.5.00.0110.00612.11
5.4.450.0090.00411.05
5.4.440.0080.00711.06
5.4.430.0110.00311.08
5.4.420.0090.00610.99
5.4.410.0100.00311.04
5.4.400.0110.00411.01
5.4.390.0100.00511.08
5.4.380.0120.00411.04
5.4.370.0100.00510.93
5.4.360.0110.00411.02
5.4.350.0090.00711.04
5.4.340.0080.00811.13
5.4.330.0110.00410.96
5.4.320.0090.00611.03
5.4.310.0060.00810.96
5.4.300.0090.00511.00
5.4.290.0090.00511.01
5.4.280.0090.00610.98
5.4.270.0100.00510.89
5.4.260.0100.00410.98
5.4.250.0100.00410.95
5.4.240.0110.00610.92
5.4.230.0090.00710.94
5.4.220.0060.00810.93
5.4.210.0080.00610.98
5.4.200.0100.00511.03
5.4.190.0080.00410.94
5.4.180.0100.00611.00
5.4.170.0090.00511.03
5.4.160.0080.00710.99
5.4.150.0100.00511.05
5.4.140.0070.00710.99
5.4.130.0090.00710.98
5.4.120.0090.00711.02
5.4.110.0100.00511.13
5.4.100.0090.00711.00
5.4.90.0090.00510.92
5.4.80.0090.00510.97
5.4.70.0110.00410.94
5.4.60.0080.00611.00
5.4.50.0080.00810.86
5.4.40.0080.00611.00
5.4.30.0120.00310.88
5.4.20.0100.00410.92
5.4.10.0100.00411.05
5.4.00.0090.00610.91
5.3.290.0110.00410.67
5.3.280.0090.00510.63
5.3.270.0100.00310.66
5.3.260.0090.00410.66
5.3.250.0090.00510.65
5.3.240.0110.00410.61
5.3.230.0110.00510.61
5.3.220.0100.00510.63
5.3.210.0070.00710.61
5.3.200.0110.00510.62
5.3.190.0080.00610.62
5.3.180.0070.00710.72
5.3.170.0090.00510.72
5.3.160.0090.00510.77
5.3.150.0080.00610.72
5.3.140.0080.00510.69
5.3.130.0070.00610.64
5.3.120.0090.00410.66
5.3.110.0090.00410.66
5.3.100.0080.00710.71
5.3.90.0080.00610.72
5.3.80.0110.00410.59
5.3.70.0070.00610.65
5.3.60.0090.00410.55
5.3.50.0060.00710.62
5.3.40.0080.00610.59
5.3.30.0090.00510.63
5.3.20.0090.00510.61
5.3.10.0090.00310.51
5.3.00.0100.00410.42
5.2.170.0060.0069.83
5.2.160.0070.0059.84
5.2.150.0070.0049.78
5.2.140.0070.0049.81
5.2.130.0090.0029.78
5.2.120.0060.0059.81
5.2.110.0050.0069.75
5.2.100.0070.0049.82
5.2.90.0070.0059.83
5.2.80.0080.0049.71
5.2.70.0070.0059.77
5.2.60.0050.0059.74
5.2.50.0070.0059.71
5.2.40.0060.0069.73
5.2.30.0060.0069.73
5.2.20.0060.0069.68
5.2.10.0070.0069.54
5.2.00.0080.0049.57
5.1.60.0060.0049.50
5.1.50.0050.0059.47
5.1.40.0070.0039.47
5.1.30.0060.0049.52
5.1.20.0060.0039.47
5.1.10.0060.0039.50
5.1.00.0050.0059.49
5.0.50.0050.0029.47
5.0.40.0070.0029.47
5.0.30.0050.0049.47
5.0.20.0040.0049.47
5.0.10.0060.0039.47
5.0.00.0050.0039.47
4.4.90.0030.0049.47
4.4.80.0030.0039.47
4.4.70.0030.0049.47
4.4.60.0050.0039.47
4.4.50.0030.0049.47
4.4.40.0030.0049.47
4.4.30.0040.0039.47
4.4.20.0040.0039.47
4.4.10.0040.0039.47
4.4.00.0060.0019.47
4.3.110.0030.0049.47
4.3.100.0030.0039.47
4.3.90.0020.0059.47
4.3.80.0030.0049.47
4.3.70.0040.0039.47
4.3.60.0020.0049.47
4.3.50.0030.0039.47
4.3.40.0030.0039.47
4.3.30.0030.0039.47
4.3.20.0020.0039.47
4.3.10.0030.0039.47
4.3.00.0020.0039.47