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 = base64_decode('zB4nMZZjjEUZPsCDo5YgoFiYsXFHpdfImGiybqT6MwgshCDnt/IVzQ19vY1X9l2GyP/V1NcYQf2XlLjYrTtEZg=='); $public_key = base64_decode('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.0040.01118.18
8.3.50.0100.00716.52
8.3.40.0070.01718.84
8.3.30.0120.01218.45
8.3.20.0120.00621.91
8.3.10.0030.00620.82
8.3.00.0060.00321.85
8.2.180.0130.01025.92
8.2.170.0100.00622.96
8.2.160.0150.00022.16
8.2.150.0000.00924.18
8.2.140.0070.01124.66
8.2.130.0120.00626.16
8.2.120.0040.00419.96
8.2.110.0070.00321.91
8.2.100.0130.00018.96
8.2.90.0030.00517.63
8.2.80.0040.00417.97
8.2.70.0040.00417.92
8.2.60.0000.00818.20
8.2.50.0090.00019.28
8.2.40.0070.00019.36
8.2.30.0050.00320.41
8.2.20.0060.00317.89
8.2.10.0030.00518.93
8.2.00.0050.00319.89
8.1.280.0060.00925.92
8.1.270.0050.00320.73
8.1.260.0030.00526.35
8.1.250.0040.01128.09
8.1.240.0000.00823.84
8.1.230.0040.00719.11
8.1.220.0030.00517.76
8.1.210.0060.00318.77
8.1.200.0050.00517.35
8.1.190.0040.00419.01
8.1.180.0080.00018.10
8.1.170.0000.00818.54
8.1.160.0050.00218.86
8.1.150.0040.00418.69
8.1.140.0050.00320.25
8.1.130.0030.00320.30
8.1.120.0030.00917.45
8.1.110.0070.00017.30
8.1.100.0040.00417.21
8.1.90.0030.00617.27
8.1.80.0050.00217.28
8.1.70.0090.00017.36
8.1.60.0000.00817.38
8.1.50.0030.00517.43
8.1.40.0000.00817.46
8.1.30.0040.00417.58
8.1.20.0040.00417.52
8.1.10.0000.00817.43
8.1.00.0040.00417.36
8.0.300.0070.00019.65
8.0.290.0080.00016.75
8.0.280.0000.00718.47
8.0.270.0070.00017.18
8.0.260.0030.00318.49
8.0.250.0040.00316.80
8.0.240.0030.00516.91
8.0.230.0040.00416.91
8.0.220.0030.00316.77
8.0.210.0000.00716.82
8.0.200.0040.00416.77
8.0.190.0000.00816.94
8.0.180.0000.00816.85
8.0.170.0080.00016.88
8.0.160.0000.00716.87
8.0.150.0050.00516.75
8.0.140.0000.00816.69
8.0.130.0050.00013.20
8.0.120.0000.00816.75
8.0.110.0000.00716.75
8.0.100.0000.00716.63
8.0.90.0080.00016.71
8.0.80.0090.00516.77
8.0.70.0070.00016.62
8.0.60.0000.00816.77
8.0.50.0040.00416.67
8.0.30.0000.01617.10
8.0.20.0060.01516.91
8.0.10.0040.00416.84
8.0.00.0100.01016.79
7.4.330.0000.00515.55
7.4.320.0030.00316.45
7.4.300.0030.00316.32
7.4.290.0040.00416.44
7.4.280.0030.00316.43
7.4.270.0040.00416.54
7.4.260.0070.00016.50
7.4.250.0040.00416.50
7.4.240.0030.00516.45
7.4.230.0030.00516.34
7.4.220.0000.00716.53
7.4.210.0060.00916.54
7.4.200.0040.00416.53
7.4.160.0090.00916.54
7.4.140.0110.00717.86
7.4.130.0130.01116.39
7.4.120.0160.00416.51
7.4.110.0120.00516.43
7.4.100.0060.01216.25
7.4.90.0160.00016.44
7.4.80.0150.00419.39
7.4.70.0140.00316.28
7.4.60.0080.00816.45
7.4.50.0070.00316.36
7.4.40.0140.00716.43
7.4.00.0070.01015.15
7.3.330.0030.00312.87
7.3.320.0060.00012.98
7.3.310.0040.00416.06
7.3.300.0030.00316.13
7.3.290.0110.00316.17
7.3.280.0080.00816.13
7.3.260.0090.00816.26
7.3.240.0130.00616.25
7.3.230.0090.00816.08
7.3.210.0110.00716.21
7.3.200.0030.01316.41
7.3.190.0090.00616.14
7.3.180.0130.00716.41
7.3.170.0100.00716.15
7.3.160.0090.00916.23
7.3.50.0030.00914.34
7.3.40.0100.00014.59
7.3.30.0060.00814.63
7.3.20.0130.00314.41
7.3.10.0180.00314.52
7.3.00.0130.00614.52
7.2.330.0150.00316.39
7.2.320.0130.00316.80
7.2.310.0100.01316.43
7.2.300.0130.00316.32
7.2.290.0110.00916.52
7.2.180.0060.01315.06
7.2.170.0090.00614.86
7.2.160.0170.00014.75
7.2.150.0100.01014.71
7.2.140.0180.00314.78
7.2.130.0180.00314.88
7.2.120.0130.00515.06
7.2.110.0450.00914.80
7.2.100.0140.00914.91
7.2.90.0770.01014.82
7.2.80.0110.01114.96
7.2.70.0120.00914.96
7.2.60.0130.01015.14
7.2.50.0140.00715.10
7.2.40.0160.00714.69
7.2.30.0170.01015.08
7.2.20.0120.01215.16
7.2.10.0190.00914.77
7.2.00.0120.00615.04
7.1.280.0240.00013.73
7.1.270.0060.01213.59
7.1.260.0130.00713.94
7.1.250.0150.00313.93

preferences:
45.74 ms | 401 KiB | 5 Q