3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xor1 = gmp_init(0x123456); $xor2 = gmp_init(0x851964); echo $xor1 . "\n"; echo $xor2 . "\n"; $xor3 = gmp_xor($xor1, $xor2); echo $xor3 . "\n"; echo gmp_strval($xor3, 16) . "\n";

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.01116.88
8.3.50.0130.00522.17
8.3.40.0110.00419.09
8.3.30.0030.01318.96
8.3.20.0040.00419.56
8.3.10.0080.00022.10
8.3.00.0040.00419.32
8.2.180.0070.01116.50
8.2.170.0110.00422.96
8.2.160.0040.01122.37
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.30
8.2.110.0070.00319.44
8.2.100.0120.00017.97
8.2.90.0000.00819.36
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0030.00618.16
8.2.50.0040.00418.09
8.2.40.0000.00920.84
8.2.30.0000.00819.65
8.2.20.0040.00417.96
8.2.10.0050.00218.33
8.2.00.0040.00418.14
8.1.280.0060.01225.92
8.1.270.0040.00424.04
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00022.16
8.1.230.0040.00719.25
8.1.220.0040.00417.89
8.1.210.0060.00318.77
8.1.200.0040.00417.36
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0080.00018.66
8.1.160.0000.00720.98
8.1.150.0070.00019.11
8.1.140.0000.00819.66
8.1.130.0000.00717.92
8.1.120.0030.00317.57
8.1.110.0030.00317.68
8.1.100.0000.00717.72
8.1.90.0030.00517.70
8.1.80.0070.00017.61
8.1.70.0070.00017.73
8.1.60.0080.00017.85
8.1.50.0040.00417.58
8.1.40.0030.00617.67
8.1.30.0030.00617.88
8.1.20.0000.00817.73
8.1.10.0080.00017.58
8.1.00.0000.00817.50
8.0.300.0000.00723.70
8.0.290.0050.00316.73
8.0.280.0030.00318.50
8.0.270.0040.00417.47
8.0.260.0030.00317.52
8.0.250.0030.00317.20
8.0.240.0000.00717.01
8.0.230.0030.00317.06
8.0.220.0080.00017.03
8.0.210.0050.00217.10
8.0.200.0030.00317.13
8.0.190.0000.00817.13
8.0.180.0040.00417.07
8.0.170.0040.00417.07
8.0.160.0000.00717.02
8.0.150.0000.00817.09
8.0.140.0040.00416.93
8.0.130.0080.00013.26
8.0.120.0000.00816.98
8.0.110.0040.00417.09
8.0.100.0040.00417.17
8.0.90.0040.00417.13
8.0.80.0090.00617.07
8.0.70.0070.00017.17
8.0.60.0050.00216.95
8.0.50.0000.00817.13
8.0.30.0120.00717.09
8.0.20.0090.01117.40
8.0.10.0000.00817.00
8.0.00.0130.00616.79
7.4.330.0050.00015.08
7.4.320.0030.00316.69
7.4.300.0000.00616.73
7.4.290.0060.00316.69
7.4.280.0000.00916.73
7.4.270.0030.00316.59
7.4.260.0030.00516.69
7.4.250.0000.00916.68
7.4.240.0050.00216.71
7.4.230.0030.00316.50
7.4.220.0090.00616.70
7.4.210.0060.01216.67
7.4.200.0000.00716.79
7.4.160.0080.00816.39
7.4.150.0040.01317.40
7.4.140.0130.00617.86
7.4.130.0060.01216.61
7.4.120.0060.01116.58
7.4.110.0060.01216.55
7.4.100.0070.01316.61
7.4.90.0090.00916.63
7.4.80.0140.00419.39
7.4.70.0090.00616.66
7.4.60.0090.00916.78
7.4.50.0070.00716.57
7.4.40.0070.01016.60
7.4.30.0190.00316.50
7.4.00.0040.00815.03
7.3.330.0040.00413.14
7.3.320.0000.00612.98
7.3.310.0030.00316.31
7.3.300.0000.00616.39
7.3.290.0040.00416.34
7.3.280.0060.01316.48
7.3.270.0130.00317.40
7.3.260.0120.00616.55
7.3.250.0120.00616.47
7.3.240.0080.01016.52
7.3.230.0110.00716.53
7.3.210.0080.00816.48
7.3.200.0090.00816.57
7.3.190.0130.00316.45
7.3.180.0060.01016.65
7.3.170.0090.00816.76
7.3.160.0030.01316.68
7.3.120.0040.01115.04
7.3.110.0030.01315.02
7.3.100.0030.01015.09
7.3.90.0060.00615.00
7.3.80.0060.00615.14
7.3.70.0040.01115.21
7.3.60.0140.00315.21
7.3.50.0090.00615.07
7.3.40.0060.00915.19
7.3.30.0070.00414.91
7.3.20.0030.01016.79
7.3.10.0080.00416.95
7.3.00.0100.00316.80
7.2.330.0090.00916.73
7.2.320.0120.01216.91
7.2.310.0000.01716.99
7.2.300.0150.00616.55
7.2.290.0030.01316.65
7.2.250.0040.01515.27
7.2.240.0100.01015.54
7.2.230.0070.01015.57
7.2.220.0070.00715.09
7.2.210.0100.00315.36
7.2.200.0070.01015.27
7.2.190.0040.00815.12
7.2.180.0000.01515.27
7.2.170.0070.01015.33
7.2.130.0090.00617.17
7.2.120.0080.00817.19
7.2.110.0120.00317.33
7.2.100.0060.00617.25
7.2.90.0040.00717.23
7.2.80.0120.00016.96
7.2.70.0000.01517.11
7.2.60.0100.00517.17
7.2.50.0060.00617.10
7.2.40.0040.01117.19
7.2.30.0090.00317.13
7.2.20.0040.01016.89
7.2.10.0070.00717.25
7.2.00.0070.00518.44
7.1.330.0080.00816.10
7.1.320.0050.00315.73
7.1.310.0030.01016.38
7.1.300.0040.00816.10
7.1.290.0060.00916.02
7.1.280.0070.00716.03
7.1.270.0040.00715.99
7.1.260.0030.01315.88
7.1.250.0030.00616.19
7.1.200.0060.00915.94
7.1.100.0170.01317.54
7.1.70.0000.01017.38
7.1.60.0100.01319.85
7.1.50.0110.01916.84
7.1.00.0070.07322.58
7.0.200.0110.01115.23
7.0.60.0670.00020.01
7.0.50.0700.00020.67
7.0.40.1000.00020.54
7.0.30.1000.00020.41
7.0.20.0870.00020.57
7.0.10.0800.00020.41
7.0.00.0800.00020.43
5.6.280.0130.06721.34
5.6.210.0700.00020.70
5.6.200.0770.00021.12
5.6.190.0770.00021.11
5.6.180.0730.00021.28
5.6.170.0870.00021.12
5.6.160.1000.00021.28
5.6.150.1030.00021.37
5.6.140.0730.00021.11
5.6.130.0730.00021.33
5.6.120.0700.00021.21
5.6.110.0700.00021.29
5.6.100.1330.00021.23
5.6.90.1130.00021.14
5.6.80.1100.00020.68
5.6.70.0970.00020.70
5.6.60.1000.00020.66
5.6.50.1100.00020.55
5.6.40.1100.00020.64
5.6.30.1070.00020.69
5.6.20.1000.00020.47
5.6.10.1100.00020.72
5.6.00.1130.00020.59
5.5.350.0730.00020.44
5.5.340.0700.00020.92
5.5.330.0730.00020.87
5.5.320.0700.00021.15
5.5.310.0730.00021.05
5.5.300.0730.00020.97
5.5.290.0730.00020.96
5.5.280.0700.00021.05
5.5.270.1030.00020.96
5.5.260.1130.00021.04
5.5.250.1130.00020.79
5.5.240.0970.00020.45
5.5.230.1130.00020.44
5.5.220.0970.00020.23
5.5.210.1070.00020.38
5.5.200.1130.00020.27
5.5.190.1030.00020.40
5.5.180.0970.00020.42
5.5.160.1030.00020.31
5.5.150.1130.00020.50
5.5.140.1100.00020.39
5.5.130.1170.00020.38
5.5.120.0970.00020.30
5.5.110.1030.00020.21
5.5.100.0970.00020.20
5.5.90.0970.00020.27
5.5.80.0970.00020.45
5.5.70.1030.00020.36
5.5.60.1070.00020.09
5.5.50.0970.00020.30
5.5.40.0970.00020.09
5.5.30.0970.00020.09
5.5.20.1170.00020.37
5.5.10.1170.00020.21
5.5.00.1030.00020.25

preferences:
35.34 ms | 401 KiB | 5 Q