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; var_dump($bitfield & CF_GOD); exit; 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.0070.00716.63
8.3.50.0120.00722.05
8.3.40.0170.00318.87
8.3.30.0070.00719.14
8.3.20.0080.00020.12
8.3.10.0040.00423.61
8.3.00.0000.00819.36
8.2.180.0070.00718.54
8.2.170.0070.00722.96
8.2.160.0080.00520.41
8.2.150.0070.00324.18
8.2.140.0030.00724.66
8.2.130.0000.00726.16
8.2.120.0000.00721.93
8.2.110.0060.01022.14
8.2.100.0040.00717.91
8.2.90.0040.00418.96
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0030.00518.03
8.2.50.0040.00418.07
8.2.40.0050.00319.88
8.2.30.0000.00818.08
8.2.20.0030.00517.88
8.2.10.0040.00418.05
8.2.00.0050.00517.70
8.1.280.0070.01425.92
8.1.270.0070.00023.92
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00318.92
8.1.230.0130.00019.16
8.1.220.0040.00417.75
8.1.210.0090.00018.77
8.1.200.0000.00917.34
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0040.00418.51
8.1.160.0070.00022.03
8.1.150.0040.00418.65
8.1.140.0030.00517.35
8.1.130.0040.00417.70
8.1.120.0070.00017.37
8.1.110.0000.00717.47
8.1.100.0000.00717.37
8.1.90.0070.00017.46
8.1.80.0000.00717.37
8.1.70.0000.00817.37
8.1.60.0030.00617.62
8.1.50.0000.00817.47
8.1.40.0030.00617.57
8.1.30.0030.00517.60
8.1.20.0040.00417.62
8.1.10.0050.00317.48
8.1.00.0000.00717.58
8.0.300.0000.00720.73
8.0.290.0040.00417.05
8.0.280.0030.00318.46
8.0.270.0000.00717.28
8.0.260.0030.00317.17
8.0.250.0030.00316.92
8.0.240.0070.00017.02
8.0.230.0080.00016.95
8.0.220.0070.00016.91
8.0.210.0070.00016.91
8.0.200.0040.00717.00
8.0.190.0090.00016.92
8.0.180.0000.00716.90
8.0.170.0080.00016.97
8.0.160.0040.00416.98
8.0.150.0040.00416.94
8.0.140.0000.00716.93
8.0.130.0030.00313.44
8.0.120.0080.00016.95
8.0.110.0040.00417.01
8.0.100.0050.00316.97
8.0.90.0070.00016.79
8.0.80.0140.00716.96
8.0.70.0000.00816.97
8.0.60.0070.00016.78
8.0.50.0070.00016.79
8.0.30.0040.01417.02
8.0.20.0130.00617.40
8.0.10.0050.00317.04
8.0.00.0090.01016.98
7.4.330.0060.00015.00
7.4.320.0000.00616.50
7.4.300.0050.00316.58
7.4.290.0000.00716.57
7.4.280.0030.00616.45
7.4.270.0000.00716.63
7.4.260.0000.00716.55
7.4.250.0040.00416.41
7.4.240.0050.00216.53
7.4.230.0000.00716.44
7.4.220.0070.01116.66
7.4.210.0090.00616.65
7.4.200.0070.00016.63
7.4.190.0000.00716.80
7.4.160.0040.01116.60
7.4.150.0040.01517.40
7.4.140.0050.01317.86
7.4.130.0090.00816.57
7.4.120.0140.00516.67
7.4.110.0140.00316.29
7.4.100.0180.00916.61
7.4.90.0100.00716.58
7.4.80.0120.00919.39
7.4.70.0030.01316.64
7.4.60.0150.00316.52
7.4.50.0000.00916.46
7.4.40.0070.01016.58
7.4.30.0060.01116.45
7.4.00.0060.01115.02
7.3.330.0000.00613.12
7.3.320.0000.00613.28
7.3.310.0030.00616.32
7.3.300.0030.00316.38
7.3.290.0000.01516.47
7.3.280.0080.00816.34
7.3.270.0000.01817.40
7.3.260.0090.01316.57
7.3.250.0080.01016.50
7.3.240.0110.00616.54
7.3.230.0030.01316.39
7.3.210.0110.00716.46
7.3.200.0030.01519.39
7.3.190.0100.01016.37
7.3.180.0080.00816.30
7.3.170.0100.01316.37
7.3.160.0100.01016.46
7.3.120.0040.01114.91
7.3.110.0070.01214.65
7.3.100.0130.00414.71
7.3.90.0100.00814.71
7.3.80.0020.01214.76
7.3.70.0050.00514.64
7.3.60.0030.00814.76
7.3.50.0020.01114.75
7.3.40.0070.00814.87
7.3.30.0080.00514.82
7.3.20.0060.00816.65
7.3.10.0060.00616.48
7.3.00.0100.00616.64
7.2.330.0090.00916.74
7.2.320.0160.00616.66
7.2.310.0070.01416.59
7.2.300.0070.01016.74
7.2.290.0090.00916.64
7.2.250.0090.01214.92
7.2.240.0100.00915.06
7.2.230.0100.00515.15
7.2.220.0050.00714.97
7.2.210.0070.00615.26
7.2.200.0110.00214.87
7.2.190.0050.00914.96
7.2.180.0020.01315.02
7.2.170.0050.00915.08
7.2.60.0070.00716.89
7.2.00.0070.01018.96
7.1.330.0050.01015.81
7.1.320.0070.00715.68
7.1.310.0030.01015.80
7.1.300.0040.01015.73
7.1.290.0050.01015.81
7.1.280.0070.00715.60
7.1.270.0090.00215.73
7.1.260.0070.00615.74
7.1.200.0080.00415.70
7.1.100.0000.01018.10
7.1.70.0070.00016.87
7.1.60.0130.01319.46
7.1.50.0070.01116.57
7.1.00.0070.07322.57
7.0.200.0420.00014.72
7.0.140.0070.08721.98
7.0.60.0100.07019.96
7.0.50.0100.07717.91
7.0.40.0030.07320.07
7.0.30.0530.04320.20
7.0.20.0230.05720.00
7.0.10.0070.08720.19
7.0.00.0070.03720.16
5.6.280.0030.07321.10
5.6.210.0100.08020.63
5.6.200.0100.04718.13
5.6.190.0000.05320.64
5.6.180.3000.04720.50
5.6.170.0430.07020.61
5.6.160.0070.08320.68
5.6.150.0030.06018.11
5.6.140.0070.04018.09
5.6.130.0070.03718.17
5.6.120.0100.07021.02
5.6.110.0000.04720.97
5.6.100.0070.04720.98
5.6.90.0000.04320.97
5.6.80.0030.03720.41
5.5.350.0070.07720.45
5.5.340.0030.04318.02
5.5.330.0000.04720.12
5.5.320.0470.05020.28
5.5.310.0170.03720.13
5.5.300.0130.05717.91
5.5.290.0030.06718.02
5.5.280.0030.08720.66
5.5.270.0070.04720.83
5.5.260.0070.08320.77
5.5.250.0100.08020.67
5.5.240.0070.07320.27
5.4.450.0630.05319.63
5.4.440.0770.07319.66
5.4.430.0730.07719.59
5.4.420.0670.05019.31
5.4.410.1000.04319.50
5.4.400.0730.04319.24
5.4.390.0570.06019.30
5.4.380.0400.07718.64
5.4.370.0330.05018.64
5.4.360.0330.05318.69
5.4.350.0230.06018.51
5.4.340.0300.05018.74
5.4.320.0080.03512.47
5.4.310.0070.03912.47
5.4.300.0060.03812.48
5.4.290.0060.03812.45
5.4.280.0030.04012.35
5.4.270.0060.05212.35
5.4.260.0160.05812.35
5.4.250.0080.06112.36
5.4.240.0090.05512.35
5.4.230.0200.09312.35
5.4.220.0140.05112.35
5.4.210.0070.03612.35
5.4.200.0060.04012.35
5.4.190.0090.03512.34
5.4.180.0080.03512.34
5.4.170.0060.04612.35
5.4.160.0070.03812.35
5.4.150.0070.04012.34
5.4.140.0100.03712.03
5.4.130.0100.04812.01
5.4.120.0090.03711.97
5.4.110.0070.04811.96
5.4.100.0060.03511.97
5.4.90.0040.03811.97
5.4.80.0070.03711.97
5.4.70.0070.03511.96
5.4.60.0040.04211.96
5.4.50.0090.03311.96
5.4.40.0080.03511.95
5.4.30.0070.05111.95
5.4.20.0040.04011.95
5.4.10.0060.03511.95
5.4.00.0070.03511.44
5.3.290.0050.04112.80
5.3.280.0080.04112.71
5.3.270.0080.03612.72
5.3.260.0050.03912.72
5.3.250.0070.03512.72
5.3.240.0060.03712.72
5.3.230.0070.04012.71
5.3.220.0060.04012.68
5.3.210.0110.04812.68
5.3.200.0080.03712.68
5.3.190.0040.04012.68
5.3.180.0080.03812.67
5.3.170.0050.04112.67
5.3.160.0090.03512.67
5.3.150.0050.03912.67
5.3.140.0070.03612.66
5.3.130.0050.04212.66
5.3.120.0080.05012.66
5.3.110.0030.04412.66
5.3.100.0060.05412.12
5.3.90.0040.04712.08
5.3.80.0060.03612.08
5.3.70.0070.03612.08
5.3.60.0070.03812.07
5.3.50.0040.03912.00
5.3.40.0050.03812.02
5.3.30.0030.04011.97
5.3.20.0050.03611.75
5.3.10.0050.03511.71
5.3.00.0040.03811.70
5.2.170.0050.0319.20
5.2.160.0100.0259.20
5.2.150.0060.0439.21
5.2.140.0060.0329.20
5.2.130.0080.0419.16
5.2.120.0040.0439.16
5.2.110.0040.0409.16
5.2.100.0010.0339.16
5.2.90.0030.0439.16
5.2.80.0040.0459.16
5.2.70.0070.0329.15
5.2.60.0060.0409.11
5.2.50.0050.0319.08
5.2.40.0040.0409.05
5.2.30.0070.0479.03
5.2.20.0120.0399.02
5.2.10.0120.0378.94
5.2.00.0060.0318.80
5.1.60.0040.0268.09
5.1.50.0040.0248.08
5.1.40.0040.0258.06
5.1.30.0050.0308.41
5.1.20.0050.0398.43
5.1.10.0090.0318.16
5.1.00.0040.0308.16
5.0.50.0030.0236.64
5.0.40.0020.0216.50
5.0.30.0030.0326.31
5.0.20.0040.0206.28
5.0.10.0050.0286.26
5.0.00.0100.0656.25
4.4.90.0050.0304.77
4.4.80.0050.0254.75
4.4.70.0060.0254.75
4.4.60.0110.0294.75
4.4.50.0070.0204.77
4.4.40.0030.0484.70
4.4.30.0030.0354.76
4.4.20.0060.0314.84
4.4.10.0030.0184.85
4.4.00.0030.0264.76
4.3.110.0030.0234.67
4.3.100.0020.0234.66
4.3.90.0030.0224.63
4.3.80.0010.0354.58
4.3.70.0030.0194.63
4.3.60.0050.0174.63
4.3.50.0020.0174.63
4.3.40.0020.0254.54
4.3.30.0020.0163.30
4.3.20.0040.0203.28
4.3.10.0030.0193.23
4.3.00.0200.01710.55

preferences:
29.75 ms | 401 KiB | 5 Q