3v4l.org

run code in 300+ PHP versions simultaneously
<?php function pad_key($key){ // key is too large if(strlen($key) > 32) return false; // set sizes $sizes = array(16,24,32); // loop through sizes and pad key foreach($sizes as $s){ while(strlen($key) < $s) $key = $key."\0"; if(strlen($key) == $s) break; // finish if the key matches a size } // return return $key; } var_dump(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, pad_key("bite"), 717098756, MCRYPT_MODE_ECB)));

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.0090.00616.75
8.3.50.0090.00616.35
8.3.40.0120.00318.83
8.3.30.0130.00718.87
8.3.20.0000.00820.39
8.3.10.0040.00423.48
8.3.00.0040.01123.65
8.2.180.0160.00316.48
8.2.170.0110.00422.96
8.2.160.0030.01020.36
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.68
8.2.120.0030.00626.35
8.2.110.0090.00021.10
8.2.100.0120.00017.93
8.2.90.0000.00819.17
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0080.00017.80
8.2.50.0000.00818.07
8.2.40.0000.00820.46
8.2.30.0040.00419.26
8.2.20.0050.00217.75
8.2.10.0000.00717.95
8.2.00.0080.00017.91
8.1.280.0110.00425.92
8.1.270.0040.00423.79
8.1.260.0040.00428.09
8.1.250.0030.00728.09
8.1.240.0060.00323.83
8.1.230.0110.00019.05
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0040.00417.10
8.1.180.0070.00018.10
8.1.170.0080.00018.50
8.1.160.0050.00320.63
8.1.150.0040.00418.77
8.1.140.0080.00019.42
8.1.130.0070.00017.58
8.1.120.0000.00717.37
8.1.110.0050.00217.34
8.1.100.0040.00417.27
8.1.90.0000.00717.29
8.1.80.0030.00517.27
8.1.70.0040.00417.30
8.1.60.0000.00817.47
8.1.50.0040.00417.45
8.1.40.0080.00017.49
8.1.30.0030.00617.60
8.1.20.0050.00217.59
8.1.10.0040.00417.53
8.1.00.0040.00417.44
8.0.300.0030.00518.77
8.0.290.0070.00016.75
8.0.280.0000.00718.38
8.0.270.0000.00817.21
8.0.260.0060.00017.20
8.0.250.0040.00416.99
8.0.240.0000.00716.92
8.0.230.0030.00316.98
8.0.220.0040.00416.79
8.0.210.0070.00016.88
8.0.200.0070.00016.92
8.0.190.0060.00316.86
8.0.180.0040.00416.95
8.0.170.0030.00516.95
8.0.160.0040.00416.95
8.0.150.0000.00716.86
8.0.140.0040.00416.88
8.0.130.0000.00713.37
8.0.120.0040.00416.75
8.0.110.0000.00716.95
8.0.100.0000.00716.78
8.0.90.0000.00716.81
8.0.80.0110.00416.96
8.0.70.0080.00016.73
8.0.60.0000.00716.72
8.0.50.0040.00416.75
8.0.30.0090.00917.13
8.0.20.0140.00717.40
8.0.10.0070.00016.82
8.0.00.0060.01316.61
7.4.330.0000.00516.89
7.4.320.0070.00016.40
7.4.300.0000.00616.45
7.4.290.0000.00716.42
7.4.280.0060.00316.54
7.4.270.0000.00616.35
7.4.260.0030.00316.51
7.4.250.0000.00716.26
7.4.240.0050.00216.51
7.4.230.0030.00316.63
7.4.220.0100.01716.46
7.4.210.0070.00716.61
7.4.200.0070.00016.35
7.4.160.0060.01316.35
7.4.150.0090.01517.40
7.4.140.0110.00917.86
7.4.130.0030.01416.55
7.4.120.0080.01016.40
7.4.110.0090.00916.58
7.4.100.0120.01116.55
7.4.90.0080.00816.34
7.4.80.0130.00919.39
7.4.70.0120.00916.51
7.4.60.0100.00616.47
7.4.50.0060.00916.26
7.4.40.0080.00916.58
7.4.30.0100.01316.59
7.4.00.0100.00714.58
7.3.330.0030.00413.16
7.3.320.0000.00613.25
7.3.310.0000.00716.30
7.3.300.0070.00016.16
7.3.290.0100.00716.29
7.3.280.0100.00916.30
7.3.270.0170.00717.40
7.3.260.0130.00916.21
7.3.250.0100.00816.43
7.3.240.0110.00816.31
7.3.230.0120.00416.39
7.3.210.0080.00816.22
7.3.200.0070.01119.39
7.3.190.0060.00916.57
7.3.180.0000.02016.45
7.3.170.0060.00916.31
7.3.160.0080.00816.43
7.3.10.0110.01516.04
7.3.00.0140.00316.38
7.2.330.0120.00616.31
7.2.320.0170.00016.52
7.2.310.0070.01116.32
7.2.300.0140.00316.18
7.2.290.0040.01416.64
7.2.130.0110.00616.18
7.2.120.0120.00916.38
7.2.110.0180.01116.38
7.2.100.0190.00816.30
7.2.90.0240.00716.17
7.2.80.0160.01016.06
7.2.70.0200.01716.22
7.2.60.0030.01416.32
7.2.50.0080.00716.34
7.2.40.0220.00716.25
7.2.30.0190.00016.64
7.2.20.0140.00416.12
7.2.10.0150.00416.02
7.2.00.0070.00717.96
7.1.250.0180.00915.06
7.1.200.0060.00615.79
7.1.100.0030.00817.95
7.1.70.0000.01017.09
7.1.60.0090.01519.18
7.1.50.0130.00916.96
7.1.00.0000.08022.41
7.0.200.0110.00414.59
7.0.100.0430.08019.95
7.0.90.0230.05019.86
7.0.80.0030.08320.02
7.0.70.0030.08020.13
7.0.60.0100.03719.95
7.0.50.0330.04720.40
7.0.40.0130.06720.12
7.0.30.0070.04720.08
7.0.20.0070.05020.11
7.0.10.0100.07720.15
7.0.00.0000.04720.17
5.6.280.0070.05021.13
5.6.250.0070.08320.67
5.6.240.0070.04320.63
5.6.230.0100.08020.65
5.6.220.0030.07320.58
5.6.210.0070.07720.55
5.6.200.0070.04721.15
5.6.190.0100.07721.04
5.6.180.0000.04721.20
5.6.170.0130.04021.13
5.6.160.0030.04721.03
5.6.150.0100.03721.12
5.6.140.0000.04321.13
5.6.130.0030.06321.09
5.6.120.0070.04021.21
5.6.110.0030.04021.13
5.6.100.0030.04321.12
5.6.90.0030.05321.12
5.6.80.0000.04320.43
5.6.70.0100.05720.52
5.6.60.0000.04320.49
5.6.50.0030.05720.55
5.6.40.0070.03320.52
5.6.30.0000.04320.50
5.6.20.0070.04320.54
5.6.10.0030.04020.49
5.6.00.0070.04320.38
5.5.380.0000.07320.41
5.5.370.0000.04320.32
5.5.360.0070.07720.41
5.5.350.0070.04020.32
5.5.340.0030.07720.89
5.5.330.0070.08020.96
5.5.320.0030.04720.91
5.5.310.0070.04020.88
5.5.300.0030.04020.88
5.5.290.0000.05021.01
5.5.280.0100.03720.99
5.5.270.0100.03720.98
5.5.260.0000.04720.98
5.5.250.0030.04720.80
5.5.240.0100.04020.38
5.5.230.0100.05720.17
5.5.220.0030.04020.33
5.5.210.0070.04020.23
5.5.200.0100.06320.34
5.5.190.0030.04020.17
5.5.180.0030.04020.20
5.5.160.0100.03320.26
5.5.150.0000.04720.20
5.5.140.0030.04020.36
5.5.130.0030.04020.07
5.5.120.0000.04320.34
5.5.110.0000.04320.32
5.5.100.0070.03720.24
5.5.90.0000.04320.12
5.5.80.0070.03320.05
5.5.70.0070.03320.17
5.5.60.0100.05720.08
5.5.50.0070.03320.23
5.5.40.0100.03020.14
5.5.30.0130.03020.18
5.5.20.0030.04020.21
5.5.10.0030.04020.05
5.5.00.0030.04020.20

preferences:
55.11 ms | 400 KiB | 5 Q