3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This is a demo, decrypting a string which was encrypted here: https://repl.it/BhjH // CAUTION: This is a 512 bit RSA demo key - NEVER USE THIS SOMEWHERE FOR REAL! $private_key_string = <<<__EOF__ -----BEGIN RSA PRIVATE KEY----- MIIBOwIBAAJBANWj431rbsGw3f6rmED2gN0sKaxxDGvFB/M+o6OwnHGEtz7tL1bz J3wUEHzUkt4EelafK7KHNfOZ45mwmeviPn8CAwEAAQJAYj3oKc+Scf1cSHUuIYl5 fruFOmgN9yz21/ORGn/noQc4HS04VynMhzojs5MVIGTFVW1KTn8L4CdQ9iIHHPO4 SQIhAPkb7XKPrCif9XnJSa8l2roMzBYbUXQeeMHW46OzehGlAiEA24zJgypJ3F8t FLqRwXLH0eMr1D50vbPWcmeAWx5hjlMCIQCtPIa8jL2k4tjLgPgFHcYmbI/hL85N eoNwCgj05vOVIQIgScOUlNgpdrwXhmZkwE0TK8aanDXbvTzl6QwzSOn9NvcCIQCS zYIZywZTRueYk3YQCTX3ofnQad7M9X2802tWqm0q6A== -----END RSA PRIVATE KEY----- __EOF__; $private_key = openssl_pkey_get_private($private_key_string); $encrypted_encoded = "WetPszXfBK3iJgvOh0Wst+j7hBEJbYNGCmR+bgZZNglNsHTBh/ewVS04XpyJUnMTgjvLSoPaCbQ1SIpxJh7eXg=="; $encrypted = base64_decode($encrypted_encoded); openssl_private_decrypt($encrypted, $decrypted, $private_key); echo "decrypted: $decrypted\n";

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.4.20.0140.00718.05
8.4.10.0040.00417.84
8.3.150.0120.00617.16
8.3.140.0040.01117.21
8.3.130.0080.00018.30
8.3.120.0030.00618.96
8.3.110.0060.00320.94
8.3.100.0100.00716.63
8.3.90.0160.00318.26
8.3.80.0090.00318.30
8.3.70.0190.00318.55
8.3.60.0110.00318.31
8.3.50.0100.01122.96
8.3.40.0130.00618.62
8.3.30.0090.00518.63
8.3.20.0040.01120.25
8.3.10.0040.00420.61
8.3.00.0150.00620.71
8.2.260.0040.01116.61
8.2.250.0150.00316.61
8.2.240.0040.00418.84
8.2.230.0040.00422.58
8.2.220.0090.00024.06
8.2.210.0110.00726.77
8.2.200.0060.00318.88
8.2.190.0040.01116.59
8.2.180.0110.00416.63
8.2.170.0120.00322.96
8.2.160.0130.00320.57
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00620.38
8.2.110.0080.00920.06
8.2.100.0070.00417.78
8.2.90.0040.00422.38
8.2.80.0000.00817.97
8.2.70.0080.00017.75
8.2.60.0040.00418.22
8.2.50.0050.00317.55
8.2.40.0030.00517.80
8.2.30.0040.00419.46
8.2.20.0070.00017.74
8.2.10.0080.00317.79
8.2.00.0000.00717.99
8.1.310.0040.00416.84
8.1.300.0070.00717.66
8.1.290.0060.00330.84
8.1.280.0130.00725.92
8.1.270.0150.00423.79
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00822.24
8.1.230.0070.00320.89
8.1.220.0000.00817.74
8.1.210.0030.00518.83
8.1.200.0050.00517.35
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0040.00417.62
8.1.160.0040.00422.09
8.1.150.0000.00718.76
8.1.140.0000.00718.86
8.1.130.0000.00717.64
8.1.120.0040.00417.45
8.1.110.0000.00717.32
8.1.100.0040.00417.34
8.1.90.0030.00617.29
8.1.80.0030.00517.38
8.1.70.0030.00317.42
8.1.60.0040.00417.44
8.1.50.0040.00417.52
8.1.40.0040.00417.40
8.1.30.0040.00417.70
8.1.20.0040.00417.64
8.1.10.0000.00717.54
8.1.00.0040.00417.55
8.0.300.0080.00718.96
8.0.290.0040.00416.63
8.0.280.0000.00818.39
8.0.270.0070.00016.69
8.0.260.0030.00317.19
8.0.250.0030.00316.98
8.0.240.0000.00716.91
8.0.230.0000.00716.99
8.0.220.0040.00616.82
8.0.210.0000.00716.77
8.0.200.0040.00416.98
8.0.190.0030.00616.87
8.0.180.0040.00416.91
8.0.170.0040.00416.92
8.0.160.0000.00716.80
8.0.150.0070.00016.78
8.0.140.0000.00916.74
8.0.130.0030.00313.31
8.0.120.0050.00316.85
8.0.110.0040.00416.82
8.0.100.0040.00416.70
8.0.90.0050.00216.87
8.0.80.0060.01016.91
8.0.70.0000.00716.76
8.0.60.0000.00716.88
8.0.50.0040.00416.82
8.0.30.0110.00617.16
8.0.20.0060.01217.41
8.0.10.0130.00617.18
8.0.00.0100.00919.01
7.4.330.0100.00516.47
7.4.320.0000.00716.55
7.4.300.0050.00216.50
7.4.290.0030.00316.53
7.4.280.0070.00016.54
7.4.270.0000.00616.56
7.4.260.0030.00616.49
7.4.250.0070.00016.54
7.4.240.0000.00716.61
7.4.230.0030.00316.62
7.4.220.0060.00116.54
7.4.210.0060.01016.54
7.4.200.0070.00016.53
7.4.150.0140.00417.40
7.4.140.0140.00617.35
7.4.130.0060.01416.61
7.4.120.0080.01016.52
7.4.110.0100.00716.46
7.4.100.0050.01416.52
7.4.90.0130.00816.49
7.4.80.0090.01017.18
7.4.70.0110.00916.55
7.4.60.0110.00716.44
7.4.50.0080.00916.42
7.4.40.0090.00916.52
7.4.30.0100.00816.51
7.4.20.0090.01016.50
7.4.10.0100.00716.40
7.4.00.0110.00916.27
7.3.330.0050.00013.10
7.3.320.0000.00513.02
7.3.310.0030.00416.33
7.3.300.0030.00316.31
7.3.290.0070.00916.25
7.3.280.0090.00916.29
7.3.260.0110.00716.34
7.3.250.0070.01016.34
7.3.240.0090.00816.40
7.3.230.0110.00916.54
7.3.220.0090.00816.35
7.3.210.0090.01116.43
7.3.200.0100.00916.30
7.3.190.0090.01016.28
7.3.180.0100.00716.35
7.3.170.0100.00816.31
7.3.160.0070.01116.34
7.3.150.0090.00816.27
7.3.140.0100.00716.36
7.3.130.0110.00816.30
7.3.120.0140.01116.33
7.3.110.0120.00916.32
7.3.100.0120.00916.33
7.3.90.0100.00916.30
7.3.80.0110.00716.39
7.3.70.0110.00716.33
7.3.60.0090.01116.27
7.3.50.0120.00816.31
7.3.40.0120.00916.24
7.3.30.0090.00915.96
7.3.20.0440.00816.05
7.3.10.0310.01015.89
7.3.00.0340.00915.97
7.2.340.0270.01116.55
7.2.330.0110.01216.45
7.2.320.0140.00916.37
7.2.310.0160.00516.36
7.2.300.0150.00716.40
7.2.290.0140.00816.42
7.2.280.0100.01016.42
7.2.270.0120.00816.33
7.2.260.0120.01016.33
7.2.250.0150.01116.43
7.2.240.0110.01216.34
7.2.230.0120.00916.46
7.2.220.0110.01116.40
7.2.210.0070.01316.41
7.2.200.0120.01216.39
7.2.190.0120.01016.34
7.2.180.0130.01016.36
7.2.170.0110.01116.35
7.2.160.0090.01016.06
7.2.150.0440.00916.11
7.2.140.0330.01116.15
7.2.130.0460.01016.13
7.2.120.0410.01116.13
7.2.110.0410.00916.10
7.2.100.0380.01116.15
7.2.90.0400.00916.14
7.2.80.0370.00716.17
7.2.70.0410.00816.13
7.2.60.0320.01016.20
7.2.50.0360.00616.10
7.2.40.0390.01016.10
7.2.30.0360.01316.29
7.2.20.0330.00916.29
7.2.10.0320.01016.28
7.2.00.0360.01116.40
7.1.330.0130.01015.29
7.1.320.0190.00815.32
7.1.310.0190.00815.26
7.1.300.0190.00615.30
7.1.290.0190.00715.29
7.1.280.0220.00715.24
7.1.270.0460.00914.95
7.1.260.0340.00914.88
7.1.250.0520.00914.92
7.1.240.0500.01114.86
7.1.230.0490.00814.89
7.1.220.0510.00914.88
7.1.210.0440.00914.85
7.1.200.0390.00814.91
7.1.190.0410.00914.88
7.1.180.0370.00814.85
7.1.170.0420.01014.90
7.1.160.0400.00814.91
7.1.150.0370.01315.11
7.1.140.0340.00915.10
7.1.130.0310.01015.02
7.1.120.0310.00915.21
7.1.110.0310.01015.16
7.1.100.0330.00715.16
7.1.90.0270.01115.12
7.1.80.0270.01015.19
7.1.70.0230.00915.21
7.1.60.0320.01018.08
7.1.50.0270.01017.88
7.1.40.0290.01117.93
7.1.30.0270.01017.91
7.1.20.0310.01117.88
7.1.10.0290.00914.92
7.1.00.0220.01415.47
7.0.330.0480.00914.65
7.0.320.0410.01014.68
7.0.310.0540.00814.64
7.0.300.0390.00814.58
7.0.290.0460.01014.65
7.0.280.0360.01014.61
7.0.270.0300.01014.79
7.0.260.0310.01114.97
7.0.250.0270.01014.87
7.0.240.0330.00814.92
7.0.230.0430.01014.93
7.0.220.0290.00914.86
7.0.210.0250.00914.74
7.0.200.0240.01114.91
7.0.190.0260.00814.78
7.0.180.0250.00914.63
7.0.170.0250.00914.65
7.0.160.0260.00914.67
7.0.150.0240.00814.60
7.0.140.0250.01014.65
7.0.130.0220.01114.74
7.0.120.0230.01014.69
7.0.110.0250.00714.66
7.0.100.0220.01515.06
7.0.90.0190.01415.04
7.0.80.0210.01115.06
7.0.70.0200.01715.03
7.0.60.0220.01614.97
7.0.50.0220.01315.11
7.0.40.0370.01615.06
7.0.30.0240.01315.08
7.0.20.0200.01215.08
7.0.10.0200.01015.07
7.0.00.0220.01415.03
5.6.400.0130.01215.30
5.6.390.0170.01015.33
5.6.380.0160.01115.30
5.6.370.0140.01115.26
5.6.360.0160.01015.32
5.6.350.0210.01415.30
5.6.340.0120.01115.27
5.6.330.0160.01115.33
5.6.320.0130.01015.26
5.6.310.0150.01115.38
5.6.300.0140.02016.25
5.6.290.0130.01816.27
5.6.280.0170.02016.68
5.6.270.0130.01816.28
5.6.260.0120.02016.18
5.6.250.0160.02316.55
5.6.240.0170.02216.57
5.6.230.0130.02616.61
5.6.220.0140.02416.59
5.6.210.0140.02316.57
5.6.200.0150.02216.64
5.6.190.0150.02316.66
5.6.180.0140.02616.58
5.6.170.0150.01916.62
5.6.160.0150.02316.56
5.6.150.0130.02516.63
5.6.140.0140.02416.57
5.6.130.0150.02216.60
5.6.120.0140.02216.61
5.6.110.0130.02216.60
5.6.100.0110.02316.64
5.6.90.0150.01816.64
5.6.80.0130.02216.44
5.6.70.0120.02016.43
5.6.60.0130.02116.41
5.6.50.0150.01916.46
5.6.40.0150.02016.43
5.6.30.0120.01916.40
5.6.20.0150.01816.46
5.6.10.0150.01616.46
5.6.00.0120.02116.38
5.5.380.0170.02516.01
5.5.370.0150.02416.03
5.5.360.0160.02516.01
5.5.350.0190.02015.95
5.5.340.0160.02316.07
5.5.330.0160.02316.12
5.5.320.0150.02716.08
5.5.310.0150.02316.17
5.5.300.0160.02316.06
5.5.290.0140.02416.10
5.5.280.0140.02516.12
5.5.270.0150.02316.13
5.5.260.0150.02216.14
5.5.250.0140.02316.03
5.5.240.0160.01915.87
5.5.230.0140.02015.91
5.5.220.0140.02215.89
5.5.210.0130.02215.92
5.5.200.0160.01915.88
5.5.190.0150.01915.94
5.5.180.0160.01915.98
5.5.170.0150.01015.15
5.5.160.0120.02015.92
5.5.150.0140.02215.92
5.5.140.0160.01615.92
5.5.130.0150.02115.95
5.5.120.0140.01915.91
5.5.110.0140.01915.89
5.5.100.0130.02015.85
5.5.90.0140.01915.85
5.5.80.0130.02115.81
5.5.70.0150.01915.89
5.5.60.0160.02115.82
5.5.50.0150.02015.88
5.5.40.0140.02015.85
5.5.30.0130.01915.80
5.5.20.0120.02215.78
5.5.10.0160.01815.88
5.5.00.0130.01915.85
5.4.450.0030.00312.43

preferences:
37.95 ms | 403 KiB | 5 Q