3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 0xFFFD; // unsigned 16-bit: 65533 // left bit set, so $x as a 2s Complement: $n = $x - (2 ** 16); // 65533 - 65536 echo $n; // -3

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.0100.01018.43
8.3.50.0060.01221.86
8.3.40.0070.00718.54
8.3.30.0100.00718.73
8.3.20.0080.00020.21
8.3.10.0040.00418.71
8.3.00.0080.00020.37
8.2.180.0100.01018.06
8.2.170.0060.00922.96
8.2.160.0030.01022.07
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0080.00020.62
8.2.120.0070.00026.35
8.2.110.0060.00320.43
8.2.100.0080.00317.72
8.2.90.0050.00317.75
8.2.80.0140.00517.97
8.2.70.0060.00317.63
8.2.60.0080.00018.03
8.2.50.0000.00918.09
8.2.40.0030.00520.43
8.2.30.0070.00019.37
8.2.20.0000.00817.77
8.2.10.0040.00417.98
8.2.00.0070.00018.00
8.1.280.0040.01125.92
8.1.270.0030.00523.88
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0120.00623.68
8.1.230.0070.00419.14
8.1.220.0060.00317.79
8.1.210.0050.00221.01
8.1.200.0060.00317.00
8.1.190.0060.00317.22
8.1.180.0040.00418.10
8.1.170.0060.00318.49
8.1.160.0000.00720.91
8.1.150.0040.00418.81
8.1.140.0000.00819.41
8.1.130.0000.00717.54
8.1.120.0050.00317.28
8.1.110.0040.00417.21
8.1.100.0030.00317.39
8.1.90.0040.00417.43
8.1.80.0040.00417.42
8.1.70.0030.00317.39
8.1.60.0000.00817.43
8.1.50.0040.00417.48
8.1.40.0060.00317.44
8.1.30.0040.00417.56
8.1.20.0000.00717.62
8.1.10.0050.00217.54
8.1.00.0040.00417.40
8.0.300.0030.00619.60
8.0.290.0070.00016.63
8.0.280.0040.00418.43
8.0.270.0000.00817.11
8.0.260.0030.00517.14
8.0.250.0070.00016.96
8.0.240.0000.00816.93
8.0.230.0000.00716.87
8.0.220.0030.00316.70
8.0.210.0020.00516.82
8.0.200.0030.00316.86
8.0.190.0040.00416.91
8.0.180.0000.00816.72
8.0.170.0000.00816.86
8.0.160.0000.00716.75
8.0.150.0080.00016.76
8.0.140.0040.00416.56
8.0.130.0000.00513.20
8.0.120.0040.00416.77
8.0.110.0040.00416.84
8.0.100.0080.00016.77
8.0.90.0070.00016.77
8.0.80.0130.00316.78
8.0.70.0000.00716.85
8.0.60.0030.00316.76
8.0.50.0040.00416.90
8.0.30.0120.01417.02
8.0.20.0120.00817.40
8.0.10.0000.00816.99
8.0.00.0070.01316.73
7.4.330.0020.00216.90
7.4.320.0000.00616.45
7.4.300.0060.00016.52
7.4.290.0030.00316.41
7.4.280.0060.00316.52
7.4.270.0030.00316.43
7.4.260.0000.00716.42
7.4.250.0040.00416.38
7.4.240.0040.00416.43
7.4.230.0030.00316.46
7.4.220.0090.00916.48
7.4.210.0120.00416.40
7.4.200.0000.00716.63
7.4.160.0120.00316.36
7.4.150.0130.00617.40
7.4.140.0120.00817.86
7.4.130.0110.00716.30
7.4.120.0080.01016.50
7.4.110.0090.00916.52
7.4.100.0080.00916.45
7.4.90.0070.01016.62
7.4.80.0040.01319.39
7.4.70.0110.00716.48
7.4.60.0040.01216.37
7.4.50.0030.00816.61
7.4.40.0060.01216.47
7.4.30.0030.01316.48
7.4.00.0070.00314.85
7.3.330.0000.00512.92
7.3.320.0030.00313.09
7.3.310.0000.00716.13
7.3.300.0000.00716.16
7.3.290.0070.00016.18
7.3.280.0090.00816.24
7.3.270.0040.01317.40
7.3.260.0090.00916.08
7.3.250.0080.01016.34
7.3.240.0080.01416.30
7.3.230.0140.00316.39
7.3.210.0150.00316.52
7.3.200.0060.01516.56
7.3.190.0120.00316.07
7.3.180.0090.00616.13
7.3.170.0130.00316.27
7.3.160.0070.01016.48
7.2.330.0140.00316.68
7.2.320.0170.00516.44
7.2.310.0060.01316.26
7.2.300.0170.00016.38
7.2.290.0070.01016.58
7.2.60.0090.00616.80
7.2.00.0060.00319.20
7.1.200.0030.00715.46
7.1.100.0030.00518.13
7.1.70.0030.00617.05
7.1.60.0110.01419.77
7.1.00.0100.06722.29
7.0.200.0150.00016.56
7.0.60.0430.06019.86
7.0.50.0100.08017.90
7.0.40.0070.08320.40
7.0.30.0330.06020.16
7.0.20.0130.04320.04
7.0.10.0070.08020.12
7.0.00.0170.08020.08
5.6.280.0030.07020.99
5.6.210.0070.08020.58
5.6.200.0000.06018.13
5.6.190.0070.04720.41
5.6.180.0200.06020.45
5.6.170.0400.03320.52
5.6.160.0070.07320.61
5.6.150.0100.08018.11
5.6.140.0070.08018.11
5.6.130.0030.04018.13
5.6.120.0000.07021.11
5.6.110.0100.08720.99
5.6.100.0230.06321.09
5.6.90.0100.07720.96
5.6.80.0030.05720.42
5.5.350.4270.04320.37
5.5.340.0070.08018.09
5.5.330.0100.05020.21
5.5.320.0500.05320.24
5.5.310.0330.07020.30
5.5.300.0070.05318.03
5.5.290.0070.08017.94
5.5.280.0100.06720.88
5.5.270.0100.05720.83
5.5.260.0070.07020.84
5.5.250.0130.07320.57
5.5.240.0030.07020.25

preferences:
53.32 ms | 401 KiB | 5 Q