3v4l.org

run code in 300+ PHP versions simultaneously
<?php $game_id = 47399; $private_seed = "969e82ae0b4a3cfd6bf2afea5cf8bd26ddc6c11f3ae676f5655e779607b3778f"; $public_seed = "076c26818441622607ad1bffbf5f02a90eaadb020532bda9a9d60aedfb217528"; $hash = hash("sha256", $private_seed . '-' . $public_seed . '-' . $game_id); $flip = hexdec(substr($hash, 0, 8)) % 2 + 1; echo "Server seed hash: " . hash("sha256", $private_seed) . "\n"; echo "Result: " . ($flip == 1 ? 'RED' : 'BLACK');

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.0100.01019.54
8.4.10.0080.00019.38
8.3.150.0110.00717.11
8.3.140.0100.00016.64
8.3.130.0070.00716.46
8.3.120.0230.00317.79
8.3.110.0250.00517.41
8.3.100.0240.00718.07
8.3.90.0260.00818.55
8.3.80.0220.00716.49
8.3.70.0250.00817.53
8.3.60.0320.00817.90
8.3.50.0160.00718.76
8.3.40.0250.00818.30
8.3.30.0220.00818.27
8.3.20.0190.00721.56
8.3.10.0180.00721.69
8.3.00.0150.00723.82
8.2.270.0110.00717.26
8.2.260.0120.00618.33
8.2.250.0080.00016.94
8.2.240.0150.00617.69
8.2.230.0230.00717.50
8.2.220.0260.00720.61
8.2.210.0240.00718.47
8.2.200.0190.00816.41
8.2.190.0270.00617.45
8.2.180.0230.00818.42
8.2.170.0260.00618.28
8.2.160.0250.00618.55
8.2.150.0190.00822.51
8.2.140.0190.00521.32
8.2.130.0150.00623.09
8.2.120.0160.00622.79
8.2.110.0170.00622.79
8.2.100.0180.00622.61
8.2.90.0180.00622.59
8.2.80.0170.00522.63
8.2.70.0120.00656.81
8.2.60.0150.00644.74
8.2.50.0160.00544.73
8.2.40.0150.00544.06
8.2.30.0140.00544.03
8.2.20.0130.00643.71
8.2.10.0150.00543.71
8.2.00.0130.00643.71
8.1.310.0120.00618.14
8.1.300.0230.00516.71
8.1.290.0270.00719.04
8.1.280.0260.00618.37
8.1.270.0190.00721.47
8.1.260.0160.00623.18
8.1.250.0140.00623.23
8.1.240.0150.00622.72
8.1.230.0140.00622.63
8.1.220.0140.00622.56
8.1.210.0150.00522.55
8.1.200.0130.00545.08
8.1.190.0120.00744.69
8.1.180.0130.00644.69
8.1.170.0120.00644.70
8.1.160.0140.00644.00
8.1.150.0150.00543.67
8.1.140.0140.00643.66
8.1.130.0140.00542.71
8.1.120.0150.00542.69
8.1.110.0150.00541.47
8.1.100.0150.00541.46
8.1.90.0130.00640.91
8.1.80.0140.00640.91
8.1.70.0140.00640.37
8.1.60.0140.00540.42
8.1.50.0140.00540.38
8.1.40.0140.00540.13
8.1.30.0150.00540.15
8.1.20.0140.00640.17
8.1.10.0140.00640.12
8.1.00.0150.00540.09
8.0.300.0140.00522.46
8.0.290.0150.00544.98
8.0.280.0140.00542.11
8.0.270.0120.00543.55
8.0.260.0140.00542.56
8.0.250.0130.00542.56
8.0.240.0150.00441.32
8.0.230.0140.00541.32
8.0.220.0130.00540.75
8.0.210.0140.00440.75
8.0.200.0120.00540.22
8.0.190.0140.00540.21
8.0.180.0130.00540.22
8.0.170.0130.00539.94
8.0.160.0120.00539.95
8.0.150.0140.00539.93
8.0.140.0140.00539.93
8.0.130.0140.00539.90
8.0.120.0140.00539.94
8.0.110.0130.00439.93
8.0.100.0140.00439.92
8.0.90.0140.00539.93
8.0.80.0130.00539.67
8.0.70.0120.00639.93
8.0.60.0150.00439.95
8.0.50.0150.00439.96
8.0.30.0130.00538.97
8.0.20.0130.00538.52
8.0.10.0140.00538.09
8.0.00.0130.00537.94
7.4.330.0140.00342.28
7.4.320.0150.00541.26
7.4.300.0150.00540.13
7.4.290.0160.00540.13
7.4.280.0170.00439.87
7.4.270.0160.00539.86
7.4.260.0140.00639.82
7.4.250.0150.00539.85
7.4.240.0160.00439.60
7.4.230.0150.00539.86
7.4.220.0140.00539.59
7.4.210.0150.00439.09
7.4.200.0140.00539.84
7.4.190.0150.00440.14
7.4.180.0150.00540.14
7.4.160.0150.00539.12
7.4.150.0150.00538.38
7.4.140.0150.00537.90
7.4.130.0150.00537.48
7.4.120.0150.00537.47
7.4.110.0140.00537.27
7.4.100.0150.00536.87
7.4.90.0150.00536.85
7.4.80.0150.00636.89
7.4.70.0150.00536.87
7.4.60.0150.00636.47
7.4.50.0150.00636.45
7.4.40.0150.00636.44
7.4.30.0140.00636.48
7.4.20.0150.00536.46
7.4.10.0140.00636.47
7.4.00.0140.00636.47
7.3.330.0140.00539.80
7.3.320.0150.00539.77
7.3.310.0160.00439.79
7.3.300.0150.00539.83
7.3.290.0150.00439.29
7.3.280.0160.00539.30
7.3.270.0160.00538.32
7.3.260.0150.00537.88
7.3.250.0150.00537.87
7.3.240.0140.00636.83
7.3.230.0150.00537.23
7.3.220.0150.00537.01
7.3.210.0160.00536.80
7.3.200.0150.00536.81
7.3.190.0150.00636.80
7.3.180.0150.00536.40
7.3.170.0150.00536.43
7.3.160.0150.00636.40
7.3.150.0160.00536.42
7.3.140.0150.00636.41
7.3.130.0150.00636.41
7.3.120.0150.00536.41
7.3.110.0150.00536.42
7.3.100.0150.00636.40
7.3.90.0150.00636.47
7.3.80.0150.00536.42
7.3.70.0150.00536.44
7.3.60.0140.00536.45
7.3.50.0140.00536.45
7.3.40.0150.00536.44
7.3.30.0140.00536.45
7.3.20.0160.00536.68
7.3.10.0160.00536.67
7.3.00.0160.00536.67
7.2.340.0140.00637.28
7.2.330.0150.00636.87
7.2.320.0150.00636.86
7.2.310.0150.00536.48
7.2.300.0150.00636.47
7.2.290.0150.00636.48
7.2.280.0150.00636.48
7.2.270.0150.00636.47
7.2.260.0150.00636.46
7.2.250.0150.00636.47
7.2.240.0160.00636.48
7.2.230.0160.00636.48
7.2.220.0160.00636.47
7.2.210.0150.00636.47
7.2.200.0160.00636.50
7.2.190.0150.00636.48
7.2.180.0150.00536.49
7.2.170.0140.00636.50
7.2.160.0150.00536.50
7.2.150.0180.00636.77
7.2.140.0150.00636.76
7.2.130.0160.00636.80
7.2.120.0160.00636.77
7.2.110.0160.00536.78
7.2.100.0170.00536.78
7.2.90.0170.00636.75
7.2.80.0160.00636.78
7.2.70.0170.00636.77
7.2.60.0160.00636.78
7.2.50.0170.00636.78
7.2.40.0170.00536.78
7.2.30.0160.00536.78
7.2.20.0140.00636.79
7.2.10.0170.00536.79
7.2.00.0150.00536.78

preferences:
28.35 ms | 403 KiB | 5 Q