3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('CF_GOD', 1 << 2); // may issue #god commands define('CF_PLAYER', 1 << 3); // is a player define('CF_STAFF', 1 << 4); // member of the staff define('CF_INVISIBLE', 1 << 5); // character is completely invisible define('CF_GENDER', 1 << 14 | 1 << 15); // Determine Gender define('CF_WARRIOR', 1 << 16); // is warrior - or seyan, if warrior and mage are set define('CF_MAGE', 1 << 17); // is mage - or seyan, if warrior and mage are set define('CF_ARCH', 1 << 18); // is arch-XXX define('CF_LQMASTER', 1 << 52); // may host LQs define('CF_NOWHO', 1 << 56); // invisible to /who define('CF_WON', 1 << 57); // character won the game (ie killed islena $bitfield = 8470543; $is_god = (bool) ($bitfield & CF_GOD); $is_staff = (bool) ($bitfield & CF_STAFF); $is_gender = (bool) ($bitfield & CF_GENDER); $is_class = (bool) ($bitfield & CF_CLASS); $is_arch = (bool) ($bitfield & CF_ARCH); $is_invisible = (bool) ($bitfield & CF_INVISIBLE); $is_lqmaster = (bool) ($bitfield & CF_LQMASTER); $is_invisible = (bool) ($bitfield & CF_INVISIBLE); $is_sirlady = (bool) ($bitfield & CF_WON); echo $is_god; echo $is_gender; echo $is_class;

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.0040.01116.75
8.3.50.0050.01222.15
8.3.40.0060.01218.92
8.3.30.0030.01019.17
8.3.20.0080.00020.33
8.3.10.0000.00723.52
8.3.00.0040.00419.26
8.2.180.0150.00316.50
8.2.170.0140.00022.96
8.2.160.0100.00320.30
8.2.150.0050.00324.18
8.2.140.0100.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.25
8.2.110.0060.00319.39
8.2.100.0120.00017.91
8.2.90.0000.00819.26
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00919.85
8.2.30.0000.01018.11
8.2.20.0080.00017.67
8.2.10.0000.00718.05
8.2.00.0090.00317.81
8.1.280.0100.01025.92
8.1.270.0040.00423.91
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0060.00320.85
8.1.230.0080.00317.52
8.1.220.0040.00417.79
8.1.210.0080.00318.77
8.1.200.0030.00617.35
8.1.190.0060.00317.35
8.1.180.0030.00719.13
8.1.170.0050.00318.56
8.1.160.0040.00422.03
8.1.150.0000.00718.64
8.1.140.0020.00517.38
8.1.130.0000.00717.91
8.1.120.0040.00417.46
8.1.110.0050.00217.52
8.1.100.0040.00417.46
8.1.90.0040.00417.38
8.1.80.0060.00317.48
8.1.70.0050.00317.45
8.1.60.0000.00817.63
8.1.50.0070.00017.52
8.1.40.0030.00517.53
8.1.30.0040.00417.66
8.1.20.0040.00417.73
8.1.10.0060.00317.50
8.1.00.0000.00817.53
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0070.00018.45
8.0.270.0030.00317.27
8.0.260.0000.00617.27
8.0.250.0000.00717.08
8.0.240.0030.00317.01
8.0.230.0050.00316.97
8.0.220.0070.00016.86
8.0.210.0040.00416.97
8.0.200.0000.01016.99
8.0.190.0040.00417.00
8.0.180.0070.00016.92
8.0.170.0030.00617.02
8.0.160.0030.00316.92
8.0.150.0000.00816.82
8.0.140.0070.00016.94
8.0.130.0030.00313.41
8.0.120.0000.00816.98
8.0.110.0040.00417.00
8.0.100.0050.00216.87
8.0.90.0040.00416.88
8.0.80.0070.00717.00
8.0.70.0040.00416.84
8.0.60.0040.00416.96
8.0.50.0000.00817.08
8.0.30.0130.00717.10
8.0.20.0110.00917.40
8.0.10.0040.00417.16
8.0.00.0070.01116.82
7.4.330.0030.00315.09
7.4.320.0000.00816.52
7.4.300.0030.00316.62
7.4.290.0000.00716.53
7.4.280.0040.00416.38
7.4.270.0050.00216.43
7.4.260.0030.00316.50
7.4.250.0030.00516.53
7.4.240.0000.00716.68
7.4.230.0030.00316.69
7.4.220.0040.02216.55
7.4.210.0080.00916.57
7.4.200.0040.00416.64
7.4.190.0030.00316.78
7.4.160.0120.00916.52
7.4.150.0120.00617.40
7.4.140.0140.00817.86
7.4.130.0080.00916.57
7.4.120.0120.00616.56
7.4.110.0100.00716.75
7.4.100.0110.01216.61
7.4.90.0170.00616.36
7.4.80.0040.01419.39
7.4.70.0050.01116.35
7.4.60.0100.00716.55
7.4.50.0060.00316.52
7.4.40.0110.01316.52
7.4.30.0030.01316.50
7.4.00.0100.00314.98
7.3.330.0060.00013.11
7.3.320.0000.00513.34
7.3.310.0070.00016.19
7.3.300.0060.00016.39
7.3.290.0060.01216.34
7.3.280.0100.00716.40
7.3.270.0120.00617.40
7.3.260.0110.00716.60
7.3.250.0130.00816.48
7.3.240.0060.01016.33
7.3.230.0120.00616.68
7.3.210.0140.00316.38
7.3.200.0060.01219.39
7.3.190.0100.01016.54
7.3.180.0080.00816.41
7.3.170.0120.00916.65
7.3.160.0070.00716.64
7.3.120.0000.01415.01
7.2.330.0120.00416.56
7.2.320.0140.00316.65
7.2.310.0100.00716.61
7.2.300.0110.00716.67
7.2.290.0100.00716.50
7.2.60.0060.00616.95
7.2.00.0070.01119.30
7.1.200.0070.00315.83
7.1.100.0120.00418.01
7.1.70.0030.00617.20
7.1.60.0000.01119.46
7.1.50.0000.02417.05
7.1.00.0030.07322.33
7.0.200.0160.00814.84
7.0.140.0070.07022.02
7.0.60.0070.08319.86
7.0.50.0100.06317.81
7.0.40.0100.09720.05
7.0.30.0370.05320.13
7.0.20.0270.07720.16
7.0.10.0100.08020.12
7.0.00.0200.05020.29
5.6.280.0070.07020.94
5.6.210.0200.06720.67
5.6.200.0030.05018.19
5.6.190.0070.04720.45
5.6.180.0330.04020.49
5.6.170.0270.07320.55
5.6.160.0130.07720.50
5.6.150.0030.04718.12
5.6.140.0070.07018.11
5.6.130.0070.06318.09
5.6.120.0130.07720.94
5.6.110.0100.07021.01
5.6.100.0030.08721.02
5.6.90.0030.04021.13
5.6.80.0200.06320.49
5.5.350.0370.06320.34
5.5.340.0030.06717.93
5.5.330.0070.04320.25
5.5.320.0300.07020.12
5.5.310.0230.05320.29
5.5.300.0170.03717.92
5.5.290.0030.09018.01
5.5.280.0100.03720.79
5.5.270.0100.08320.79
5.5.260.0070.03720.69
5.5.250.0000.04320.62
5.5.240.0170.05720.07
5.4.450.0400.03019.58
5.4.440.0770.05019.57
5.4.430.0900.04019.10
5.4.420.0800.04319.58
5.4.410.0400.04019.28
5.4.400.0270.04019.26
5.4.390.0900.03718.88
5.4.380.0200.05718.74
5.4.370.0400.05318.66
5.4.360.0570.06718.71
5.4.350.0370.04318.70
5.4.340.0270.05018.57
5.4.320.0020.04112.47
5.4.310.0050.04512.47
5.4.300.0050.03712.48
5.4.290.0120.06212.45
5.4.280.0050.05612.35
5.4.270.0050.05612.35
5.4.260.0110.05212.35
5.4.250.0070.05812.35
5.4.240.0060.05712.35
5.4.230.0070.05312.34
5.4.220.0140.04812.34
5.4.210.0050.04012.34
5.4.200.0070.04012.34
5.4.190.0060.03912.34
5.4.180.0060.05212.34
5.4.170.0090.04912.35
5.4.160.0110.04812.35
5.4.150.0110.06012.34
5.4.140.0140.05512.03
5.4.130.0070.05712.01
5.4.120.0110.05411.97
5.4.110.0070.04511.97
5.4.100.0100.03911.96
5.4.90.0130.05511.97
5.4.80.0140.05011.96
5.4.70.0090.05911.96
5.4.60.0090.04811.96
5.4.50.0060.05111.96
5.4.40.0090.07611.95
5.4.30.0080.06311.95
5.4.20.0060.04111.95
5.4.10.0110.03211.95
5.4.00.0050.04011.44
5.3.290.0100.04312.80
5.3.280.0090.04112.71
5.3.270.0060.04012.72
5.3.260.0100.04212.72
5.3.250.0070.04012.72
5.3.240.0120.04612.71
5.3.230.0100.05212.70
5.3.220.0060.04112.68
5.3.210.0050.04312.68
5.3.200.0100.03712.68
5.3.190.0090.05812.68
5.3.180.0090.05712.68
5.3.170.0080.07612.66
5.3.160.0140.07412.67
5.3.150.0080.06312.68
5.3.140.0150.07512.66
5.3.130.0150.06612.66
5.3.120.0110.08612.65
5.3.110.0150.07412.66
5.3.100.0100.05712.12
5.3.90.0090.05612.08
5.3.80.0140.06312.07
5.3.70.0180.08112.08
5.3.60.0070.06512.06
5.3.50.0140.06712.00
5.3.40.0080.06812.00
5.3.30.0110.07111.96
5.3.20.0180.08611.74
5.3.10.0100.05611.70
5.3.00.0130.05311.69
5.2.170.0120.0509.20
5.2.160.0150.0519.20
5.2.150.0140.0699.19
5.2.140.0300.0759.19
5.2.130.0110.0669.16
5.2.120.0060.0379.16
5.2.110.0090.0299.16
5.2.100.0070.0339.15
5.2.90.0120.0609.15
5.2.80.0130.0539.15
5.2.70.0150.0949.15
5.2.60.0180.0839.10
5.2.50.0150.0859.07
5.2.40.0120.0609.05
5.2.30.0060.0489.03
5.2.20.0110.0419.01
5.2.10.0070.0458.94
5.2.00.0130.0578.79
5.1.60.0080.0568.07
5.1.50.0140.0508.07
5.1.40.0070.0398.06
5.1.30.0120.0578.41
5.1.20.0090.0628.43
5.1.10.0040.0278.16
5.1.00.0090.0528.15
5.0.50.0070.0306.63
5.0.40.0050.0216.49
5.0.30.0030.0326.31
5.0.20.0020.0236.27
5.0.10.0040.0216.25
5.0.00.0080.0506.25
4.4.90.0040.0394.78
4.4.80.0040.0204.76
4.4.70.0050.0254.76
4.4.60.0040.0254.75
4.4.50.0050.0254.77
4.4.40.0060.0364.71
4.4.30.0060.0214.75
4.4.20.0050.0244.85
4.4.10.0040.0254.85
4.4.00.0040.0374.76
4.3.110.0020.0264.67
4.3.100.0060.0214.66
4.3.90.0060.0214.63
4.3.80.0060.0344.58
4.3.70.0050.0284.63
4.3.60.0080.0204.63
4.3.50.0120.0274.63
4.3.40.0050.0374.54
4.3.30.0030.0253.29
4.3.20.0020.0263.28
4.3.10.0040.0383.24
4.3.00.0270.01316.03

preferences:
48.36 ms | 401 KiB | 5 Q