3v4l.org

run code in 300+ PHP versions simultaneously
<?php function insecureEncryptDoNotUse(string $plaintext, string $key): string { return \bin2hex( \openssl_encrypt( $plaintext, 'aes-128-ecb', $key, OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING ) ); } $key = str_repeat("3.14", 4); var_dump(insecureEncryptDoNotUse('YELLOW SUBMARINE', $key)); var_dump(insecureEncryptDoNotUse('ORANGE SUBMARINE', $key)); var_dump(insecureEncryptDoNotUse('YELLOW SUBMARINE' . 'ORANGE SUBMARINE', $key));

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.130.0080.00018.63
8.3.120.0000.00918.93
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0080.00026.77
8.3.80.0040.00818.55
8.3.70.0080.01116.88
8.3.60.0040.01118.28
8.3.50.0120.00516.69
8.3.40.0070.00718.80
8.3.30.0070.00718.66
8.3.20.0080.00018.91
8.3.10.0000.00721.85
8.3.00.0000.00919.75
8.2.250.0040.00416.93
8.2.240.0070.01119.01
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0060.00326.77
8.2.200.0080.00416.88
8.2.190.0070.00716.58
8.2.180.0100.00716.63
8.2.170.0120.00319.09
8.2.160.0000.01422.96
8.2.150.0080.00025.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00421.00
8.2.110.0090.00022.13
8.2.100.0040.00817.72
8.2.90.0070.00018.09
8.2.80.0000.00817.97
8.2.70.0060.00317.80
8.2.60.0040.00417.63
8.2.50.0080.00017.63
8.2.40.0100.00218.42
8.2.30.0090.00318.67
8.2.20.0090.00318.35
8.2.10.0070.00418.40
8.2.00.0070.00417.96
8.1.300.0060.00320.23
8.1.290.0030.00730.84
8.1.280.0060.00925.92
8.1.270.0000.00723.89
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00319.09
8.1.230.0040.00820.89
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0070.00517.62
8.1.160.0080.00318.16
8.1.150.0050.00518.61
8.1.140.0080.00418.46
8.1.130.0020.00818.23
8.1.120.0080.00317.72
8.1.110.0040.00617.75
8.1.100.0030.00817.76
8.1.90.0080.00217.72
8.1.80.0070.00317.76
8.1.70.0070.00417.58
8.1.60.0070.00617.66
8.1.50.0070.00517.64
8.1.40.0060.00617.61
8.1.30.0060.00617.70
8.1.20.0070.00517.74
8.1.10.0060.00517.68
8.1.00.0060.00617.61
8.0.300.0040.00419.90
8.0.290.0090.00016.75
8.0.280.0040.00717.98
8.0.270.0030.00717.66
8.0.260.0010.00818.31
8.0.250.0050.00417.61
8.0.240.0040.00617.59
8.0.230.0060.00417.58
8.0.220.0030.00717.60
8.0.210.0080.00217.56
8.0.200.0050.00617.25
8.0.190.0080.00417.25
8.0.180.0060.00617.19
8.0.170.0080.00417.19
8.0.160.0090.00317.31
8.0.150.0080.00517.20
8.0.140.0100.00417.18
8.0.130.0060.00616.47
8.0.120.0100.00317.14
8.0.110.0080.00417.14
8.0.100.0080.00317.11
8.0.90.0050.00617.12
8.0.80.0090.00417.13
8.0.70.0060.00617.11
8.0.60.0060.00517.09
8.0.50.0070.00517.19
8.0.30.0090.00617.08
8.0.20.0090.00617.29
8.0.10.0070.00517.19
8.0.00.0060.00717.21
7.4.330.0070.00417.14
7.4.320.0090.00417.43
7.4.300.0100.00417.11
7.4.290.0090.00317.02
7.4.280.0080.00516.86
7.4.270.0070.00616.98
7.4.260.0080.00517.03
7.4.250.0070.00517.01
7.4.240.0060.00516.93
7.4.230.0050.00516.85
7.4.220.0090.00517.02
7.4.210.0080.00616.83
7.4.200.0060.00516.91
7.4.190.0080.00416.95
7.4.180.0060.00616.94
7.4.160.0070.00716.82
7.4.150.0090.00417.00
7.4.140.0090.00817.23
7.4.130.0080.00616.81
7.4.120.0090.00716.72
7.4.110.0070.00616.90
7.4.100.0050.00716.83
7.4.90.0070.00516.76
7.4.80.0080.00517.18
7.4.70.0050.01016.86
7.4.60.0060.00616.87
7.4.50.0070.00516.67
7.4.40.0090.00416.73
7.4.30.0080.00516.82
7.4.20.0100.00416.77
7.4.10.0090.00516.84
7.4.00.0080.00416.57
7.3.330.0090.00416.29
7.3.320.0080.00516.28
7.3.310.0070.00716.93
7.3.300.0070.00616.79
7.3.290.0090.00416.75
7.3.280.0090.00916.52
7.3.270.0070.00716.91
7.3.260.0090.00716.73
7.3.250.0090.00616.67
7.3.240.0090.00516.74
7.3.230.0090.00516.77
7.3.220.0090.00516.76
7.3.210.0090.00616.75
7.3.200.0080.00716.67
7.3.190.0120.00316.72
7.3.180.0070.00716.75
7.3.170.0110.00316.73
7.3.160.0080.00616.66
7.3.150.0100.00516.68
7.3.140.0100.00516.71
7.3.130.0110.00416.72
7.3.120.0080.00716.71
7.3.110.0130.00316.69
7.3.100.0100.00416.63
7.3.90.0110.00316.84
7.3.80.0100.00516.71
7.3.70.0080.00716.72
7.3.60.0090.00616.77
7.3.50.0100.00416.77
7.3.40.0080.00716.74
7.3.30.0080.00716.52
7.3.20.0220.00617.00
7.3.10.0150.00816.95
7.3.00.0170.00516.95
7.2.340.0100.00616.82
7.2.330.0120.00516.83
7.2.320.0100.00616.78
7.2.310.0080.00816.79
7.2.300.0110.00516.77
7.2.290.0090.00816.81
7.2.280.0100.00616.77
7.2.270.0110.00516.72
7.2.260.0100.00616.77
7.2.250.0090.00716.78
7.2.240.0100.00616.72
7.2.230.0110.00516.75
7.2.220.0100.00716.71
7.2.210.0140.00516.74
7.2.200.0120.00516.84
7.2.190.0110.00616.85
7.2.180.0110.00516.79
7.2.170.0090.00616.89
7.2.160.0110.00416.66
7.2.150.0180.00717.11
7.2.140.0180.00717.10
7.2.130.0200.00517.17
7.2.120.0190.00517.13
7.2.110.0220.00517.11
7.2.100.0200.00617.16
7.2.90.0170.00817.13
7.2.80.0180.00417.13
7.2.70.0220.00317.04
7.2.60.0180.00717.05
7.2.50.0190.00717.11
7.2.40.0210.00517.16
7.2.30.0170.00617.18
7.2.20.0220.00517.16
7.2.10.0180.00617.14
7.2.00.0180.00617.16
7.1.330.0150.00316.78
7.1.320.0120.00516.73
7.1.310.0090.00716.75
7.1.300.0110.00516.67
7.1.290.0110.00616.71
7.1.280.0080.00816.69
7.1.270.0160.00716.33
7.1.260.0250.00616.31
7.1.250.0180.00416.27
7.1.240.0210.00416.28
7.1.230.0230.00416.29
7.1.220.0180.00616.30
7.1.210.0210.00616.32
7.1.200.0160.00716.28
7.1.190.0200.00816.32
7.1.180.0190.00616.26
7.1.170.0210.00516.24
7.1.160.0170.00616.23
7.1.150.0180.00516.27
7.1.140.0250.00416.29
7.1.130.0180.00616.33
7.1.120.0220.00416.31
7.1.110.0160.00616.29
7.1.100.0210.00616.28
7.1.90.0210.00316.30
7.1.80.0170.00516.28
7.1.70.0170.00616.38
7.1.60.0180.00516.44
7.1.50.0180.00818.17
7.1.40.0170.00618.05
7.1.30.0200.00618.17
7.1.20.0230.00718.18
7.1.10.0200.00416.09
7.1.00.0180.00516.09
7.0.330.0160.00716.05
7.0.320.0170.00516.53
7.0.310.0200.00516.02
7.0.300.0180.00616.06
7.0.290.0180.00516.08
7.0.280.0180.00616.10
7.0.270.0190.00516.03
7.0.260.0170.00516.12
7.0.250.0160.00616.15
7.0.240.0170.00716.20
7.0.230.0190.00416.15
7.0.220.0200.00516.17
7.0.210.0170.00616.08
7.0.200.0160.00516.22
7.0.190.0190.00516.02
7.0.180.0190.00615.94
7.0.170.0160.00615.99
7.0.160.0180.00515.91
7.0.150.0160.00615.88
7.0.140.0170.00715.92
7.0.130.0200.00815.95
7.0.120.0180.00715.94
7.0.110.0130.00715.89
7.0.100.0150.00615.88
7.0.90.0170.00315.88
7.0.80.0170.00615.92
7.0.70.0160.00515.87
7.0.60.0170.00715.89
7.0.50.0190.00715.88
7.0.40.0140.00715.90
7.0.30.0160.00415.92
7.0.20.0180.00615.93
7.0.10.0160.00415.92
7.0.00.0210.00615.93
5.6.400.0080.00816.37
5.6.390.0090.00815.96
5.6.380.0120.00515.95
5.6.370.0100.00516.25
5.6.360.0090.00516.22
5.6.350.0110.00416.25
5.6.340.0100.00516.22
5.6.330.0090.00616.27
5.6.320.0090.00616.24
5.6.310.0090.00616.26
5.6.300.0080.00816.26
5.6.290.0100.00516.26
5.6.280.0110.00416.27
5.6.270.0090.00716.29
5.6.260.0090.00616.24
5.6.250.0110.00516.28
5.6.240.0090.00616.24
5.6.230.0110.00316.23
5.6.220.0080.00616.23
5.6.210.0110.00516.21
5.6.200.0090.00616.34
5.6.190.0080.00616.30
5.6.180.0100.00516.33
5.6.170.0070.00816.27
5.6.160.0090.00616.24
5.6.150.0090.00516.35
5.6.140.0100.00516.27
5.6.130.0090.00516.27
5.6.120.0100.00516.21
5.6.110.0100.00516.26
5.6.100.0090.00716.24
5.6.90.0110.00516.20
5.6.80.0070.00716.22
5.6.70.0090.00516.27
5.6.60.0090.00616.24
5.6.50.0100.00516.24
5.6.40.0090.00616.21
5.6.30.0070.00816.20
5.6.20.0110.00416.19
5.6.10.0080.00616.18
5.6.00.0080.00616.25

preferences:
73.49 ms | 403 KiB | 5 Q