3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "96f3e04d221ca1b2048cc3b3b844e479f2bd9c80a870628072ee98fd1aa83cd0"; // make sure to use non-hashed server seed $public_seed = "20charlongstringxxxxx"; $round = "546"; $hash = hash('sha256', $server_seed . "-" . $public_seed . "-" . $round); $ticket = hexdec(substr($hash, 0, 15)) % 1000000 + 1; echo("Winning ticket: $ticket");

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.5.10.0090.00816.71
8.5.00.0140.00720.06
8.4.150.0030.00014.05
8.4.140.0130.00817.59
8.4.130.0110.00718.55
8.4.120.0050.00320.61
8.4.110.0060.00418.26
8.4.100.0130.00817.76
8.4.90.0130.00720.50
8.4.80.0050.00318.84
8.4.70.0090.00717.57
8.4.60.0100.01118.76
8.4.50.0120.00818.09
8.4.40.0130.00618.47
8.4.30.0100.01018.77
8.4.20.0080.01220.74
8.4.10.0130.00619.47
8.3.280.0120.00718.33
8.3.270.0080.01116.49
8.3.260.0060.00216.68
8.3.250.0110.00919.12
8.3.240.0120.00916.84
8.3.230.0120.00616.54
8.3.220.0040.00518.86
8.3.210.0070.00216.81
8.3.200.0100.00816.84
8.3.190.0100.00916.97
8.3.180.0130.00616.38
8.3.170.0170.00320.59
8.3.160.0110.00717.18
8.3.150.0170.00317.18
8.3.140.0000.00818.79
8.3.130.0200.00617.65
8.3.120.0190.00917.64
8.3.110.0230.00718.63
8.3.100.0280.00420.36
8.3.90.0230.00921.52
8.3.80.0180.00924.18
8.3.70.0230.00817.42
8.3.60.0420.01121.32
8.3.50.0300.00721.12
8.3.40.0250.01321.70
8.3.30.0250.01221.55
8.3.20.0260.01121.56
8.3.10.0360.00521.64
8.3.00.0210.00821.63
8.2.290.0110.00916.53
8.2.280.0050.00518.39
8.2.270.0030.00719.08
8.2.260.0140.00018.31
8.2.250.0170.00617.53
8.2.240.0160.00616.79
8.2.230.0100.01319.45
8.2.220.0220.00226.98
8.2.210.0220.00821.47
8.2.200.0240.00217.23
8.2.190.0230.00416.56
8.2.180.0280.00921.21
8.2.170.0350.00621.78
8.2.160.0270.00921.72
8.2.150.0330.00521.77
8.2.140.0350.00221.75
8.2.130.0320.00521.64
8.2.120.0290.00821.69
8.2.110.0250.01421.69
8.2.100.0300.00923.79
8.2.90.0350.01121.61
8.2.80.0420.00821.69
8.2.70.0360.01521.66
8.2.60.0320.00721.63
8.2.50.0350.00721.58
8.2.40.0310.00721.76
8.2.30.0290.00521.54
8.2.20.0320.00821.66
8.2.10.0280.00521.69
8.2.00.0290.00521.67
8.1.330.0120.00616.21
8.1.320.0090.00916.01
8.1.310.0070.01118.36
8.1.300.0170.01118.11
8.1.290.0170.00623.53
8.1.280.0300.00421.05
8.1.270.0340.00521.53
8.1.260.0260.01121.65
8.1.250.0290.00821.65
8.1.240.0250.01021.61
8.1.230.0280.00721.49
8.1.220.0250.01021.54
8.1.210.0290.00521.47
8.1.200.0280.00721.56
8.1.190.0300.00421.60
8.1.180.0230.01121.46
8.1.170.0320.00521.53
8.1.160.0310.00621.53
8.1.150.0330.00721.65
8.1.140.0280.01221.56
8.1.130.0330.00321.62
8.1.120.0280.00921.56
8.1.110.0300.01021.63
8.1.100.0290.01221.51
8.1.90.0310.00321.56
8.1.80.0190.00821.61
8.1.70.0190.00621.59
8.1.60.0220.00521.56
8.1.50.0220.00621.62
8.1.40.0210.00621.73
8.1.30.0240.00221.71
8.1.20.0230.01621.71
8.1.10.0300.00921.60
8.1.00.0330.00721.59

preferences:
68.19 ms | 403 KiB | 5 Q