3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = ""; $lotto = "1016171938"; $round_id = "11897"; $hash = hash("sha256",$server_seed."-".$lotto."-".$round_id); $roll = hexdec(substr($hash,0,8)) % 15; // Print værdien af $hash print("\$hash = $hash</br>"); // Prifdec(856672a7) = ".(String)hexdec(substr($hash,0,8))."</br>"); // Print værdien af 856672a7 % 15 print("2238083751 % 15 = ".(2238083751 % 15)."</br>"); // Print værdien af roll print("\$roll = $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.3.60.0110.00718.20
8.3.50.0090.00921.06
8.3.40.0100.00718.70
8.3.30.0070.01018.42
8.3.20.0040.00420.20
8.3.10.0000.00823.66
8.3.00.0040.00423.48
8.2.180.0120.00318.16
8.2.170.0000.01422.96
8.2.160.0140.00320.43
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00819.77
8.2.120.0000.00726.35
8.2.110.0030.00721.09
8.2.100.0040.00717.93
8.2.90.0030.00519.20
8.2.80.0080.00017.97
8.2.70.0030.00617.38
8.2.60.0110.00017.77
8.2.50.0000.00818.07
8.2.40.0050.00520.45
8.2.30.0040.00419.36
8.2.20.0070.00017.73
8.2.10.0000.00718.16
8.2.00.0040.00418.09
8.1.280.0090.00625.92
8.1.270.0080.00023.96
8.1.260.0050.00228.09
8.1.250.0000.00728.09
8.1.240.0070.00323.83
8.1.230.0040.00819.02
8.1.220.0090.00017.74
8.1.210.0050.00518.77
8.1.200.0060.00317.25
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0040.00418.37
8.1.160.0070.00020.79
8.1.150.0040.00418.88
8.1.140.0040.00419.50
8.1.130.0030.00317.59
8.1.120.0000.00717.47
8.1.110.0000.00917.41
8.1.100.0030.00417.34
8.1.90.0040.00417.45
8.1.80.0050.00317.41
8.1.70.0000.00717.43
8.1.60.0000.00717.60
8.1.50.0030.00517.41
8.1.40.0000.00817.46
8.1.30.0050.00317.64
8.1.20.0000.00717.59
8.1.10.0050.00217.40
8.1.00.0030.00617.40
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00818.34
8.0.270.0000.00717.30
8.0.260.0030.00317.23
8.0.250.0070.00016.93
8.0.240.0030.00316.91
8.0.230.0070.00016.83
8.0.220.0050.00216.87
8.0.210.0030.00316.84
8.0.200.0030.00316.93
8.0.190.0000.00816.94
8.0.180.0050.00316.95
8.0.170.0000.00816.84
8.0.160.0000.00816.79
8.0.150.0050.00216.72
8.0.140.0000.00816.80
8.0.130.0030.00513.37
8.0.120.0000.00816.82
8.0.110.0040.00416.88
8.0.100.0070.00016.75
8.0.90.0040.00417.00
8.0.80.0030.01716.84
8.0.70.0040.00416.87
8.0.60.0000.00716.90
8.0.50.0030.00516.67
8.0.30.0100.00816.88
8.0.20.0130.00717.40
8.0.10.0040.00416.95
8.0.00.0100.01216.67
7.4.330.0050.00016.72
7.4.320.0060.00016.57
7.4.300.0040.00416.54
7.4.290.0000.00716.57
7.4.280.0030.00716.46
7.4.270.0060.00016.61
7.4.260.0000.00716.53
7.4.250.0000.00716.57
7.4.240.0010.00616.56
7.4.230.0000.00716.59
7.4.220.0060.01216.64
7.4.210.0070.00916.52
7.4.200.0000.00816.55
7.4.160.0140.00316.58
7.4.150.0110.00817.40
7.4.140.0140.00517.86
7.4.130.0100.00916.43
7.4.120.0030.01316.43
7.4.110.0100.00716.31
7.4.100.0130.00916.55
7.4.90.0120.00616.36
7.4.80.0180.00019.39
7.4.70.0040.01416.36
7.4.60.0120.00316.45
7.4.50.0040.01116.26
7.4.40.0100.00616.29
7.4.30.0140.01016.43
7.4.10.0100.01015.06
7.4.00.0060.00814.76
7.3.330.0030.00313.24
7.3.320.0040.00413.18
7.3.310.0000.00716.40
7.3.300.0040.00416.35
7.3.290.0100.00616.31
7.3.280.0110.00716.32
7.3.270.0100.01417.40
7.3.260.0170.00716.66
7.3.250.0100.00816.32
7.3.240.0180.00416.54
7.3.230.0090.00916.40
7.3.210.0140.00316.35
7.3.200.0100.00719.39
7.3.190.0130.00316.23
7.3.180.0100.00816.56
7.3.170.0060.01116.44
7.3.160.0100.00716.27
7.3.130.0140.00714.85
7.3.120.0000.01914.81
7.3.110.0100.00715.02
7.3.100.0030.00915.07
7.3.90.0090.00614.52
7.3.80.0000.00915.05
7.3.70.0140.00314.69
7.3.60.0090.00615.00
7.3.50.0090.00314.84
7.3.40.0040.00814.75
7.3.30.0130.00314.86
7.3.20.0030.00916.74
7.3.10.0110.00416.38
7.3.00.0050.00916.50
7.2.330.0080.00816.72
7.2.320.0100.00716.80
7.2.310.0090.01516.69
7.2.300.0100.01016.52
7.2.290.0060.01016.79
7.2.260.0080.01115.36
7.2.250.0060.01315.38
7.2.240.0100.00714.98
7.2.230.0140.00015.16
7.2.220.0030.01215.25
7.2.210.0100.00314.98
7.2.200.0090.00614.96
7.2.190.0000.01415.02
7.2.180.0110.00715.05
7.2.170.0040.00814.94
7.2.160.0070.00715.11
7.2.150.0040.01416.95
7.2.140.0070.01017.00
7.2.130.0060.00916.88
7.2.120.0080.01016.74
7.2.110.0140.00516.77
7.2.100.0090.00716.81
7.2.90.0110.00316.78
7.2.80.0110.00716.91
7.2.70.0150.00716.90
7.2.60.0080.00916.88
7.2.50.0090.00816.88
7.2.40.0100.00916.85
7.2.30.0090.00816.97
7.2.20.0070.01216.91
7.2.10.0080.01316.95
7.2.00.0120.00517.63
7.1.330.0040.01116.01
7.1.320.0070.00415.76
7.1.310.0030.00615.77
7.1.300.0070.01015.82
7.1.290.0040.01115.82
7.1.280.0100.00015.88
7.1.270.0060.00615.77
7.1.260.0060.00315.63
7.1.250.0060.00915.61
7.1.240.0090.00315.83
7.1.230.0090.00615.76
7.1.220.0040.00415.75
7.1.210.0060.00515.66
7.1.200.0020.01115.75
7.1.190.0110.00415.93
7.1.180.0070.01016.06
7.1.170.0030.00615.72
7.1.160.0060.00315.92
7.1.150.0040.00715.66
7.1.140.0080.00315.82
7.1.130.0070.01015.82
7.1.120.0070.00715.54
7.1.110.0030.01316.03
7.1.100.0080.00416.66
7.1.90.0000.01215.68
7.1.80.0030.01215.62
7.1.70.0060.01016.49
7.1.60.0050.01217.41
7.1.50.0020.01216.21
7.1.40.0040.00816.03
7.1.30.0030.00915.80
7.1.20.0040.00715.54
7.1.10.0040.00815.74
7.1.00.0110.03619.15
7.0.330.0040.00715.45
7.0.320.0060.00915.28
7.0.310.0030.01415.52
7.0.300.0040.00415.48
7.0.290.0000.01415.50
7.0.280.0030.01015.61
7.0.270.0000.01015.47
7.0.260.0060.00615.34
7.0.250.0040.00815.45
7.0.240.0040.00815.24
7.0.230.0070.00715.19
7.0.220.0030.00715.22
7.0.210.0040.00815.53
7.0.200.0040.01115.96
7.0.190.0040.00715.23
7.0.180.0000.00915.40
7.0.170.0030.00615.38
7.0.160.0030.00815.00
7.0.150.0030.00915.18
7.0.140.0100.00315.41
7.0.130.0050.00515.54
7.0.120.0040.01115.52
7.0.110.0090.00315.42
7.0.100.0090.00315.50
7.0.90.0030.01015.50
7.0.80.0060.00615.33
7.0.70.0030.01015.39
7.0.60.0080.04118.60
7.0.50.0030.03416.71
7.0.40.0070.02716.63
7.0.30.0150.03616.79
7.0.20.0250.03516.88
7.0.10.0060.04716.79
7.0.00.0110.04316.86
5.6.400.0070.00414.46
5.6.390.0030.00614.47
5.6.380.0060.00314.53
5.6.370.0070.00314.35
5.6.360.0040.00814.71
5.6.350.0060.00314.63
5.6.340.0060.01014.11
5.6.330.0030.01014.27
5.6.320.0070.00714.14
5.6.310.0070.00713.96
5.6.300.0030.01214.26
5.6.290.0120.00013.98
5.6.280.0070.03517.51
5.6.270.0030.01014.39
5.6.260.0000.00914.45
5.6.250.0060.00914.23
5.6.240.0040.00414.31
5.6.230.0080.00414.12
5.6.220.0060.00314.40
5.6.210.0070.02317.50
5.6.200.0030.04816.22
5.6.190.0060.03817.41
5.6.180.0290.03717.51
5.6.170.0120.02917.28
5.6.160.0070.04517.41
5.6.150.0110.03216.18
5.6.140.0080.04016.24
5.6.130.0110.02316.22
5.6.120.0050.04217.67
5.6.110.0080.03717.67
5.6.100.0050.04917.69
5.6.90.0050.05017.42
5.6.80.0140.03517.38
5.6.70.0080.00814.41
5.6.60.0030.01314.14
5.6.50.0060.01214.27
5.6.40.0040.01214.15
5.6.30.0030.00613.98
5.6.20.0040.00914.19
5.6.10.0030.01014.17
5.6.00.0030.01214.35
5.5.380.0000.00914.21
5.5.370.0030.00714.21
5.5.360.0040.00814.13
5.5.350.0200.04117.39
5.5.340.0130.03516.24
5.5.330.0100.02217.03
5.5.320.0180.02317.19
5.5.310.0120.02717.13
5.5.300.0010.02916.14
5.5.290.0020.04916.25
5.5.280.0000.03017.61
5.5.270.0080.03017.48
5.5.260.0050.04117.58
5.5.250.0070.04617.55
5.5.240.0110.03817.12
5.5.230.0060.01214.23
5.5.220.0000.01314.22
5.5.210.0120.00614.29
5.5.200.0060.00314.08
5.5.190.0150.00014.25
5.5.180.0060.00613.97
5.5.170.0060.00613.90
5.5.160.0060.00914.36
5.5.150.0060.00914.12
5.5.140.0030.01214.31
5.5.130.0000.01314.21
5.5.120.0030.00814.23
5.5.110.0120.00314.05
5.5.100.0060.00613.88
5.5.90.0060.00614.02
5.5.80.0090.00614.23
5.5.70.0090.00314.27
5.5.60.0120.00313.96
5.5.50.0060.00314.16
5.5.40.0060.00613.95
5.5.30.0090.00614.11
5.5.20.0030.00614.24
5.5.10.0030.01014.11
5.5.00.0030.00614.21

preferences:
56.92 ms | 401 KiB | 5 Q