3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serverSeed = 'ea988cb618604e34fef49e5b6eec0cbed5373f39534f6fa780efd48284a6a123467d336f6dd0b00cdd6c20dad9237afad174d6d6f142dd9f36da7d2a4b94117e'; $clientSeed = 'client'; $nonce = 1; for($nonce =946; $nonce < 1947; $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"); }

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.0130.00716.38
8.3.50.0130.01321.87
8.3.40.0100.01018.66
8.3.30.0100.01018.58
8.3.20.0000.01019.01
8.3.10.0030.00721.87
8.3.00.0070.00319.67
8.2.180.0100.01025.92
8.2.170.0110.01422.96
8.2.160.0230.00322.12
8.2.150.0070.00324.18
8.2.140.0100.00024.66
8.2.130.0070.00326.16
8.2.120.0000.01020.74
8.2.110.0110.00020.51
8.2.100.0100.00518.04
8.2.90.0030.00619.05
8.2.80.0030.00617.97
8.2.70.0070.00317.47
8.2.60.0050.00517.93
8.2.50.0100.00318.07
8.2.40.0000.01121.19
8.2.30.0040.00420.62
8.2.20.0030.00717.79
8.2.10.0030.00618.20
8.2.00.0000.00918.02
8.1.280.0100.01625.92
8.1.270.0080.00423.79
8.1.260.0130.00026.35
8.1.250.0000.01028.09
8.1.240.0060.00622.04
8.1.230.0040.01117.77
8.1.220.0060.00317.80
8.1.210.0040.00718.77
8.1.200.0100.00317.35
8.1.190.0030.00617.22
8.1.180.0030.00618.10
8.1.170.0040.00718.66
8.1.160.0060.00320.78
8.1.150.0030.00618.82
8.1.140.0060.00319.60
8.1.130.0030.00617.79
8.1.120.0060.00917.35
8.1.110.0030.00717.52
8.1.100.0070.00317.40
8.1.90.0070.00317.37
8.1.80.0000.01017.43
8.1.70.0040.00717.46
8.1.60.0030.00717.63
8.1.50.0070.00317.44
8.1.40.0110.00017.45
8.1.30.0040.00717.66
8.1.20.0080.00317.68
8.1.10.0060.00317.54
8.1.00.0030.00717.47
8.0.300.0000.00918.77
8.0.290.0040.00416.63
8.0.280.0100.00018.38
8.0.270.0060.00317.27
8.0.260.0040.00417.18
8.0.250.0000.00916.98
8.0.240.0050.00517.04
8.0.230.0070.00316.86
8.0.220.0060.00316.87
8.0.210.0030.00716.93
8.0.200.0050.00516.84
8.0.190.0000.00916.99
8.0.180.0060.00316.91
8.0.170.0060.00316.95
8.0.160.0030.00717.00
8.0.150.0000.01016.98
8.0.140.0000.01016.80
8.0.130.0040.00413.42
8.0.120.0030.00616.87
8.0.110.0000.01016.88
8.0.100.0090.00016.90
8.0.90.0000.01016.89
8.0.80.0110.01116.90
8.0.70.0030.00616.89
8.0.60.0030.00716.89
8.0.50.0000.01116.82
8.0.30.0150.01217.00
8.0.20.0170.01617.40
8.0.10.0090.00016.92
8.0.00.0180.00916.71
7.4.330.0000.00815.08
7.4.320.0060.00316.39
7.4.300.0000.00816.62
7.4.290.0040.00416.54
7.4.280.0040.00816.51
7.4.270.0030.00816.63
7.4.260.0060.00316.60
7.4.250.0070.00316.58
7.4.240.0030.00616.65
7.4.230.0040.00416.36
7.4.220.0210.01316.50
7.4.210.0080.01316.54
7.4.200.0030.00616.37
7.4.160.0130.01316.40
7.4.150.0190.00917.40
7.4.140.0190.01717.86
7.4.130.0130.01916.35
7.4.120.0190.01216.54
7.4.110.0030.02816.36
7.4.100.0170.01116.50
7.4.90.0210.00716.46
7.4.80.0170.01119.39
7.4.70.0140.01416.52
7.4.60.0230.00616.39
7.4.50.0030.01716.44
7.4.40.0090.01816.42
7.4.30.0180.00916.41
7.4.00.0120.00914.92
7.3.330.0060.00313.21
7.3.320.0000.00713.27
7.3.310.0030.00716.07
7.3.300.0030.00616.26
7.3.290.0060.00316.20
7.3.280.0100.01716.28
7.3.270.0040.02717.40
7.3.260.0150.01816.39
7.3.250.0180.02016.42
7.3.240.0150.02316.57
7.3.230.0120.02816.39
7.3.210.0140.01416.23
7.3.200.0220.00316.29
7.3.190.0100.01816.34
7.3.180.0100.01616.37
7.3.170.0160.01016.41
7.3.160.0150.01116.23
7.3.30.0060.01314.53
7.3.20.1050.00314.63
7.3.10.0910.00314.83
7.3.00.0880.01414.80
7.2.330.0290.00016.77
7.2.320.0160.01316.71
7.2.310.0140.01416.60
7.2.300.0100.01616.75
7.2.290.0120.01816.50
7.2.160.0150.00914.87
7.2.150.0890.00315.04
7.2.140.1730.01014.96
7.2.130.0910.00915.04
7.2.120.0720.01314.95
7.2.110.0780.01615.12
7.2.100.1220.01714.94
7.2.90.1350.01015.21
7.2.80.0980.01015.16
7.2.70.0870.01414.93
7.2.60.0820.01115.18
7.2.50.0930.00614.94
7.2.40.1260.00816.45
7.2.30.0780.01417.12
7.2.20.0500.01817.22
7.2.10.0680.01517.16
7.2.00.0540.01317.13
7.1.270.0800.01313.64
7.1.260.1150.01013.62
7.1.250.0910.01014.07
7.1.240.0980.01714.19
7.1.230.0980.01613.86
7.1.220.0920.01413.96
7.1.210.0990.01213.70
7.1.200.1000.01313.76
7.1.190.1060.00913.91
7.1.180.1510.01014.08
7.1.170.0950.02014.04
7.1.160.0610.01315.47
7.1.150.0540.01515.76
7.1.140.0880.01015.99
7.1.130.0820.01116.11
7.1.120.0320.01616.08
7.1.110.0590.01315.58
7.1.100.0720.01415.62
7.1.90.1070.01415.59
7.1.80.0700.01415.60
7.1.70.0580.01615.03
7.1.60.0760.02028.40
7.1.50.0790.01728.28
7.1.40.0760.01827.83
7.1.30.0820.01528.03
7.1.20.0870.02028.13
7.1.10.0560.01514.51
7.1.00.0620.01614.57
7.0.330.1050.01013.63
7.0.320.0960.01413.57
7.0.310.0950.02413.46
7.0.300.0980.02013.64
7.0.290.1150.01414.96
7.0.280.1990.00313.50
7.0.270.0910.01815.84
7.0.260.0670.01615.80
7.0.250.0400.01215.36
7.0.240.0690.01315.44
7.0.230.0960.01215.30
7.0.220.0750.01315.18
7.0.210.0790.01314.44
7.0.200.0620.01514.71
7.0.190.0640.01414.52
7.0.180.0680.01114.28
7.0.170.0710.01614.25
7.0.160.0660.01514.24
7.0.150.0570.01514.28
7.0.140.0820.01614.32
7.0.130.0490.01314.54
7.0.120.0490.01414.43
7.0.110.0460.01914.29
7.0.100.0470.01314.21
7.0.90.0610.01314.39
7.0.80.0470.01314.32
7.0.70.0450.01314.42
7.0.60.0540.01714.15
7.0.50.0490.01314.34
7.0.40.0510.01514.41
7.0.30.0420.01214.51
7.0.20.0490.01414.43
7.0.10.0570.01514.39
7.0.00.0570.01314.40
5.6.400.0230.01613.93
5.6.390.0260.01014.54
5.6.380.0190.02214.02
5.6.370.0210.01613.93
5.6.360.0190.01314.47
5.6.350.0230.02714.10
5.6.340.0120.01814.41
5.6.330.0150.01314.20
5.6.320.0320.00914.03
5.6.310.0200.01414.50
5.6.300.0210.05819.26
5.6.290.0190.05219.13
5.6.280.0200.04719.27
5.6.270.0160.05219.22
5.6.260.0210.05319.20
5.6.250.0250.05319.29
5.6.240.0250.05419.22
5.6.230.0170.05319.25
5.6.220.0260.05619.11
5.6.210.0160.05619.12
5.6.200.0230.05119.17
5.6.190.0220.05619.23
5.6.180.0190.05519.17
5.6.170.0160.05619.18
5.6.160.0220.05319.14
5.6.150.0270.05719.18
5.6.140.0220.05919.23
5.6.130.0190.05419.12
5.6.120.0170.05419.19
5.6.110.0250.05819.14
5.6.100.0200.05419.22
5.6.90.0190.05419.16
5.6.80.0190.06018.76
5.6.70.0210.05318.53
5.6.60.0200.05618.78
5.6.50.0220.05318.61
5.6.40.0190.05018.65
5.6.30.0180.06118.61
5.6.20.0150.05518.64
5.6.10.0190.05018.68
5.6.00.0210.05418.69
5.5.380.0190.05216.64
5.5.370.0150.05916.68
5.5.360.0180.05216.73
5.5.350.0250.05116.54
5.5.340.0170.05616.95
5.5.330.0180.05316.98
5.5.320.0180.05317.00
5.5.310.0170.05517.04
5.5.300.0150.05117.01
5.5.290.0160.05816.99
5.5.280.0180.05217.03
5.5.270.0210.05016.94
5.5.260.0170.05716.89
5.5.250.0180.04816.80
5.5.240.0180.05216.41
5.5.230.0160.05816.41
5.5.220.0210.04916.48
5.5.210.0160.05716.56
5.5.200.0130.05616.39
5.5.190.0190.05116.51
5.5.180.0130.05216.43
5.5.170.0130.01314.32
5.5.160.0190.04716.57
5.5.150.0170.05716.43
5.5.140.0230.05016.53
5.5.130.0180.06116.47
5.5.120.0210.05316.48
5.5.110.0180.04316.45
5.5.100.0180.05016.36
5.5.90.0170.04916.39
5.5.80.0170.05316.50
5.5.70.0160.04916.43
5.5.60.0140.06216.41
5.5.50.0210.04816.36
5.5.40.0160.05116.49
5.5.30.0150.04916.46
5.5.20.0130.05216.45
5.5.10.0130.05316.35
5.5.00.0170.06416.43

preferences:
60.87 ms | 401 KiB | 5 Q