3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ROTR( $x, $t ){ return gmp_and(gmp_or(gmp_div($x, 1 << $t), gmp_mul($x, 1 << (32 - $t))), "4294967295"); } function Σ0( $x ){ echo("SIG INPUT: " . $x . "\n" ); $s0 = ROTR( $x, 2 ); $s1 = ROTR( $x, 13 ); $s2 = ROTR( $x, 22 ); echo( "SIGMA0 2: " . gmp_strval($s0, 10) . "\n" ); echo( "SIGMA0 13: " . gmp_strval($s1, 10) . "\n" ); echo( "SIGMA0 22: " . gmp_strval($s2, 10) . "\n" ); return ( gmp_xor($s0, gmp_xor($s1, $s2)) ); } Σ0( 1779033703 );

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.130.0070.00316.54
8.3.120.0060.00321.02
8.3.110.0080.00620.94
8.3.100.0060.00316.63
8.3.90.0090.00026.77
8.3.80.0030.00718.43
8.3.70.0110.00416.81
8.3.60.0150.00318.52
8.3.50.0060.01017.37
8.3.40.0040.01118.78
8.3.30.0090.00618.65
8.3.20.0050.00318.80
8.3.10.0000.00822.15
8.3.00.0040.00422.15
8.2.250.0050.00317.00
8.2.240.0080.00017.21
8.2.230.0160.00322.58
8.2.220.0000.00824.06
8.2.210.0080.00026.77
8.2.200.0060.00318.41
8.2.190.0050.01018.58
8.2.180.0070.01116.75
8.2.170.0040.01122.96
8.2.160.0100.00322.43
8.2.150.0060.00925.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00021.13
8.2.110.0000.00920.96
8.2.100.0070.00418.09
8.2.90.0000.00818.16
8.2.80.0030.00518.17
8.2.70.0000.00818.30
8.2.60.0000.00820.07
8.2.50.0030.00618.10
8.2.40.0040.00421.48
8.2.30.0000.00720.69
8.2.20.0030.00618.28
8.2.10.0040.00418.15
8.2.00.0030.00518.28
8.1.300.0030.00618.25
8.1.290.0060.00330.84
8.1.280.0090.00625.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00717.77
8.1.230.0040.00823.00
8.1.220.0050.00317.74
8.1.210.0030.00519.25
8.1.200.0000.01017.48
8.1.190.0030.00617.48
8.1.180.0000.00818.10
8.1.170.0060.00318.63
8.1.160.0040.00419.06
8.1.150.0000.00719.11
8.1.140.0090.00020.80
8.1.130.0000.00717.64
8.1.120.0000.00817.52
8.1.110.0030.00617.54
8.1.100.0060.00317.70
8.1.90.0000.00717.64
8.1.80.0050.00217.67
8.1.70.0040.00417.64
8.1.60.0030.00617.70
8.1.50.0000.00717.67
8.1.40.0060.00317.67
8.1.30.0000.00717.82
8.1.20.0000.00717.85
8.1.10.0000.00817.78
8.1.00.0050.00317.64
8.0.300.0000.00919.80
8.0.290.0040.00716.74
8.0.280.0080.00018.58
8.0.270.0020.00516.92
8.0.260.0000.00617.04
8.0.250.0000.00717.08
8.0.240.0000.00717.21
8.0.230.0000.00717.11
8.0.220.0000.00717.04
8.0.210.0020.00517.20
8.0.200.0020.00517.17
8.0.190.0030.00516.98
8.0.180.0040.00417.16
8.0.170.0090.00017.14
8.0.160.0000.00717.13
8.0.150.0040.00416.94
8.0.140.0020.00517.04
8.0.130.0000.00513.38
8.0.120.0040.00416.94
8.0.110.0050.00317.18
8.0.100.0050.00216.90
8.0.90.0000.00717.09
8.0.80.0070.01117.10
8.0.70.0040.00417.08
8.0.60.0000.00717.00
8.0.50.0070.00016.84
8.0.30.0100.01017.09
8.0.20.0100.00917.44
8.0.10.0040.00417.04
8.0.00.0050.01316.77
7.4.330.0020.00215.55
7.4.320.0030.00316.81
7.4.300.0000.00616.77
7.4.290.0070.00016.80
7.4.280.0080.00016.76
7.4.270.0040.00416.79
7.4.260.0070.00016.66
7.4.250.0040.00416.75
7.4.240.0030.00316.69
7.4.230.0080.00016.82
7.4.220.0000.00816.57
7.4.210.0030.01716.67
7.4.200.0030.00316.59
7.4.160.0100.00616.70
7.4.140.0110.00617.86
7.4.130.0160.00616.74
7.4.120.0100.00716.69
7.4.110.0090.01316.65
7.4.100.0110.00716.74
7.4.90.0090.01516.83
7.4.80.0030.02019.39
7.4.70.0080.00816.68
7.4.60.0030.01316.62
7.4.50.0060.00916.67
7.4.40.0080.01216.83
7.4.00.0060.01015.16
7.3.330.0030.00313.23
7.3.320.0000.00613.18
7.3.310.0030.00316.42
7.3.300.0030.00316.63
7.3.290.0000.00716.53
7.3.280.0080.00616.52
7.3.260.0140.00816.67
7.3.240.0100.01016.71
7.3.230.0090.00916.80
7.3.210.0100.00616.75
7.3.200.0100.01016.56
7.3.190.0000.01616.48
7.3.180.0070.01416.77
7.3.170.0060.01216.52
7.3.160.0070.01116.91
7.3.120.0090.00915.32
7.3.110.0090.00815.14
7.3.100.0070.00715.06
7.3.90.0070.00814.90
7.3.80.0030.01015.03
7.3.70.0080.00615.25
7.3.60.0030.01014.94
7.3.50.0060.00715.02
7.3.40.0050.00715.05
7.3.30.0060.00815.11
7.3.20.0050.00817.05
7.3.10.0040.00717.02
7.3.00.0050.00717.07
7.2.330.0040.01616.99
7.2.320.0130.00317.09
7.2.310.0070.01116.89
7.2.300.0060.01316.91
7.2.290.0090.00916.94
7.2.250.0070.01115.31
7.2.240.0100.00815.50
7.2.230.0070.00715.29
7.2.220.0040.01115.37
7.2.210.0060.00815.44
7.2.200.0050.00815.42
7.2.190.0050.01015.36
7.2.180.0070.00815.11
7.2.170.0040.01015.39
7.2.160.0060.00615.54
7.2.150.0080.00817.14
7.2.140.0030.00917.46
7.2.130.0030.00717.32
7.2.120.0060.00617.04
7.2.110.0070.00417.07
7.2.100.0330.01116.26
7.2.90.0360.00616.16
7.2.80.0370.00516.13
7.2.70.0470.00616.21
7.2.60.0380.00816.18
7.2.50.0360.00316.33
7.2.40.0380.00516.17
7.2.30.0300.00916.13
7.2.20.0330.00916.24
7.2.10.0340.01116.06
7.2.00.0300.01116.18
7.1.330.0030.01416.02
7.1.320.0080.00616.03
7.1.310.0110.00416.16
7.1.300.0020.01315.93
7.1.290.0090.00516.00
7.1.280.0060.00715.97
7.1.270.0080.00515.90
7.1.260.0080.00615.94
7.1.250.0060.00315.87
7.1.240.0060.00316.08
7.1.230.0040.00415.89
7.1.220.0420.01115.06
7.1.210.0380.00215.10
7.1.200.0380.00715.08
7.1.190.0470.00614.98
7.1.180.0350.00315.24
7.1.170.0380.00615.21
7.1.160.0340.00915.12
7.1.150.0360.00315.08
7.1.140.0390.00615.07
7.1.130.0320.00515.16
7.1.120.0300.00915.07
7.1.110.0380.00815.30
7.1.100.0470.00815.18
7.1.90.0380.00715.14
7.1.80.0470.01015.04
7.1.70.0360.00915.01
7.1.60.0490.00924.09
7.1.50.0480.00724.16
7.1.40.0380.00824.05
7.1.30.0440.00723.77
7.1.20.0900.00324.11
7.1.10.0410.00915.16
7.1.00.0380.00714.77
7.0.330.0070.00415.64
7.0.320.0000.01015.59
7.0.310.0030.00915.53
7.0.300.0040.01115.64
7.0.290.0070.00715.70
7.0.280.0080.00815.76
7.0.270.0030.00715.71
7.0.260.0000.00915.91
7.0.250.0100.00315.96
7.0.240.0070.00315.79
7.0.230.0080.00815.82
7.0.220.0070.01015.89
7.0.210.0060.00915.42
7.0.200.0090.00615.71
7.0.190.0000.01215.68
7.0.180.0060.01115.50
7.0.170.0000.01315.77
7.0.160.0060.01015.70
7.0.150.0040.01215.71
7.0.140.0030.00715.70
7.0.130.0040.00715.59
7.0.120.0060.00315.38
7.0.110.0030.00715.34
7.0.100.0030.01015.78
7.0.90.0060.00615.79
7.0.80.0030.01015.83
7.0.70.0070.00715.69
7.0.60.0040.00415.34
7.0.50.0070.00715.87
7.0.40.0140.00013.66
7.0.30.0060.00513.71
7.0.20.0080.00313.79
7.0.10.0100.00013.73
7.0.00.0080.00413.79
5.6.400.0060.00614.37
5.6.390.0000.01214.40
5.6.380.0050.00714.41
5.6.370.0070.00714.60
5.6.360.0030.01014.51
5.6.350.0060.00814.47
5.6.340.0000.01414.51
5.6.330.0070.00714.77
5.6.320.0060.01214.52
5.6.310.0030.00914.47
5.6.300.0030.00914.49
5.6.290.0030.01014.54
5.6.280.0040.00714.55
5.6.270.0000.01114.30
5.6.260.0070.00314.52
5.6.250.0080.00614.64
5.6.240.0070.00714.45
5.6.230.0070.00714.69
5.6.220.0060.00614.72
5.6.210.0110.00014.26
5.6.200.0090.00614.57
5.6.190.0080.00614.38
5.6.180.0040.00414.74
5.6.170.0070.00314.32
5.6.160.0060.00614.55
5.6.150.0070.00715.02
5.6.140.0060.00914.97
5.6.130.0030.01014.80
5.6.120.0040.00414.45
5.6.110.0000.01614.51
5.6.100.0060.00914.71
5.6.90.0130.00014.31
5.6.80.0100.00714.78
5.6.70.0000.01814.26
5.6.60.0000.01414.62
5.6.50.0070.00714.17
5.6.40.0060.00314.48
5.6.30.0070.00714.65
5.6.20.0060.00614.49
5.6.10.0100.00714.69
5.6.00.0000.01414.41

preferences:
54.92 ms | 403 KiB | 5 Q