3v4l.org

run code in 300+ PHP versions simultaneously
<?php $decimal= 3660; const FLAG_1 = 0x1; const FLAG_2 = 0x2; const FLAG_3 = 0x4; const FLAG_4 = 0x8; const FLAG_5 = 0x10; const FLAG_6 = 0x20; const FLAG_7 = 0x40; const FLAG_8 = 0x80; const FLAG_9 = 0x100; const FLAG_10 = 0x200; const FLAG_11 = 0x400; const FLAG_12 = 0x800; function show_flags ($decimal) { if ($decimal & FLAG_1) { echo "Flag 1 included.<br>\n"; } if ($decimal & FLAG_2) { echo "Flag 2 included.<br>\n"; } if ($decimal & FLAG_3) { echo "Flag 3 included.<br>\n"; } if ($decimal & FLAG_4) { echo "Flag 4 included.<br>\n"; } if ($decimal & FLAG_5) { echo "Flag 5 included.<br>\n"; } if ($decimal & FLAG_6) { echo "Flag 6 included.<br>\n"; } if ($decimal & FLAG_7) { echo "Flag 7 included.<br>\n"; } if ($decimal & FLAG_8) { echo "Flag 8 included.<br>\n"; } if ($decimal & FLAG_9) { echo "Flag 9 included.<br>\n"; } if ($decimal & FLAG_10) { echo "Flag 10 included.<br>\n"; } if ($decimal & FLAG_11) { echo "Flag 11 included.<br>\n"; } if ($decimal & FLAG_12) { echo "Flag 12 included.<br>\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.5.10.0120.00616.38
8.5.00.0150.00619.93
8.4.160.0100.01119.46
8.4.150.0020.00014.05
8.4.140.0140.00717.68
8.4.130.0040.00518.75
8.4.120.0080.00324.10
8.4.110.0100.01018.93
8.4.100.0110.00720.52
8.4.90.0100.01020.72
8.4.80.0100.01019.38
8.4.70.0100.00617.93
8.4.60.0100.00617.70
8.4.50.0110.00818.52
8.4.40.0070.00317.53
8.4.30.0100.00018.58
8.4.20.0170.00318.83
8.4.10.0040.00417.66
8.3.280.0120.00818.51
8.3.270.0130.00616.39
8.3.260.0110.00816.46
8.3.250.0110.00818.54
8.3.240.0060.00217.04
8.3.230.0090.00916.75
8.3.220.0090.01019.04
8.3.210.0090.00716.41
8.3.200.0040.00516.48
8.3.190.0100.00816.42
8.3.180.0130.00518.16
8.3.170.0110.00718.68
8.3.160.0080.01118.22
8.3.150.0090.00917.08
8.3.140.0080.00017.01
8.3.130.0120.00318.36
8.3.120.0110.00720.92
8.3.110.0080.00816.53
8.3.100.0030.00616.78
8.3.90.0000.00826.77
8.3.80.0060.00319.36
8.3.70.0070.01418.55
8.3.60.0150.00016.63
8.3.50.0030.01716.23
8.3.40.0070.00718.76
8.3.30.0110.00418.61
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0000.00826.16
8.2.290.0110.00820.29
8.2.280.0090.00916.64
8.2.270.0070.01017.15
8.2.260.0060.01218.74
8.2.250.0160.00018.20
8.2.240.0030.00619.00
8.2.230.0110.00020.94
8.2.220.0060.00324.06
8.2.210.0070.00026.77
8.2.200.0040.00418.88
8.2.190.0040.01116.75
8.2.180.0140.00325.92
8.2.170.0150.00618.96
8.2.160.0000.01322.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0080.00026.35
8.2.110.0070.00321.09
8.2.100.0080.00517.79
8.2.90.0080.00018.09
8.2.80.0060.00318.86
8.2.70.0040.00417.50
8.2.60.0040.00417.50
8.2.50.0000.00818.07
8.2.40.0000.00818.10
8.2.30.0030.00618.03
8.2.20.0060.00318.07
8.2.10.0000.00719.25
8.2.00.0030.00619.12
8.1.330.0050.00421.88
8.1.320.0120.00916.09
8.1.310.0080.00018.19
8.1.300.0030.00719.48
8.1.290.0110.00030.84
8.1.280.0150.00025.92
8.1.270.0060.00323.99
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0040.00423.83
8.1.230.0080.00420.89
8.1.220.0040.00417.74
8.1.210.0130.00018.85
8.1.200.0040.00417.36
8.1.190.0090.00017.53
8.1.180.0060.00318.10
8.1.170.0080.00018.76
8.1.160.0040.00418.95
8.1.150.0040.00418.91
8.1.140.0000.00718.94
8.1.130.0030.00320.20
8.1.120.0050.00317.52
8.1.110.0040.00417.45
8.1.100.0050.00317.45
8.1.90.0040.00417.36
8.1.80.0060.00317.47
8.1.70.0000.00817.36
8.1.60.0030.00617.57
8.1.50.0040.00417.56
8.1.40.0040.00417.45
8.1.30.0040.00417.71
8.1.20.0050.00517.62
8.1.10.0040.00417.49
8.1.00.0000.00717.39
8.0.300.0000.00720.09
8.0.290.0000.00816.63
8.0.280.0000.00818.39
8.0.270.0050.00317.89
8.0.260.0060.00018.41
8.0.250.0000.00716.91
8.0.240.0000.00716.81
8.0.230.0000.00716.96
8.0.220.0040.00416.91
8.0.210.0030.00316.79
8.0.200.0000.00716.97
8.0.190.0030.00316.99
8.0.180.0030.00316.94
8.0.170.0060.00316.93
8.0.160.0000.00716.80
8.0.150.0000.00716.72
8.0.140.0030.00616.90
8.0.130.0000.00513.37
8.0.120.0000.00716.89
8.0.110.0000.00716.91
8.0.100.0040.00416.85
8.0.90.0030.00516.81
8.0.80.0070.00716.90
8.0.70.0000.00716.89
8.0.60.0070.00016.75
8.0.50.0040.00416.86
8.0.30.0100.00516.91
8.0.20.0160.01716.97
8.0.10.0310.00516.94
8.0.00.0220.01017.00
7.4.330.0000.00515.55
7.4.320.0030.00316.59
7.4.300.0030.00316.47
7.4.290.0070.00016.54
7.4.280.0030.00516.63
7.4.270.0070.00016.45
7.4.260.0030.00313.38
7.4.250.0040.00416.48
7.4.240.0030.00316.63
7.4.230.0060.00316.64
7.4.220.0070.00016.70
7.4.210.0050.01316.53
7.4.200.0070.00016.70
7.4.160.0030.01316.65
7.4.150.0310.00916.51
7.4.140.0260.00916.55
7.4.130.0250.00916.36
7.4.120.0220.00716.34
7.4.110.0210.01116.53
7.4.100.0190.01416.56
7.4.90.0170.01016.55
7.4.80.0300.00016.45
7.4.70.0150.01016.45
7.4.60.0250.00316.36
7.4.50.0210.00616.45
7.4.40.0150.01816.21
7.4.30.0290.00016.36
7.4.20.0230.00616.42
7.4.10.0210.00916.29
7.4.00.0240.00816.37
7.3.330.0070.00016.25
7.3.320.0000.00513.08
7.3.310.0030.00316.23
7.3.300.0050.00316.14
7.3.290.0050.01116.24
7.3.280.0100.00716.25
7.3.270.0230.00616.23
7.3.260.0160.01216.25
7.3.250.0260.01316.28
7.3.240.0210.00916.15
7.3.230.0210.00816.20
7.3.220.0200.00916.16
7.3.210.0210.00916.26
7.3.200.0140.01416.27
7.3.190.0250.00616.11
7.3.180.0280.00316.11
7.3.170.0120.01616.21
7.3.160.0250.00916.21
7.3.150.0170.01416.20
7.3.140.0240.01316.12
7.3.130.0190.01216.21
7.3.120.0300.00416.16
7.3.110.0260.01116.11
7.3.100.0250.00816.06
7.3.90.0150.01316.47
7.3.80.0300.00016.13
7.3.70.0200.00616.35
7.3.60.0190.01316.39
7.3.50.0270.00016.37
7.3.40.0240.00416.34
7.3.30.0120.01516.35
7.3.20.0520.00716.39
7.3.10.0180.00716.37
7.3.00.0200.00716.40

preferences:
161.29 ms | 403 KiB | 5 Q