3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo bin2hex( openssl_encrypt( /* Message: */ "The quick brown fox jumps over the lazy dog", /* Cipher algorithm and block mode: */ 'aes-128-ctr', /* Encryption key: (don't use weak keys like this ever, it's just an example!): */ "\x01\x02\x03\x04"."\x05\x06\x07\x08" . "\x09\x0a\x0b\x0c" . "\x0d\x0e\x0f\x10", /* Constant that means "don't encode": */ OPENSSL_RAW_DATA, /* Initialization Vector or Nonce -- don't ever actually use all NULL bytes: */ str_repeat("\0", 16) // This is a really bad way to generate a nonce or IV. // See how it's done here: http://stackoverflow.com/a/30189841/2224584 ) );

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.40.0070.01118.98
8.3.30.0110.00319.04
8.3.20.0040.00420.34
8.3.10.0040.00421.91
8.3.00.0070.00322.21
8.2.170.0120.00322.96
8.2.160.0090.00622.07
8.2.150.0080.00025.66
8.2.140.0000.01524.66
8.2.130.0070.00726.16
8.2.120.0050.00517.63
8.2.110.0060.00320.52
8.2.100.0080.00417.84
8.2.90.0050.00317.75
8.2.80.0050.00318.84
8.2.70.0050.00317.50
8.2.60.0000.00817.63
8.2.50.0050.00317.63
8.2.40.0050.00317.62
8.2.30.0070.00017.98
8.2.20.0040.00417.56
8.2.10.0090.00018.00
8.2.00.0040.00418.00
8.1.270.0040.00420.28
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0090.00023.98
8.1.230.0130.00019.61
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00517.22
8.1.190.0050.00317.22
8.1.180.0000.00818.10
8.1.170.0060.00318.51
8.1.160.0070.00022.00
8.1.150.0050.00318.73
8.1.140.0050.00317.32
8.1.130.0030.00317.58
8.1.120.0040.00417.34
8.1.110.0020.00517.37
8.1.100.0030.00617.24
8.1.90.0040.00417.33
8.1.80.0040.00417.22
8.1.70.0040.00417.21
8.1.60.0040.00417.51
8.1.50.0040.00417.37
8.1.40.0040.00417.33
8.1.30.0000.00817.46
8.1.20.0030.00517.60
8.1.10.0070.00017.54
8.1.00.0080.00017.45
8.0.300.0080.00020.02
8.0.290.0040.00416.75
8.0.280.0000.00718.30
8.0.270.0070.00017.22
8.0.260.0000.00817.20
8.0.250.0070.00016.90
8.0.240.0000.00716.96
8.0.230.0070.00016.85
8.0.220.0000.00716.90
8.0.210.0000.00716.80
8.0.200.0000.00916.79
8.0.190.0070.00016.93
8.0.180.0070.00016.84
8.0.170.0000.00816.82
8.0.160.0000.00716.75
8.0.150.0000.00716.86
8.0.140.0070.00016.83
8.0.130.0000.00513.36
8.0.120.0050.00515.09
8.0.110.0070.00315.03
8.0.100.0080.00215.10
8.0.90.0070.00115.11
8.0.80.0050.00915.07
8.0.70.0050.00515.09
8.0.60.0060.00415.11
8.0.50.0060.00315.05
8.0.30.0070.00915.78
8.0.20.0140.00516.08
8.0.10.0070.00415.09
8.0.00.0100.00415.89
7.4.330.0030.00315.04
7.4.320.0030.00316.39
7.4.300.0030.00316.35
7.4.290.0000.00716.50
7.4.280.0070.00016.38
7.4.270.0000.00616.44
7.4.260.0070.00416.52
7.4.250.0100.00214.85
7.4.240.0040.00615.43
7.4.230.0100.00214.69
7.4.220.0160.00314.87
7.4.210.0100.00514.89
7.4.200.0080.00214.84
7.4.190.0160.00013.29
7.4.180.0100.00313.24
7.4.160.0090.00714.74
7.4.150.0090.00815.32
7.4.140.0080.00916.30
7.4.130.0140.00515.25
7.4.120.0110.00615.34
7.4.110.0050.01014.68
7.4.100.0130.00514.88
7.4.90.0100.00514.81
7.4.80.0120.00616.28
7.4.70.0040.01014.84
7.4.60.0070.00614.90
7.4.50.0060.00314.68
7.4.40.0050.00613.96
7.4.30.0110.00614.84
7.4.20.0130.00013.11
7.4.10.0060.00714.02
7.4.00.0050.00714.23
7.3.330.0000.00613.19
7.3.320.0030.00313.12
7.3.310.0070.00214.55
7.3.300.0060.00214.68
7.3.290.0070.00815.48
7.3.280.0120.00415.42
7.3.270.0050.00715.24
7.3.260.0080.00614.69
7.3.250.0100.00715.66
7.3.240.0080.00714.83
7.3.230.0090.00814.77
7.3.220.0080.00512.89
7.3.210.0120.00514.75
7.3.200.0130.00516.21
7.3.190.0140.00114.67
7.3.180.0100.00714.59
7.3.170.0080.00914.75
7.3.160.0130.00414.79
7.3.150.0120.00013.04
7.3.140.0110.00013.17
7.3.130.0040.00913.81
7.3.120.0050.00813.91
7.3.110.0090.00414.31
7.3.100.0060.00614.18
7.3.90.0080.00614.27
7.3.80.0060.00714.10
7.3.70.0030.01014.23
7.3.60.0060.00814.15
7.3.50.0060.00714.11
7.3.40.0080.00514.21
7.3.30.0080.00514.21
7.3.20.0030.01215.37
7.3.10.0080.00615.59
7.3.00.0050.00715.67
7.2.340.0090.00412.85
7.2.330.0050.01414.71
7.2.320.0080.00714.75
7.2.310.0070.00814.69
7.2.300.0050.01014.84
7.2.290.0100.00714.77
7.2.280.0090.00313.08
7.2.270.0140.00012.89
7.2.260.0050.01014.04
7.2.250.0110.00313.91
7.2.240.0080.00514.23
7.2.230.0110.00514.11
7.2.220.0080.00414.22
7.2.210.0070.00614.20
7.2.200.0100.00614.20
7.2.190.0040.01014.24
7.2.180.0070.00714.25
7.2.170.0060.00714.18
7.2.160.0070.00714.17
7.2.150.0110.00515.56
7.2.140.0080.00615.41
7.2.130.0090.00515.83
7.2.120.0040.01115.85
7.2.110.0070.00715.80
7.2.100.0090.00515.89
7.2.90.0050.00915.85
7.2.80.0060.00815.80
7.2.70.0070.00615.89
7.2.60.0070.00816.05
7.2.50.0080.00815.92
7.2.40.0050.01015.84
7.2.30.0080.00615.97
7.2.20.0080.00515.83
7.2.10.0110.00415.81
7.2.00.0090.00617.10
7.1.330.0080.00514.21
7.1.320.0080.00714.36
7.1.310.0080.00714.52
7.1.300.0040.01014.46
7.1.290.0040.00814.31
7.1.280.0040.00914.40
7.1.270.0090.00614.29
7.1.260.0080.00414.41
7.1.250.0030.00814.77
7.1.240.0090.00514.47
7.1.230.0100.00414.37
7.1.220.0070.00714.38
7.1.210.0090.00514.38
7.1.200.0060.00614.75
7.1.190.0070.00714.42
7.1.180.0060.01014.37
7.1.170.0100.00514.28
7.1.160.0080.00614.21
7.1.150.0060.00514.44
7.1.140.0090.00514.32
7.1.130.0090.00614.34
7.1.120.0080.00715.42
7.1.110.0180.00814.90
7.1.100.0090.00615.83
7.1.90.0040.01015.33
7.1.80.0070.00715.43
7.1.70.0060.00515.42
7.1.60.0080.01019.57
7.1.50.0120.00818.98
7.1.40.0070.01119.42
7.1.30.0110.00819.36
7.1.20.0090.00719.35
7.1.10.0080.00814.46
7.1.00.0070.01916.48
7.0.330.0050.00813.61
7.0.320.0110.00113.37
7.0.310.0110.00313.39
7.0.300.0050.00913.51
7.0.290.0200.00213.71
7.0.280.0080.00813.58
7.0.270.0150.00013.51
7.0.260.0050.00715.13
7.0.250.0260.00515.04
7.0.240.0060.00715.01
7.0.230.0100.00315.14
7.0.220.0070.00614.97
7.0.210.0080.00414.68
7.0.200.0070.00915.18
7.0.190.0070.00714.69
7.0.180.0090.00614.46
7.0.170.0100.00314.48
7.0.160.0040.00914.56
7.0.150.0090.00414.55
7.0.140.0080.00514.58
7.0.130.0060.00814.60
7.0.120.0070.00514.54
7.0.110.0070.00514.39
7.0.100.0050.02715.81
7.0.90.0110.02515.83
7.0.80.0110.02215.90
7.0.70.0070.02315.74
7.0.60.0080.02415.77
7.0.50.0170.01815.98
7.0.40.0070.02415.93
7.0.30.0050.02615.88
7.0.20.0060.02715.98
7.0.10.0070.02515.89
7.0.00.0100.02215.88
5.6.400.0080.00313.18
5.6.390.0110.00213.47
5.6.380.0070.00513.13
5.6.370.0100.00513.37
5.6.360.0120.00513.24
5.6.350.0070.00513.12
5.6.340.0060.01013.29
5.6.330.0070.00613.20
5.6.320.0070.00613.13
5.6.310.0110.00213.13
5.6.300.0080.02215.71
5.6.290.0050.02615.64
5.6.280.0050.02917.09
5.6.270.0060.02515.61
5.6.260.0070.02415.72
5.6.250.0080.04016.93
5.6.240.0100.03917.03
5.6.230.0090.03816.94
5.6.220.0090.03916.94
5.6.210.0150.03616.93
5.6.200.0070.03617.12
5.6.190.0050.03817.05
5.6.180.0100.03717.13
5.6.170.0110.03717.04
5.6.160.0060.03517.13
5.6.150.0090.04017.12
5.6.140.0070.04117.12
5.6.130.0090.03617.04
5.6.120.0080.04017.17
5.6.110.0110.03517.04
5.6.100.0090.03217.06
5.6.90.0100.03317.07
5.6.80.0110.03016.70
5.6.70.0070.04016.71
5.6.60.0050.04016.74
5.6.50.0110.02516.79
5.6.40.0090.02916.61
5.6.30.0090.03416.69
5.6.20.0100.03416.68
5.6.10.0070.02916.80
5.6.00.0110.03416.69
5.5.380.0090.04116.04
5.5.370.0120.03016.08
5.5.360.0100.02815.93
5.5.350.0100.03316.04
5.5.340.0080.03816.20
5.5.330.0120.03416.34
5.5.320.0130.03616.31
5.5.310.0100.03616.28
5.5.300.0110.03516.22
5.5.290.0120.03416.43
5.5.280.0110.02416.34
5.5.270.0080.04016.22
5.5.260.0070.03416.30
5.5.250.0090.03516.23
5.5.240.0100.03215.97
5.5.230.0100.03115.93
5.5.220.0110.02815.97
5.5.210.0120.03315.86
5.5.200.0110.03616.02
5.5.190.0070.03815.71
5.5.180.0110.03215.86
5.5.170.0060.00613.07
5.5.160.0040.04015.91
5.5.150.0080.03715.94
5.5.140.0140.02915.86
5.5.130.0070.02815.93
5.5.120.0090.04015.90
5.5.110.0090.03815.88
5.5.100.0080.03115.84
5.5.90.0070.02815.94
5.5.80.0120.03215.88
5.5.70.0060.03915.94
5.5.60.0100.03915.92
5.5.50.0090.03515.82
5.5.40.0100.03315.82
5.5.30.0090.03415.90
5.5.20.0060.03715.92
5.5.10.0050.04515.79
5.5.00.0090.03415.79
5.4.450.0120.03715.76
5.4.440.0120.03715.76
5.4.430.0060.03515.78
5.4.420.0070.03315.75
5.4.410.0090.03215.68
5.4.400.0120.03315.55
5.4.390.0130.02815.54
5.4.380.0080.03415.63
5.4.370.0070.03315.54
5.4.360.0060.03615.63
5.4.350.0090.03215.64
5.4.340.0090.03315.58
5.4.330.0030.00812.00
5.4.320.0110.03115.63
5.4.310.0060.03515.53
5.4.300.0040.03715.55
5.4.290.0050.03715.66
5.4.280.0080.03815.66
5.4.270.0080.02715.59
5.4.260.0080.03315.54
5.4.250.0060.03115.61
5.4.240.0080.02915.48
5.4.230.0080.03215.48
5.4.220.0070.03815.53
5.4.210.0100.02915.49
5.4.200.0080.03415.50
5.4.190.0100.03915.54
5.4.180.0060.03015.52
5.4.170.0070.03315.50
5.4.160.0090.03415.57
5.4.150.0100.03915.57
5.4.140.0080.03414.22
5.4.130.0090.03214.22
5.4.120.0090.02914.25
5.4.110.0070.03214.27
5.4.100.0060.03414.24
5.4.90.0050.03514.19
5.4.80.0100.03014.25
5.4.70.0060.03014.31
5.4.60.0100.03714.30
5.4.50.0080.03414.21
5.4.40.0090.03214.18
5.4.30.0070.03314.19
5.4.20.0090.03014.25
5.4.10.0080.03214.29
5.4.00.0070.03113.93

preferences:
54.61 ms | 400 KiB | 5 Q