3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "39b7d32fcb743c244c569a56d6de4dc27577d6277d6cf155bdcba6d05befcb34"; $lotto = "0422262831"; $round_id = "1"; $hash = hash("sha256", $server_seed."-".$lotto."-".$round_id); $roll = hexdec( substr($hash,0,8)) % 15; echo "Round $round_id = $roll";

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.0.30.0100.01016.85
8.0.20.0110.00916.97
8.0.10.0110.01016.99
8.0.00.0120.00916.92
7.4.160.0100.00916.50
7.4.150.0110.00816.55
7.4.140.0110.00916.50
7.4.130.0110.00916.46
7.4.120.0110.00916.43
7.4.110.0110.00916.40
7.4.100.0110.00916.37
7.4.90.0110.00916.35
7.4.80.0110.00916.38
7.4.70.0110.00916.36
7.4.60.0110.00916.35
7.4.50.0110.00916.34
7.4.40.0110.00916.33
7.4.30.0120.00916.36
7.4.20.0110.00916.35
7.4.10.0110.00916.35
7.4.00.0100.00916.38
7.3.270.0100.00816.45
7.3.260.0110.00916.48
7.3.250.0110.00916.43
7.3.240.0110.00916.39
7.3.230.0110.00916.38
7.3.220.0110.00816.34
7.3.210.0110.00916.31
7.3.200.0120.00816.35
7.3.190.0110.00916.34
7.3.180.0110.00916.31
7.3.170.0110.00916.32
7.3.160.0110.00916.32
7.3.150.0110.00916.32
7.3.140.0110.00916.33
7.3.130.0110.00916.33
7.3.120.0110.00916.32
7.3.110.0110.00916.30
7.3.100.0110.00916.29
7.3.90.0110.00916.34
7.3.80.0110.00916.30
7.3.70.0110.00916.30
7.3.60.0110.00916.32
7.3.50.0110.00916.31
7.3.40.0110.00816.31
7.3.30.0110.00816.30
7.3.20.0150.00816.35
7.3.10.0130.00916.33
7.3.00.0130.00816.34
7.2.340.0160.01016.53
7.2.330.0150.01016.52
7.2.320.0150.00916.56
7.2.310.0150.00916.52
7.2.300.0150.00916.52
7.2.290.0150.00916.51
7.2.280.0140.00916.52
7.2.270.0140.00916.51
7.2.260.0140.00916.52
7.2.250.0140.00916.51
7.2.240.0140.01016.52
7.2.230.0140.00916.51
7.2.220.0140.01016.51
7.2.210.0140.01016.51
7.2.200.0150.00916.52
7.2.190.0140.00916.49
7.2.180.0150.00916.48
7.2.170.0140.00916.51
7.2.160.0140.01016.51
7.2.150.0160.00916.59
7.2.140.0170.00916.60
7.2.130.0160.01016.63
7.2.120.0170.00916.61
7.2.110.0160.00916.60
7.2.100.0170.00916.62
7.2.90.0170.01016.59
7.2.80.0160.00916.58
7.2.70.0150.01016.59
7.2.60.0160.01016.58
7.2.50.0160.01016.59
7.2.40.0170.01016.62
7.2.30.0170.01016.63
7.2.20.0170.00916.60
7.2.10.0170.01016.59
7.2.00.0160.01016.61
7.1.330.0090.00615.53
7.1.320.0040.01215.58
7.1.310.0030.01015.49
7.1.300.0140.00715.59
7.1.290.0120.00815.54
7.1.280.0130.00715.49
7.1.270.0040.01415.63
7.1.260.0120.00915.50
7.1.250.0000.02015.47
7.1.240.0120.00615.46
7.1.230.0100.00915.53
7.1.220.0070.01415.54
7.1.210.0000.02015.52
7.1.200.0170.00315.50
7.1.190.0040.01815.58
7.1.180.0090.01015.39
7.1.170.0210.01015.38
7.1.160.0160.00415.50
7.1.150.0230.01015.48
7.1.140.0150.00615.50
7.1.130.0240.00315.47
7.1.120.0060.01615.43
7.1.110.0150.00515.52
7.1.100.0120.01215.44
7.1.90.0060.01515.46
7.1.80.0340.00615.49
7.1.70.0160.00315.38
7.1.60.0080.01215.47
7.1.50.0080.01115.59
7.1.40.0140.00715.48
7.1.30.0090.00615.63
7.1.20.0130.00715.38
7.1.10.0110.00415.34
7.1.00.0180.00915.38
7.0.330.0200.00715.09
7.0.320.0190.00715.08
7.0.310.0280.00915.20
7.0.300.0170.01115.25
7.0.290.0180.01115.07
7.0.280.0170.01015.17
7.0.270.0220.01015.28
7.0.260.0190.00915.21
7.0.250.0220.00715.39
7.0.240.0240.00615.36
7.0.230.0220.01115.41
7.0.220.0260.00315.29
7.0.210.0180.01115.28
7.0.200.0180.01215.33
7.0.190.0150.00915.25
7.0.180.0240.00315.26
7.0.170.0180.01215.29
7.0.160.0200.00615.26
7.0.150.0120.01215.09
7.0.140.0280.00515.12
7.0.130.0160.00915.23
7.0.120.0280.00315.32
7.0.110.0200.00915.07
7.0.100.0120.01615.25
7.0.90.0310.01115.23
7.0.80.0170.00915.20
7.0.70.0180.01115.12
7.0.60.0210.00915.22
7.0.50.0180.00915.11
7.0.40.0160.01115.27
7.0.30.0230.01015.30
7.0.20.0080.01515.18
7.0.10.0160.01015.19
7.0.00.0190.00915.18
5.6.400.0170.01015.79
5.6.390.0130.01015.68
5.6.380.0240.00615.75
5.6.370.0240.01015.88
5.6.360.0140.01415.80
5.6.350.0150.01515.77
5.6.340.0230.00315.68
5.6.330.0230.00915.68
5.6.320.0200.01215.73
5.6.310.0170.01115.78
5.6.300.0170.00815.71
5.6.290.0140.00915.80
5.6.280.0260.00815.80
5.6.270.0210.00815.91
5.6.260.0200.01015.78
5.6.250.0120.01215.81
5.6.240.0140.01215.73
5.6.230.0080.01615.89
5.6.220.0140.01415.85
5.6.210.0120.02215.89
5.6.200.0200.00615.92
5.6.190.0230.00915.97
5.6.180.0100.01715.78
5.6.170.0250.00415.85
5.6.160.0140.01716.04
5.6.150.0220.00815.84
5.6.140.0190.00515.84
5.6.130.0220.00615.84
5.6.120.0170.01215.87
5.6.110.0230.00615.90
5.6.100.0240.00715.71
5.6.90.0170.01015.71
5.6.80.0180.01115.83
5.6.70.0130.01315.84
5.6.60.0210.00715.88
5.6.50.0180.00915.72
5.6.40.0200.00815.63
5.6.30.0250.00415.86
5.6.20.0230.00715.74
5.6.10.0170.00815.61
5.6.00.0210.01015.71
5.5.380.0220.01016.04
5.5.370.0190.00616.03
5.5.360.0170.01015.72
5.5.350.0150.01515.81
5.5.340.0200.01015.52
5.5.330.0180.01315.58
5.5.320.0140.00915.78
5.5.310.0200.00815.83
5.5.300.0220.00315.81
5.5.290.0210.00815.73
5.5.280.0110.01815.57
5.5.270.0250.00615.72
5.5.260.0090.01415.51
5.5.250.0260.00415.84
5.5.240.0140.01015.91
5.5.230.0220.00315.81
5.5.220.0080.01915.73
5.5.210.0200.01015.68
5.5.200.0150.00915.65
5.5.190.0250.00015.61
5.5.180.0310.00415.52
5.5.170.0230.00615.61
5.5.160.0100.01715.62
5.5.150.0170.00915.59
5.5.140.0110.01115.65
5.5.130.0170.01215.45
5.5.120.0190.01015.49
5.5.110.0110.01415.50
5.5.100.0190.00315.47
5.5.90.0120.01515.64
5.5.80.0240.00615.75
5.5.70.0130.01015.89
5.5.60.0180.00715.86
5.5.50.0080.01415.73
5.5.40.0160.00915.89
5.5.30.0190.00815.76
5.5.20.0140.01115.70
5.5.10.0140.00915.62
5.5.00.0140.01515.70
5.4.450.0180.00012.62
5.4.440.0080.01112.61
5.4.430.0160.00312.62
5.4.420.0110.00712.64
5.4.410.0140.00712.64
5.4.400.0150.00312.59
5.4.390.0170.00312.53
5.4.380.0200.00412.56
5.4.370.0150.00612.55
5.4.360.0110.00712.53
5.4.350.0180.00012.57
5.4.340.0180.00512.58
5.4.330.0180.00412.57
5.4.320.0170.00312.64
5.4.310.0120.00612.55
5.4.300.0160.00412.60
5.4.290.0140.00812.68
5.4.280.0180.00712.68
5.4.270.0160.00312.65
5.4.260.0130.00912.59
5.4.250.0130.00912.62
5.4.240.0180.00612.55
5.4.230.0180.00012.35
5.4.220.0150.00212.36
5.4.210.0120.00812.35
5.4.200.0180.00312.34
5.4.190.0160.00812.35
5.4.180.0140.00312.38
5.4.170.0110.01112.36
5.4.160.0170.00412.40
5.4.150.0180.00612.45
5.4.140.0090.00912.53
5.4.130.0160.00812.48
5.4.120.0040.02012.52
5.4.110.0120.00812.57
5.4.100.0110.00812.59
5.4.90.0140.00312.58
5.4.80.0180.00612.65
5.4.70.0130.00312.60
5.4.60.0090.00912.68
5.4.50.0130.00312.57
5.4.40.0080.01212.58
5.4.30.0120.00612.59
5.4.20.0110.00812.60
5.4.10.0120.00612.62
5.4.00.0170.00012.49
5.3.290.0150.00613.16
5.3.280.0090.00912.89
5.3.270.0140.00713.15
5.3.260.0180.00312.90
5.3.250.0150.00913.10
5.3.240.0190.00312.82
5.3.230.0150.00912.89
5.3.220.0180.00012.91
5.3.210.0140.01112.81
5.3.200.0160.00812.79
5.3.190.0080.01512.89
5.3.180.0160.00412.96
5.3.170.0170.00013.13
5.3.160.0150.00413.20
5.3.150.0120.00612.96
5.3.140.0170.00412.91
5.3.130.0090.00913.06
5.3.120.0070.01112.88
5.3.110.0160.00312.97
5.3.100.0090.00912.89
5.3.90.0090.00912.99
5.3.80.0140.00512.79
5.3.70.0100.00712.80
5.3.60.0120.00612.87
5.3.50.0120.00612.75
5.3.40.0090.01512.89
5.3.30.0110.00712.99
5.3.20.0140.00412.91
5.3.10.0110.00812.77
5.3.00.0140.00612.85
5.2.170.0080.00811.97
5.2.160.0080.01211.96
5.2.150.0120.00512.06
5.2.140.0140.00312.02
5.2.130.0120.00911.91
5.2.120.0120.00812.06
5.2.110.0140.00712.02
5.2.100.0080.00812.03
5.2.90.0150.00011.89
5.2.80.0100.00711.96
5.2.70.0210.00011.92
5.2.60.0070.00711.84
5.2.50.0070.01011.88
5.2.40.0040.01111.82
5.2.30.0170.00011.71
5.2.20.0070.01411.68
5.2.10.0170.00311.75
5.2.00.0120.00911.75
5.1.60.0130.00311.09
5.1.50.0110.00311.03
5.1.40.0070.00611.30
5.1.30.0090.00411.20
5.1.20.0070.00711.00
5.1.10.0090.00411.30
5.1.00.0120.00010.94
5.0.50.0070.00410.35
5.0.40.0070.00510.35
5.0.30.0100.00710.35
5.0.20.0080.00610.35
5.0.10.0070.00410.35
5.0.00.0000.01110.35
4.4.90.0040.00410.35
4.4.80.0050.00310.35
4.4.70.0090.00010.35
4.4.60.0070.00010.35
4.4.50.0050.00310.35
4.4.40.0040.00410.35
4.4.30.0030.00410.35
4.4.20.0050.00310.35
4.4.10.0040.00310.35
4.4.00.0050.00210.35
4.3.110.0030.00310.35
4.3.100.0090.00010.35
4.3.90.0030.00610.35
4.3.80.0020.00510.35
4.3.70.0070.00010.35
4.3.60.0070.00010.35
4.3.50.0030.00410.35
4.3.40.0050.00210.35
4.3.30.0030.00310.35
4.3.20.0060.00010.35
4.3.10.0000.00610.35
4.3.00.0000.00610.35