3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(extension_loaded('sodium')) { echo "libsodium is present.\n"; } printf("Opcache is %s.\n", ini_get('opcache.enable')); $super_important_data = 'The quick brown fox jumps over the lazy dog\'s back.'; $private_key = 'zB4nMZZjjEUZPsCDo5YgoFiYsXFHpdfImGiybqT6MwgshCDnt/IVzQ19vY1X9l2GyP/V1NcYQf2XlLjYrTtEZg=='; $public_key = 'LIQg57fyFc0Nfb2NV/Zdhsj/1dTXGEH9l5S42K07RGY='; $super_important_signature = sodium_crypto_sign_detached($super_important_data, $private_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.60.0120.00318.43
8.3.50.0130.00617.40
8.3.40.0100.00718.89
8.3.30.0090.00618.73
8.3.20.0040.00421.73
8.3.10.0060.00320.94
8.3.00.0000.00821.90
8.2.180.0150.00025.92
8.2.170.0140.00722.96
8.2.160.0100.00322.06
8.2.150.0030.00624.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0070.00026.16
8.2.110.0070.00322.08
8.2.100.0080.00419.03
8.2.90.0050.00517.60
8.2.80.0040.00419.60
8.2.70.0000.00818.04
8.2.60.0000.00818.03
8.2.50.0040.00419.28
8.2.40.0030.00619.42
8.2.30.0070.00020.30
8.2.20.0000.00817.92
8.2.10.0000.00818.81
8.2.00.0020.00518.06
8.1.280.0060.00925.92
8.1.270.0080.00020.75
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0080.00022.05
8.1.230.0000.01119.15
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0060.00317.13
8.1.190.0030.00519.02
8.1.180.0040.00418.10
8.1.170.0080.00018.53
8.1.160.0040.00418.76
8.1.150.0000.00718.77
8.1.140.0040.00420.20
8.1.130.0000.00720.27
8.1.120.0040.00717.44
8.1.110.0000.00917.41
8.1.100.0040.00417.24
8.1.90.0080.00017.41
8.1.80.0050.00317.30
8.1.70.0030.00617.25
8.1.60.0080.00017.48
8.1.50.0070.00017.58
8.1.40.0000.00817.42
8.1.30.0040.00417.49
8.1.20.0040.00417.68
8.1.10.0040.00417.60
8.1.00.0040.00417.38
8.0.300.0000.00719.68
8.0.290.0000.00716.75
8.0.280.0070.00018.46
8.0.270.0030.00317.31
8.0.260.0030.00318.41
8.0.250.0030.00316.88
8.0.240.0000.00616.98
8.0.230.0040.00416.91
8.0.220.0000.00716.79
8.0.210.0030.00316.89
8.0.200.0040.00416.99
8.0.190.0000.00817.02
8.0.180.0000.00716.94
8.0.170.0080.00016.93
8.0.160.0040.00416.93
8.0.150.0000.01016.85
8.0.140.0070.00016.87
8.0.130.0000.00613.29
8.0.120.0030.00516.82
8.0.110.0070.00016.75
8.0.100.0030.00516.84
8.0.90.0070.00016.92
8.0.80.0070.00816.85
8.0.70.0000.00816.77
8.0.60.0040.00416.79
8.0.50.0000.00716.76
8.0.30.0100.00617.04
8.0.20.0070.01117.14
8.0.10.0040.00417.06
8.0.00.0090.00916.78
7.4.330.0030.00315.55
7.4.320.0000.00616.52
7.4.300.0030.00316.59
7.4.290.0060.00516.36
7.4.280.0080.00016.60
7.4.270.0000.00916.63
7.4.260.0070.00316.64
7.4.250.0070.00016.46
7.4.240.0070.00016.59
7.4.230.0070.00016.66
7.4.220.0060.00316.32
7.4.210.0050.01216.54
7.4.200.0040.00416.67
7.4.160.0060.01116.49
7.4.140.0100.00917.86
7.4.130.0120.00416.37
7.4.120.0090.00916.39
7.4.110.0120.00916.59
7.4.100.0170.00716.63
7.4.90.0090.00916.40
7.4.80.0120.00619.39
7.4.70.0070.01716.59
7.4.60.0070.01016.27
7.4.50.0030.01016.64
7.4.40.0190.00516.65
7.4.10.0070.01016.12
7.4.00.0120.00515.60
7.3.330.0030.00313.11
7.3.320.0030.00313.16
7.3.310.0000.00716.11
7.3.300.0000.00716.28
7.3.290.0110.00716.25
7.3.280.0090.00816.24
7.3.260.0120.00716.38
7.3.240.0130.00816.47
7.3.230.0130.00316.27
7.3.210.0060.01116.33
7.3.200.0110.00616.52
7.3.190.0100.00616.39
7.3.180.0100.00616.41
7.3.170.0150.00616.41
7.3.160.0120.00916.40
7.3.130.0000.01416.25
7.3.120.0070.01016.15
7.3.110.0040.01216.30
7.3.100.0090.00616.04
7.3.90.0000.01716.44
7.3.80.0130.00316.29
7.3.70.0070.00716.21
7.3.60.0070.00716.29
7.3.50.0070.00415.63
7.3.40.0070.00715.50
7.3.30.0080.00815.54
7.3.20.0100.00716.46
7.3.10.0090.00716.51
7.3.00.0110.00516.42
7.2.330.0110.01316.62
7.2.320.0100.00716.57
7.2.310.0080.00816.38
7.2.300.0060.00916.57
7.2.290.0080.01616.62
7.2.260.0100.00316.52
7.2.250.0030.01416.18
7.2.240.0090.00616.12
7.2.230.0100.00716.25
7.2.220.0120.00616.49
7.2.210.0080.00416.60
7.2.200.0090.00616.39
7.2.190.0040.01116.32
7.2.180.0070.00515.64
7.2.170.0110.00215.72
7.2.160.0100.01015.69
7.2.150.0120.00916.36
7.2.140.0100.00816.54
7.2.130.0090.00816.61
7.2.120.0100.00916.64
7.2.110.0420.00816.39
7.2.100.0110.00816.54
7.2.90.0140.00816.57
7.2.80.0090.00816.70
7.2.70.0090.00416.65
7.2.60.0100.00816.62
7.2.50.0080.00616.63
7.2.40.0050.01016.65
7.2.30.0110.00416.58
7.2.20.0120.00616.60
7.2.10.0080.01016.50
7.2.00.0120.00516.70
7.1.330.0090.00617.17
7.1.320.0030.01017.25
7.1.310.0040.00817.38
7.1.300.0060.00917.12
7.1.290.0080.00317.24
7.1.280.0090.00515.47
7.1.270.0140.00715.36
7.1.260.0100.01215.55
7.1.250.0160.00815.53
7.1.240.0060.00317.24
7.1.230.0070.00717.08
7.1.220.0070.00717.07
7.1.210.0070.00717.12
7.1.200.0030.01317.09
7.1.190.0000.01817.14
7.1.180.0040.00417.20
7.1.170.0060.00617.28
7.1.160.0030.00617.13
7.1.150.0070.00317.05
7.1.140.0040.01217.02
7.1.130.0040.00817.24
7.1.120.0060.00617.09
7.1.110.0030.00617.26
7.1.100.0030.01217.32
7.1.90.0050.00517.27
7.1.80.0060.00617.18
7.1.70.0030.00917.09
7.1.60.0070.00417.11
7.1.50.0030.01317.12
7.1.40.0040.00717.09
7.1.30.0060.00917.22
7.1.20.0070.01017.03
7.1.10.0090.00317.12
7.1.00.0060.00617.20

preferences:
62.35 ms | 401 KiB | 5 Q