3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key_size = 25; $key = ''; for ($i = 0; $i < $key_size; $i++) { $key.= chr(mt_rand(0, 255)); } $a = openssl_encrypt(str_repeat('z', 50), 'rc4-40', $key, OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING); $b = openssl_encrypt(str_repeat('z', 50), 'rc4', $key, OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING); echo $a == $b ? 'good' : 'bad';

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.00.0040.01414.88
7.3.120.0070.00714.96
7.3.110.0090.00614.72
7.3.100.0070.00614.86
7.3.90.0070.01115.01
7.3.80.0060.00314.64
7.3.70.0030.00614.66
7.3.60.0090.00314.68
7.3.50.0000.00914.73
7.3.40.0090.00314.83
7.3.30.0100.00314.96
7.3.20.0050.00516.69
7.3.10.0100.00716.52
7.3.00.0100.00816.56
7.2.250.0030.01714.62
7.2.240.0030.01714.70
7.2.230.0090.00914.63
7.2.220.0100.00315.00
7.2.210.0030.00915.32
7.2.200.0120.00315.13
7.2.190.0060.00615.16
7.2.180.0060.00615.02
7.2.170.0060.01114.81
7.2.130.0160.00816.40
7.2.120.0180.00016.32
7.2.110.0120.00616.23
7.2.100.0220.00616.34
7.2.90.0170.00616.47
7.2.80.0110.01116.39
7.2.70.0030.01316.40
7.2.60.0260.00416.88
7.2.50.0180.00016.43
7.2.40.0150.00816.23
7.2.30.0160.00316.29
7.2.20.0100.00715.99
7.2.10.0160.01016.43
7.2.00.0120.00616.39
7.1.330.0110.00415.86
7.1.320.0040.01115.91
7.1.310.0040.00715.80
7.1.300.0030.00615.52
7.1.290.0000.01015.60
7.1.280.0080.00415.78
7.1.270.0030.01015.46
7.1.260.0030.00515.68
7.1.250.0140.01015.48
7.1.00.1420.00713.75
7.0.140.0160.00813.44
7.0.130.1290.00613.56
7.0.120.0270.01213.40
7.0.110.1050.00313.65
7.0.100.0450.00313.57
7.0.90.1240.01013.39
7.0.80.0160.01013.04
7.0.70.1500.00413.04
7.0.60.1320.00913.38
7.0.50.0670.00613.66
7.0.40.0330.00313.40
7.0.30.1440.00713.61
7.0.20.1130.00313.61
7.0.10.0930.00713.68
7.0.00.0540.00713.38
5.6.290.0100.01014.01
5.6.280.0140.00013.88
5.6.270.0110.00314.08
5.6.260.0030.01214.18
5.6.250.0110.00314.12
5.6.240.0100.00714.03
5.6.230.0100.00713.95
5.6.220.0070.00713.89
5.6.210.0030.01014.14
5.6.200.0150.00414.14
5.6.190.0090.00614.16
5.6.180.0140.00014.09
5.6.170.0000.01414.02
5.6.160.0110.00513.81
5.6.150.0100.00514.21
5.6.140.0040.01013.86
5.6.130.0070.00713.93
5.6.120.0120.00314.26
5.6.110.0070.00714.56
5.6.100.0050.01014.04
5.6.90.0000.01714.09
5.6.80.0080.00814.23
5.6.70.0070.00713.81
5.6.60.0140.00414.00
5.6.50.0090.00614.07
5.6.40.0040.01114.10
5.6.30.0070.00713.98
5.6.20.0040.01114.38
5.6.10.0090.00614.22
5.6.00.0080.01213.95
5.5.380.0050.00510.99
5.5.370.0120.00211.01
5.5.360.0110.00410.96
5.5.350.0080.00411.08
5.5.340.0110.00011.16
5.5.330.0000.01010.93
5.5.320.0070.00910.90
5.5.310.0050.00510.97
5.5.300.0070.00311.04
5.5.290.0110.00210.97
5.5.280.0090.00510.95
5.5.270.0090.00511.15
5.5.260.0030.00711.00
5.5.250.0040.00410.97
5.5.240.0040.00711.12
5.5.230.0080.00510.88
5.5.220.0120.00010.96
5.5.210.0080.00411.09
5.5.200.0050.00810.86
5.5.190.0080.00411.12
5.5.180.0000.01210.91
5.5.170.0110.00614.09
5.5.160.0000.01211.05
5.5.150.0100.00511.02
5.5.140.0110.00010.95
5.5.130.0000.00811.11
5.5.120.0040.00411.00
5.5.110.0040.00410.94
5.5.100.0080.00310.89
5.5.90.0060.00610.92
5.5.80.0000.01210.94
5.5.70.0080.00610.42
5.5.60.0090.00011.04
5.5.50.0100.00310.76
5.5.40.0000.01610.65
5.5.30.0130.00310.64
5.5.20.0070.00310.87
5.5.10.0050.00710.85
5.5.00.0050.00310.63
5.4.450.0000.01110.92
5.4.440.0030.00911.09
5.4.430.0000.01010.85
5.4.420.0050.00510.85
5.4.410.0050.00511.10
5.4.400.0130.00010.91
5.4.390.0140.00011.07
5.4.380.0060.00910.79
5.4.370.0070.00710.93
5.4.360.0080.00410.91
5.4.350.0120.00010.82
5.4.340.0140.00010.75
5.4.330.0060.00410.56
5.4.320.0120.00010.98
5.4.310.0100.00310.87
5.4.300.0130.00410.75
5.4.290.0040.00410.85
5.4.280.0080.00011.03
5.4.270.0030.00610.75
5.4.260.0100.00011.11
5.4.250.0070.00410.84
5.4.240.0000.00911.09
5.4.230.0050.00510.67
5.4.220.0030.00610.92
5.4.210.0000.00910.89
5.4.200.0150.00010.48
5.4.190.0030.00810.70
5.4.180.0050.00511.04
5.4.170.0110.00010.85
5.4.160.0100.00010.71
5.4.150.0100.00510.86
5.4.140.0140.00011.19
5.4.130.0080.00811.02
5.4.120.0090.00610.79
5.4.110.0090.00411.23
5.4.100.0040.00810.92
5.4.90.0060.00610.77
5.4.80.0000.01210.69
5.4.70.0130.00310.64
5.4.60.0130.00010.95
5.4.50.0080.00410.75
5.4.40.0090.00310.99
5.4.30.0060.00610.75
5.4.20.0090.00611.00
5.4.10.0110.00010.87
5.4.00.0040.00910.80
5.3.290.0000.01310.65
5.3.280.0070.00010.36
5.3.270.0100.00010.38
5.3.260.0070.00410.37
5.3.250.0150.00010.64
5.3.240.0090.00610.25
5.3.230.0090.00510.43
5.3.220.0100.00510.45
5.3.210.0110.00010.32
5.3.200.0110.00010.45
5.3.190.0120.00010.30
5.3.180.0080.00310.64
5.3.170.0080.00310.59
5.3.160.0040.00810.46
5.3.150.0120.00010.37
5.3.140.0110.00010.30
5.3.130.0090.00610.48
5.3.120.0110.00410.53
5.3.110.0070.00410.57
5.3.100.0060.00510.37
5.3.90.0080.00410.48
5.3.80.0080.00410.38
5.3.70.0080.00410.25
5.3.60.0070.00310.50
5.3.50.0080.00410.49
5.3.40.0000.01310.38
5.3.30.0000.01010.46
5.3.20.0060.00610.34
5.3.10.0130.00010.14
5.3.00.0080.00410.13
5.2.170.0100.0009.56
5.2.160.0060.0069.46
5.2.150.0060.0039.61
5.2.140.0050.0049.46
5.2.130.0000.0099.46
5.2.120.0000.0099.46
5.2.110.0080.0049.46
5.2.100.0030.0069.46
5.2.90.0030.0069.46
5.2.80.0080.0029.46
5.2.70.0130.0009.46
5.2.60.0050.0039.46
5.2.50.0040.0089.46
5.2.40.0060.0069.46
5.2.30.0030.0069.46
5.2.20.0000.0099.46
5.2.10.0090.0039.46
5.2.00.0000.0079.46
5.1.60.0050.0029.46
5.1.50.0000.0069.46
5.1.40.0080.0009.46
5.1.30.0030.0039.46
5.1.20.0000.0059.46
5.1.10.0000.0079.46
5.1.00.0000.0079.46
5.0.50.0030.0039.46
5.0.40.0000.0069.46
5.0.30.0000.0089.46
5.0.20.0000.0089.46
5.0.10.0040.0049.46
5.0.00.0000.0089.46
4.4.90.0040.0029.46
4.4.80.0030.0059.46
4.4.70.0000.0059.46
4.4.60.0000.0069.46
4.4.50.0060.0009.46
4.4.40.0000.0069.46
4.4.30.0050.0009.46
4.4.20.0030.0039.46
4.4.10.0000.0069.46
4.4.00.0000.0059.46
4.3.110.0000.0059.46
4.3.100.0000.0079.46
4.3.90.0030.0039.46
4.3.80.0030.0039.46
4.3.70.0040.0049.46
4.3.60.0070.0009.46
4.3.50.0040.0049.46
4.3.40.0020.0029.46
4.3.30.0050.0009.46
4.3.20.0000.0069.46
4.3.10.0040.0009.46
4.3.00.0020.0029.46

preferences:
28.83 ms | 403 KiB | 5 Q