3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = hash('sha256', 'spottycats', true); var_dump(bin2hex($key)); $cipher = openssl_encrypt( 'Yes, it totally does.', 'aes-128-ctr', $key, OPENSSL_RAW_DATA, str_repeat("\x00", 16) ); $hmac = hash_hmac( 'sha256', $cipher, hash('sha256', 'spottycats', true), true ); echo base64_encode($cipher . $hmac), PHP_EOL;

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.0070.00716.75
8.3.50.0140.00716.36
8.3.40.0070.01018.89
8.3.30.0100.00718.84
8.3.20.0070.00020.42
8.3.10.0080.00023.56
8.3.00.0040.00421.82
8.2.180.0110.00418.41
8.2.170.0070.00722.96
8.2.160.0140.00019.24
8.2.150.0000.00724.18
8.2.140.0000.00724.66
8.2.130.0040.00420.37
8.2.120.0070.00026.35
8.2.110.0080.00320.59
8.2.100.0080.00319.45
8.2.90.0000.00817.61
8.2.80.0050.00318.91
8.2.70.0060.00317.92
8.2.60.0080.00018.03
8.2.50.0060.00318.10
8.2.40.0080.00019.23
8.2.30.0000.00719.21
8.2.20.0000.00718.06
8.2.10.0000.00718.00
8.2.00.0000.00717.93
8.1.280.0130.00325.92
8.1.270.0040.00422.24
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0060.00322.04
8.1.230.0060.00617.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00917.22
8.1.180.0000.00818.10
8.1.170.0080.00018.52
8.1.160.0030.00618.83
8.1.150.0040.00420.07
8.1.140.0000.00819.09
8.1.130.0030.00719.02
8.1.120.0050.00317.44
8.1.110.0000.00917.22
8.1.100.0040.00417.28
8.1.90.0000.00717.39
8.1.80.0000.00717.38
8.1.70.0000.00717.38
8.1.60.0040.00417.52
8.1.50.0040.00417.55
8.1.40.0000.00717.53
8.1.30.0040.00417.57
8.1.20.0050.00317.64
8.1.10.0040.00417.50
8.1.00.0040.00417.39
8.0.300.0030.00520.16
8.0.290.0050.00316.75
8.0.280.0030.00318.29
8.0.270.0050.00217.16
8.0.260.0030.00320.24
8.0.250.0000.00716.92
8.0.240.0000.01016.95
8.0.230.0030.00316.87
8.0.220.0040.00416.88
8.0.210.0040.00416.88
8.0.200.0000.00616.94
8.0.190.0080.00016.84
8.0.180.0080.00016.91
8.0.170.0000.00716.93
8.0.160.0040.00416.83
8.0.150.0050.00616.83
8.0.140.0000.00916.89
8.0.130.0000.00513.36
8.0.120.0040.00416.88
8.0.110.0040.00416.86
8.0.100.0030.00516.98
8.0.90.0070.00016.77
8.0.80.0110.00416.80
8.0.70.0040.00416.83
8.0.60.0000.00716.96
8.0.50.0000.00716.88
8.0.30.0070.01116.95
8.0.20.0120.01117.40
8.0.10.0000.00817.08
8.0.00.0130.01316.64
7.4.330.0030.00315.55
7.4.320.0030.00316.53
7.4.300.0060.00016.55
7.4.290.0000.00716.51
7.4.280.0040.00416.59
7.4.270.0030.00616.47
7.4.260.0070.00016.49
7.4.250.0070.00016.49
7.4.240.0000.00716.52
7.4.230.0030.00316.61
7.4.220.0160.00616.67
7.4.210.0130.00316.38
7.4.200.0000.00716.70
7.4.160.0090.00916.63
7.4.150.0050.01417.40
7.4.140.0150.00417.86
7.4.130.0050.01416.48
7.4.120.0090.01116.47
7.4.110.0130.00416.70
7.4.100.0130.00916.68
7.4.90.0160.00616.61
7.4.80.0070.01019.39
7.4.70.0160.00716.38
7.4.60.0060.00916.59
7.4.50.0070.00716.54
7.4.40.0090.01216.31
7.4.30.0050.01316.43
7.4.00.0070.00715.22
7.3.330.0000.00512.99
7.3.320.0060.00013.05
7.3.310.0040.00416.37
7.3.300.0000.00716.27
7.3.290.0070.00816.28
7.3.280.0090.00916.29
7.3.270.0140.00317.40
7.3.260.0100.00816.38
7.3.250.0110.00616.37
7.3.240.0140.00416.27
7.3.230.0070.01016.21
7.3.210.0090.00916.43
7.3.200.0130.00316.55
7.3.190.0120.00916.26
7.3.180.0100.00716.29
7.3.170.0060.00916.16
7.3.160.0090.00916.26
7.2.330.0070.01016.33
7.2.320.0130.00316.31
7.2.310.0060.01316.38
7.2.300.0140.00416.60
7.2.290.0160.00016.46
7.2.60.0070.01016.91
7.2.50.0100.00316.70
7.1.200.0060.00615.51
7.1.110.0060.00918.12
7.1.100.0000.01418.21
7.1.90.0080.00818.21
7.1.80.0030.01218.03
7.1.70.0080.00816.99
7.1.60.0210.01834.86
7.1.50.0330.00734.86
7.1.40.0210.01834.64
7.1.30.0290.00634.50
7.1.20.0180.01234.83
7.1.10.0100.01016.70
7.1.00.0080.00416.89
7.0.250.0060.00817.64
7.0.240.0060.00917.67
7.0.230.0070.00717.79
7.0.220.0080.00817.84
7.0.210.0070.01116.79
7.0.200.0060.01216.51
7.0.190.0060.01216.40
7.0.180.0060.01316.41
7.0.170.0040.01216.41
7.0.160.0030.01216.26
7.0.150.0100.00716.52
7.0.140.0110.00316.26
7.0.130.0030.00816.63
7.0.120.0060.00616.46
7.0.110.0030.01716.45
7.0.100.0100.01016.30
7.0.90.0070.00616.41
7.0.80.0060.01016.36
7.0.70.0060.00916.43
7.0.60.0070.01316.30
7.0.50.0130.00416.35
7.0.40.0040.01416.54
7.0.30.0060.00916.66
7.0.20.0000.01516.55
7.0.10.0110.00416.46
7.0.00.0070.00716.59

preferences:
51.63 ms | 400 KiB | 5 Q