3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serverSeed = '7db5eef616a2c672630953954757df8400eeed22a3e0fc1ac6c5555200e122b91e6825b8faf19c723cb09de3da434970a157c21c31b6986e4a75b777361168bc'; $clientSeed = 'FFFFE380'; $nonce = 1; for($nonce =1; $nonce <= 20; $nonce++){ $seed = $serverSeed.'-'.$clientSeed.'-'.$nonce; do { $seed = sha1($seed); $lucky = hexdec(substr($seed,0,8)); } while ($lucky > 4294960000); $luckyNumber = ($lucky % 10000) / 100; if ($luckyNumber < 0) $luckyNumber = -$luckyNumber; echo $nonce.":".$luckyNumber; echo ("\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.0190.00017.59
8.4.10.0050.00519.46
8.3.150.0130.00718.80
8.3.140.0060.01217.22
8.3.130.0090.00618.28
8.3.120.0070.01119.05
8.3.110.0060.00316.50
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0040.00416.78
8.3.70.0110.00416.49
8.3.60.0120.00316.38
8.3.50.0130.00616.61
8.3.40.0080.00818.80
8.3.30.0070.00718.62
8.3.20.0050.00320.34
8.3.10.0050.00322.04
8.3.00.0070.00023.84
8.2.270.0100.01017.22
8.2.260.0040.00416.91
8.2.250.0080.00018.50
8.2.240.0130.00718.75
8.2.230.0080.00420.94
8.2.220.0080.00037.54
8.2.210.0040.01226.77
8.2.200.0000.00916.50
8.2.190.0090.00616.58
8.2.180.0110.01117.93
8.2.170.0030.01722.96
8.2.160.0100.00320.48
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00419.77
8.2.110.0070.01120.38
8.2.100.0030.00917.84
8.2.90.0080.00419.17
8.2.80.0040.00419.46
8.2.70.0050.00317.63
8.2.60.0000.00918.03
8.2.50.0030.00518.22
8.2.40.0070.00020.42
8.2.30.0030.00519.20
8.2.20.0060.00317.98
8.2.10.0040.00418.20
8.2.00.0000.00718.01
8.1.310.0110.01118.40
8.1.300.0050.00517.71
8.1.290.0030.00618.88
8.1.280.0070.01025.92
8.1.270.0050.00320.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.80
8.1.230.0090.00317.70
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0040.00417.23
8.1.180.0090.00018.10
8.1.170.0040.00418.44
8.1.160.0070.00018.97
8.1.150.0080.00020.16
8.1.140.0070.00019.55
8.1.130.0030.00319.02
8.1.120.0040.00417.50
8.1.110.0050.00317.49
8.1.100.0000.00717.39
8.1.90.0070.00017.36
8.1.80.0000.00817.39
8.1.70.0000.00717.49
8.1.60.0000.01117.49
8.1.50.0050.00317.46
8.1.40.0050.00317.45
8.1.30.0000.00917.63
8.1.20.0000.00817.73
8.1.10.0070.00017.54
8.1.00.0000.00917.52
8.0.300.0000.01018.77
8.0.290.0040.00716.75
8.0.280.0000.00818.46
8.0.270.0070.00017.28
8.0.260.0050.00318.48
8.0.250.0040.00416.91
8.0.240.0070.00016.98
8.0.230.0000.00716.96
8.0.220.0000.00716.90
8.0.210.0070.00016.91
8.0.200.0070.00016.96
8.0.190.0040.00416.88
8.0.180.0000.00716.91
8.0.170.0000.00716.91
8.0.160.0040.00416.91
8.0.150.0080.00016.78
8.0.140.0040.00416.81
8.0.130.0030.00313.34
8.0.120.0030.00516.85
8.0.110.0070.00016.86
8.0.100.0000.00716.78
8.0.90.0050.00316.77
8.0.80.0040.01116.81
8.0.70.0060.00316.96
8.0.60.0040.00416.74
8.0.50.0040.00416.90
8.0.30.0120.00817.17
8.0.20.0090.01017.40
8.0.10.0000.00717.00
8.0.00.0070.01016.83
7.4.330.0000.00515.55
7.4.320.0030.00316.68
7.4.300.0030.00316.62
7.4.290.0000.00716.66
7.4.280.0030.00516.66
7.4.270.0000.00716.57
7.4.260.0000.00716.47
7.4.250.0060.00316.39
7.4.240.0000.00716.59
7.4.230.0000.00716.34
7.4.220.0100.01316.36
7.4.210.0070.00716.59
7.4.200.0070.00016.46
7.4.160.0100.00716.40
7.4.150.0100.00717.40
7.4.140.0120.00617.86
7.4.130.0130.01016.54
7.4.120.0090.00916.56
7.4.110.0140.00416.41
7.4.100.0040.01416.31
7.4.90.0110.00716.59
7.4.80.0060.01219.39
7.4.70.0060.01116.34
7.4.60.0100.01316.59
7.4.50.0030.01216.37
7.4.40.0090.00916.25
7.4.30.0030.01316.48
7.4.00.0040.01214.95
7.3.330.0050.00013.16
7.3.320.0050.00013.07
7.3.310.0000.00716.36
7.3.300.0030.00616.32
7.3.290.0080.01016.26
7.3.280.0120.00516.27
7.3.270.0030.02217.40
7.3.260.0130.00616.64
7.3.250.0130.00516.43
7.3.240.0100.00716.43
7.3.230.0120.00616.44
7.3.210.0060.01116.49
7.3.200.0080.00816.29
7.3.190.0130.00516.32
7.3.180.0030.01316.33
7.3.170.0090.00916.30
7.3.160.0100.00616.33
7.3.120.0020.01814.67
7.3.110.0070.01114.83
7.3.100.0070.00814.71
7.3.90.0040.00714.92
7.3.80.0020.01214.85
7.3.70.0090.00414.79
7.3.60.0070.01014.74
7.3.50.0040.01114.77
7.3.40.0030.00814.93
7.3.30.0060.00814.86
7.3.20.0060.00316.66
7.3.10.0060.00516.55
7.3.00.0070.00516.62
7.2.330.0000.01616.73
7.2.320.0060.01216.65
7.2.310.0090.00916.69
7.2.300.0070.01016.72
7.2.290.0160.00016.47
7.2.250.0090.00915.18
7.2.240.0130.00514.70
7.2.230.0050.01214.99
7.2.220.0040.00715.00
7.2.210.0060.00514.95
7.2.200.0110.00415.18
7.2.190.0060.00615.14
7.2.180.0050.01015.06
7.2.170.0050.00815.03
7.2.160.0000.01415.13
7.2.150.0040.00817.04
7.2.140.0000.01417.07
7.2.130.0110.00316.98
7.2.120.0130.00316.79
7.2.110.0090.01317.00
7.2.100.0160.00316.61
7.2.90.0070.00716.93
7.2.80.0000.01617.02
7.2.70.0060.00916.80
7.2.60.0090.00516.88
7.2.50.0030.01016.93
7.2.40.0070.00716.79
7.2.30.0040.00817.10
7.2.20.0100.00616.73
7.2.10.0040.00817.01
7.2.00.0110.00316.96
7.1.330.0050.01015.77
7.1.320.0080.00815.99
7.1.310.0060.00816.04
7.1.300.0050.00715.64
7.1.290.0080.00815.84
7.1.280.0020.01215.72
7.1.270.0080.00815.71
7.1.260.0060.00715.85
7.1.250.0000.01815.63
7.1.240.0100.00815.64
7.1.230.0000.01315.79
7.1.220.0000.01215.49
7.1.210.0060.01015.86
7.1.200.0060.00815.79
7.1.190.0030.01315.71
7.1.180.0040.01215.82
7.1.170.0030.00915.70
7.1.160.0060.00915.92
7.1.150.0100.00315.94
7.1.140.0080.00315.59
7.1.130.0090.00315.82
7.1.120.0100.00715.77
7.1.110.0040.01415.78
7.1.100.0040.00715.87
7.1.90.0090.01017.08
7.1.80.0080.00917.14
7.1.70.0050.00816.54
7.1.60.0120.00925.40
7.1.50.0110.00825.29
7.1.40.0070.01125.17
7.1.30.0080.01225.11
7.1.20.0090.01125.23
7.1.10.0060.00916.21
7.1.00.0070.00516.26
7.0.330.0100.00615.30
7.0.320.0040.01115.29
7.0.310.0030.00915.41
7.0.300.0080.00015.32
7.0.290.0000.01115.37
7.0.280.0040.01215.28
7.0.270.0030.00715.37
7.0.260.0040.01115.28
7.0.250.0070.01015.59
7.0.240.0030.01415.43
7.0.230.0110.00716.69
7.0.220.0080.00716.63
7.0.210.0100.00616.08
7.0.200.0080.00516.02
7.0.190.0040.00616.17
7.0.180.0050.00615.76
7.0.170.0050.00815.78
7.0.160.0080.00615.85
7.0.150.0050.00815.66
7.0.140.0020.01115.69
7.0.130.0030.01115.99
7.0.120.0050.00915.80
7.0.110.0080.00615.88
7.0.100.0050.01215.86
7.0.90.0030.01015.68
7.0.80.0070.00415.83
7.0.70.0070.00715.85
7.0.60.0080.00915.84
7.0.50.0130.01115.90
7.0.40.0050.01214.98
7.0.30.0060.00714.93
7.0.20.0030.00914.77
7.0.10.0030.01015.00
7.0.00.0240.00513.86
5.6.400.0050.00514.10
5.6.390.0030.00714.32
5.6.380.0090.00613.88
5.6.370.0120.00414.55
5.6.360.0100.00314.18
5.6.350.0000.01214.11
5.6.340.0060.00914.23
5.6.330.0040.00714.17
5.6.320.0030.01314.08
5.6.310.0030.01014.21
5.6.300.0000.01414.36
5.6.290.0100.00313.88
5.6.280.0000.01414.02
5.6.270.0030.01014.28
5.6.260.0030.01614.12
5.6.250.0100.01014.53
5.6.240.0040.01114.12
5.6.230.0030.00914.50
5.6.220.0040.00714.22
5.6.210.0070.00714.41
5.6.200.0090.00914.18
5.6.190.0090.00314.22
5.6.180.0070.00714.18
5.6.170.0030.01014.24
5.6.160.0080.00614.59
5.6.150.0090.00614.24
5.6.140.0000.01114.34
5.6.130.0100.00314.23
5.6.120.0000.01014.69
5.6.110.0030.00714.23
5.6.100.0040.01114.47
5.6.90.0060.00614.24
5.6.80.0060.01014.27
5.6.70.0130.00313.98
5.6.60.0040.01114.38
5.6.50.0120.00314.00
5.6.40.0080.00614.00
5.6.30.0060.00613.95
5.6.20.0030.00714.16
5.6.10.0040.01113.73
5.6.00.0040.01213.77

preferences:
60.95 ms | 403 KiB | 5 Q