3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serverSeed = '12e110ac5606c5aa49d906a939770a94ee994f6e2a5457fb88ee0761ec65c38bd18b071a7d68e7dcaa2f4cec81931f7e0d1a8861bf4b4b7d0565bef7952d417a'; $clientSeed = '6feaee330fd4c05949839893bf5a7aed6167d65f'; $nonce = 1; for($nonce =200000; $nonce < 202000; $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 nl2br ("\n"); }

Abusive script

This script was stopped while abusing our resources

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.110.0130.01716.74
8.3.100.0070.01724.06
8.3.90.0110.00326.77
8.3.80.0100.00618.30
8.3.70.0130.01618.14
8.3.60.0160.01318.30
8.3.50.0110.02121.98
8.3.40.0160.01018.58
8.3.30.0190.01018.58
8.3.20.0090.00320.16
8.3.10.0070.00723.66
8.3.00.0060.00618.93
8.2.230.0170.01020.94
8.2.220.0060.00637.54
8.2.210.0230.01026.77
8.2.200.0090.00616.50
8.2.190.0100.01316.63
8.2.180.0070.02116.63
8.2.170.0220.00322.96
8.2.160.0100.01719.33
8.2.150.0030.00924.18
8.2.140.0130.00024.66
8.2.130.0090.00326.16
8.2.120.0030.01019.83
8.2.110.0070.00720.51
8.2.100.0140.00317.93
8.2.90.0000.01219.03
8.2.80.0030.01017.97
8.2.70.0000.01317.50
8.2.60.0060.00617.93
8.2.50.0060.00618.10
8.2.40.0040.00820.59
8.2.30.0040.00719.27
8.2.20.0060.00617.69
8.2.10.0040.00818.02
8.2.00.0030.01018.13
8.1.290.0070.01030.84
8.1.280.0120.01225.92
8.1.270.0040.00823.91
8.1.260.0160.00926.35
8.1.250.0120.00028.09
8.1.240.0030.01220.82
8.1.230.0080.00817.76
8.1.220.0120.00017.91
8.1.210.0040.00718.77
8.1.200.0030.01017.35
8.1.190.0060.00617.35
8.1.180.0040.00818.10
8.1.170.0060.00618.64
8.1.160.0000.01322.15
8.1.150.0060.00918.91
8.1.140.0060.00619.53
8.1.130.0030.00917.71
8.1.120.0000.01117.38
8.1.110.0030.01017.46
8.1.100.0060.00617.44
8.1.90.0040.00717.44
8.1.80.0040.00717.54
8.1.70.0030.01017.51
8.1.60.0040.00817.61
8.1.50.0090.00317.46
8.1.40.0070.00717.44
8.1.30.0060.00617.51
8.1.20.0080.00617.51
8.1.10.0000.01117.43
8.1.00.0000.01117.53
8.0.300.0080.00318.77
8.0.290.0040.00716.59
8.0.280.0060.00618.43
8.0.270.0040.00717.17
8.0.260.0030.00717.22
8.0.250.0000.01016.94
8.0.240.0090.00316.85
8.0.230.0030.00816.87
8.0.220.0070.00416.94
8.0.210.0110.00716.90
8.0.200.0100.00716.91
8.0.190.0110.00016.93
8.0.180.0050.00516.93
8.0.170.0040.01116.96
8.0.160.0040.00816.94
8.0.150.0030.01016.80
8.0.140.0030.00916.90
8.0.130.0040.00813.37
8.0.120.0000.01216.75
8.0.110.0080.00416.98
8.0.100.0030.00916.90
8.0.90.0000.01416.81
8.0.80.0100.03416.97
8.0.70.0050.00516.98
8.0.60.0000.01116.86
8.0.50.0040.00816.81
8.0.30.0240.01317.09
8.0.20.0240.01917.40
8.0.10.0070.00416.84
8.0.00.0240.01916.77
7.4.330.0070.00315.08
7.4.320.0030.01016.63
7.4.300.0070.00316.45
7.4.290.0060.00616.63
7.4.280.0040.01116.43
7.4.270.0060.00916.51
7.4.260.0030.00916.51
7.4.250.0080.00416.38
7.4.240.0080.00316.46
7.4.230.0050.00516.55
7.4.220.0100.02016.46
7.4.210.0100.02016.59
7.4.200.0000.01116.57
7.4.160.0070.02916.59
7.4.150.0210.02217.40
7.4.140.0220.02717.86
7.4.130.0200.02316.57
7.4.120.0230.01916.44
7.4.110.0150.02516.64
7.4.100.0150.02116.44
7.4.90.0190.02916.62
7.4.80.0170.01819.39
7.4.70.0160.01916.63
7.4.60.0220.01316.47
7.4.50.0100.01316.48
7.4.40.0240.02016.57
7.4.30.0120.02316.50
7.4.00.0090.01515.01
7.3.330.0000.01013.19
7.3.320.0030.00713.05
7.3.310.0000.01116.23
7.3.300.0060.00616.16
7.3.290.0100.02116.25
7.3.280.0120.02416.26
7.3.270.0220.02217.40
7.3.260.0230.02516.48
7.3.250.0200.02216.30
7.3.240.0200.02516.38
7.3.230.0180.02116.39
7.3.210.0300.01616.26
7.3.200.0160.01916.29
7.3.190.0160.01916.43
7.3.180.0230.02316.29
7.3.170.0220.01616.40
7.3.160.0060.02916.65
7.2.330.0090.02916.57
7.2.320.0160.02516.69
7.2.310.0150.02816.84
7.2.300.0160.02216.66
7.2.290.0210.01716.82
7.1.70.0060.01217.29
7.1.60.0100.01019.80
7.1.00.0230.06322.36
7.0.200.0390.01814.88
7.0.80.0330.06719.99
7.0.70.0230.06020.08
7.0.60.0230.05719.96
7.0.50.0200.06020.26
7.0.40.0230.06320.30
7.0.30.0170.06720.24
7.0.20.0200.07020.27
7.0.10.0330.06320.33
7.0.00.0100.07320.36
5.6.280.0000.08321.16
5.6.230.0270.07320.64
5.6.220.0200.05720.61
5.6.210.0230.06720.68
5.6.200.0270.07021.10
5.6.190.0130.07721.09
5.6.180.0170.06721.09
5.6.170.0270.08721.08
5.6.160.0170.08021.06
5.6.150.0230.06021.01
5.6.140.0130.06321.14
5.6.130.0170.06321.08
5.6.120.0200.08321.07
5.6.110.0130.08021.14
5.6.100.0230.07021.07
5.6.90.0170.07021.12
5.6.80.0170.06720.51
5.6.70.0200.06320.47
5.6.60.0130.06720.46
5.6.50.0170.06020.39
5.6.40.0270.04720.44
5.6.30.0130.05720.38
5.6.20.0170.06020.41
5.6.10.0070.07020.43
5.6.00.0070.07320.42
5.5.370.0170.06320.60
5.5.360.0100.07320.38
5.5.350.0170.07320.48
5.5.340.0170.07020.84
5.5.330.0170.07720.98
5.5.320.0300.05720.84
5.5.310.0300.06320.93
5.5.300.0200.05720.86
5.5.290.0230.07020.92
5.5.280.0270.06320.84
5.5.270.0270.06320.85
5.5.260.0170.09020.82
5.5.250.0270.06720.73
5.5.240.0100.06320.29
5.5.230.0130.07320.30
5.5.220.0170.06320.30
5.5.210.0130.06020.31
5.5.200.0100.06320.30
5.5.190.0170.07020.27
5.5.180.0370.04320.23
5.5.160.0170.05720.12
5.5.150.0130.09020.27
5.5.140.0170.07320.18
5.5.130.0130.07020.27
5.5.120.0100.06320.29
5.5.110.0170.06020.24
5.5.100.0130.06320.13
5.5.90.0200.05320.17
5.5.80.0200.05720.07
5.5.70.0100.06320.18
5.5.60.0170.06720.06
5.5.50.0170.06719.98
5.5.40.0130.06020.11
5.5.30.0100.07020.17
5.5.20.0200.05720.16
5.5.10.0170.06020.18
5.5.00.0100.06719.98

preferences:
62.51 ms | 403 KiB | 5 Q