3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cipher = openssl_encrypt( 'Oh murr :3', 'aes-128-ctr', hash('sha256', 'spottycats', true), 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.0030.01716.38
8.3.50.0070.00716.16
8.3.40.0040.01118.75
8.3.30.0160.00618.67
8.3.20.0040.00420.31
8.3.10.0000.00823.48
8.3.00.0000.00823.65
8.2.180.0070.01118.43
8.2.170.0060.00922.96
8.2.160.0040.01120.26
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0000.00722.14
8.2.120.0070.00026.35
8.2.110.0030.00722.29
8.2.100.0040.00817.72
8.2.90.0050.00319.23
8.2.80.0060.00317.97
8.2.70.0060.00317.50
8.2.60.0040.00417.93
8.2.50.0060.00618.10
8.2.40.0090.00022.18
8.2.30.0080.00019.28
8.2.20.0000.00717.96
8.2.10.0030.00618.09
8.2.00.0000.00718.02
8.1.280.0040.01125.92
8.1.270.0040.00423.80
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.67
8.1.230.0090.00319.21
8.1.220.0000.00717.74
8.1.210.0000.01018.77
8.1.200.0000.00817.23
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0000.00918.59
8.1.160.0060.00318.90
8.1.150.0050.00318.75
8.1.140.0000.00717.69
8.1.130.0030.00718.79
8.1.120.0030.00317.36
8.1.110.0070.00017.29
8.1.100.0030.00317.38
8.1.90.0070.00017.33
8.1.80.0030.00517.40
8.1.70.0040.00417.39
8.1.60.0050.00317.38
8.1.50.0040.00417.39
8.1.40.0060.00617.39
8.1.30.0000.00817.60
8.1.20.0040.00417.58
8.1.10.0080.00017.60
8.1.00.0050.00317.41
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0070.00018.42
8.0.270.0090.00017.10
8.0.260.0000.00719.09
8.0.250.0080.00016.93
8.0.240.0000.00716.92
8.0.230.0000.00716.86
8.0.220.0000.00716.90
8.0.210.0000.00716.89
8.0.200.0040.00416.96
8.0.190.0030.00616.98
8.0.180.0050.00216.95
8.0.170.0000.00716.90
8.0.160.0070.00016.95
8.0.150.0030.00316.86
8.0.140.0120.00016.85
8.0.130.0030.00313.39
8.0.120.0070.00016.80
8.0.110.0050.00216.94
8.0.100.0050.00216.93
8.0.90.0040.00416.91
8.0.80.0090.00616.90
8.0.70.0070.00016.96
8.0.60.0040.00416.95
8.0.50.0050.00316.73
8.0.30.0130.00717.03
8.0.20.0110.00817.40
8.0.10.0000.00716.81
8.0.00.0140.00316.77
7.4.330.0020.00216.70
7.4.320.0030.00316.33
7.4.300.0030.00316.54
7.4.290.0030.00616.54
7.4.280.0040.00416.56
7.4.270.0000.00716.48
7.4.260.0030.00316.60
7.4.250.0050.00316.46
7.4.240.0040.00416.50
7.4.230.0030.00316.45
7.4.220.0090.00916.50
7.4.210.0060.00916.54
7.4.200.0070.00016.29
7.4.160.0050.01316.56
7.4.150.0090.00917.40
7.4.140.0080.01217.86
7.4.130.0070.01016.53
7.4.120.0120.00616.48
7.4.110.0060.01316.40
7.4.100.0060.01216.45
7.4.90.0100.00716.62
7.4.80.0080.00819.39
7.4.70.0060.01616.61
7.4.60.0120.00616.34
7.4.50.0080.00416.54
7.4.40.0060.01316.39
7.4.30.0100.00616.46
7.4.10.0060.01114.82
7.4.00.0080.00514.93
7.3.330.0030.00313.18
7.3.320.0030.00313.18
7.3.310.0030.00316.34
7.3.300.0030.00316.29
7.3.290.0000.00716.12
7.3.280.0040.01216.29
7.3.270.0090.00917.40
7.3.260.0120.00916.39
7.3.250.0050.01216.36
7.3.240.0040.01316.45
7.3.230.0130.00316.29
7.3.210.0110.00616.39
7.3.200.0100.00616.41
7.3.190.0060.00916.48
7.3.180.0060.01016.29
7.3.170.0060.01216.38
7.3.160.0060.01116.28
7.3.130.0080.01014.78
7.3.120.0050.01114.74
7.3.110.0050.01014.78
7.3.100.0030.01014.74
7.3.90.0070.00914.70
7.3.80.0070.00414.98
7.3.70.0040.01014.67
7.3.60.0090.00814.78
7.3.50.0030.01014.78
7.3.40.0050.00914.71
7.3.30.0070.00714.73
7.3.20.0070.00416.63
7.3.10.0020.01116.58
7.3.00.0030.00816.69
7.2.330.0090.00916.62
7.2.320.0070.01416.50
7.2.310.0030.01516.12
7.2.300.0090.00916.23
7.2.290.0140.00616.62
7.2.260.0030.01314.95
7.2.250.0020.01614.93
7.2.240.0040.01114.71
7.2.230.0020.01315.05
7.2.220.0060.00614.71
7.2.210.0050.00914.79
7.2.200.0110.00414.91
7.2.190.0050.01214.86
7.2.180.0040.01214.88
7.2.170.0100.00314.85
7.2.160.0110.00214.78
7.2.150.0070.00916.65
7.2.140.0000.01716.68
7.2.130.0050.00616.74
7.2.120.0050.00916.78
7.2.110.0080.00916.72
7.2.100.0060.00616.77
7.2.90.0080.00516.69
7.2.80.0050.00816.66
7.2.70.0020.01116.87
7.2.60.0100.00616.75
7.2.50.0040.01116.74
7.2.40.0050.00516.91
7.2.30.0020.00916.71
7.2.20.0070.00516.82
7.2.10.0090.00416.69
7.2.00.0080.00716.85
7.1.330.0070.00815.68
7.1.320.0040.01115.72
7.1.310.0060.00715.76
7.1.300.0080.00315.65
7.1.290.0050.00915.61
7.1.280.0000.01215.50
7.1.270.0100.00215.55
7.1.260.0060.00615.55
7.1.250.0020.00815.63
7.1.240.0020.01015.48
7.1.230.0080.00415.55
7.1.220.0030.00915.73
7.1.210.0060.00915.62
7.1.200.0090.00515.52
7.1.190.0070.00415.59
7.1.180.0060.00715.69
7.1.170.0030.01015.60
7.1.160.0070.00715.48
7.1.150.0050.00615.61
7.1.140.0080.00715.68
7.1.130.0050.00615.67
7.1.120.0050.00515.74
7.1.110.0340.00615.77
7.1.100.0210.01015.79
7.1.90.0410.00515.75
7.1.80.0230.01115.63
7.1.70.0210.00915.60
7.1.60.0230.01221.42
7.1.50.0310.01021.52
7.1.40.0230.00721.29
7.1.30.0260.00821.36
7.1.20.0220.01021.37
7.1.10.0170.00815.22
7.1.00.0180.00715.34
7.0.330.0050.00515.38
7.0.320.0030.01215.13
7.0.310.0030.00815.37
7.0.300.0060.00815.20
7.0.290.0030.01015.31
7.0.280.0070.00215.29
7.0.270.0050.00815.44
7.0.260.0030.01215.26
7.0.250.0210.00715.49
7.0.240.0190.01015.39
7.0.230.0280.00615.51
7.0.220.0260.00915.48
7.0.210.0180.00715.17
7.0.200.0250.00615.23
7.0.190.0340.00815.11
7.0.180.0200.00815.08
7.0.170.0270.01014.90
7.0.160.0220.00915.07
7.0.150.0160.01014.97
7.0.140.0160.00815.18
7.0.130.0190.00715.03
7.0.120.0230.00515.22
7.0.110.0260.01015.04
7.0.100.0170.01214.95
7.0.90.0220.00815.09
7.0.80.0270.00714.94
7.0.70.0370.00715.05
7.0.60.0270.00615.08
7.0.50.0170.01015.13
7.0.40.0250.00813.82
7.0.30.0260.00613.66
7.0.20.0220.00713.81
7.0.10.0220.01213.79
7.0.00.0200.00613.78
5.6.400.0060.00814.02
5.6.390.0060.00713.98
5.6.380.0080.00314.07
5.6.370.0030.00814.26
5.6.360.0090.00414.05
5.6.350.0030.00714.17
5.6.340.0030.00813.92
5.6.330.0050.00814.20
5.6.320.0050.01114.21
5.6.310.0020.01314.25
5.6.300.0030.01214.31
5.6.290.0080.00814.20
5.6.280.0000.01313.99
5.6.270.0060.00814.18
5.6.260.0020.01114.08
5.6.250.0090.00913.98
5.6.240.0080.00914.13
5.6.230.0050.01414.27
5.6.220.0030.01214.03
5.6.210.0050.00714.17
5.6.200.0050.01014.26
5.6.190.0040.00714.14
5.6.180.0050.01014.05
5.6.170.0050.00714.07
5.6.160.0050.01014.01
5.6.150.0070.00614.21
5.6.140.0030.00914.15
5.6.130.0030.00913.89
5.6.120.0030.01014.03
5.6.110.0110.00614.15
5.6.100.0030.01214.03
5.6.90.0070.00414.01
5.6.80.0090.00614.03
5.6.70.0030.00913.88
5.6.60.0020.00814.04
5.6.50.0030.00814.06
5.6.40.0060.00813.93
5.6.30.0000.01414.01
5.6.20.0110.00713.97
5.6.10.0080.00814.07
5.6.00.0080.00513.87

preferences:
60.12 ms | 400 KiB | 5 Q