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((bool)$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.40.0070.00718.84
8.3.30.0100.00319.16
8.3.20.0030.00620.29
8.3.10.0050.00323.64
8.3.00.0060.00319.13
8.2.170.0070.00722.96
8.2.160.0070.00720.34
8.2.150.0000.00824.18
8.2.140.0110.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00322.08
8.2.110.0030.00622.31
8.2.100.0080.00317.91
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0040.00419.88
8.2.30.0030.00718.00
8.2.20.0000.00817.65
8.2.10.0000.00718.20
8.2.00.0000.01017.70
8.1.270.0030.00524.01
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0090.00023.91
8.1.230.0040.00819.04
8.1.220.0090.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00617.38
8.1.190.0000.00817.35
8.1.180.0100.00018.10
8.1.170.0040.00418.40
8.1.160.0050.00221.99
8.1.150.0000.00718.70
8.1.140.0000.00717.33
8.1.130.0000.00717.88
8.1.120.0000.00717.53
8.1.110.0000.00717.45
8.1.100.0040.00417.47
8.1.90.0000.00717.38
8.1.80.0080.00317.30
8.1.70.0000.00717.40
8.1.60.0080.00017.49
8.1.50.0040.00417.46
8.1.40.0000.00817.43
8.1.30.0000.00817.66
8.1.20.0050.00317.72
8.1.10.0030.00517.49
8.1.00.0070.00017.47
8.0.300.0040.00420.61
8.0.290.0040.00417.18
8.0.280.0030.00518.34
8.0.270.0000.00716.90
8.0.260.0000.00717.28
8.0.250.0070.00016.93
8.0.240.0000.00717.02
8.0.230.0070.00016.95
8.0.220.0030.00317.00
8.0.210.0050.00216.85
8.0.200.0000.01017.02
8.0.190.0050.00517.05
8.0.180.0000.00717.04
8.0.170.0040.00416.89
8.0.160.0000.00817.00
8.0.150.0070.00017.00
8.0.140.0080.00016.93
8.0.130.0060.00313.45
8.0.120.0070.00016.83
8.0.110.0040.00416.87
8.0.100.0040.00416.95
8.0.90.0030.00516.89
8.0.80.0040.01117.04
8.0.70.0040.00416.86
8.0.60.0000.00716.96
8.0.50.0000.00716.96
8.0.30.0090.01117.01
8.0.20.0090.00917.40
8.0.10.0030.00517.06
8.0.00.0060.01416.87
7.4.330.0020.00215.02
7.4.320.0000.00616.61
7.4.300.0030.00316.64
7.4.290.0030.00316.54
7.4.280.0000.00816.70
7.4.270.0040.00416.52
7.4.260.0040.00416.43
7.4.250.0000.00716.60
7.4.240.0020.00516.48
7.4.230.0080.00016.70
7.4.220.0080.00816.64
7.4.210.0060.00816.53
7.4.200.0070.00016.51
7.4.190.0030.00316.34
7.4.160.0130.01016.71
7.4.150.0110.00717.40
7.4.140.0110.00617.86
7.4.130.0160.00716.56
7.4.120.0110.01016.60
7.4.110.0120.01216.66
7.4.100.0070.01416.65
7.4.90.0080.00816.50
7.4.80.0060.01619.39
7.4.70.0100.00716.52
7.4.60.0060.00916.30
7.4.50.0040.00416.45
7.4.40.0060.01516.66
7.4.30.0100.00616.67
7.4.00.0030.01414.84
7.3.330.0000.00613.12
7.3.320.0060.00013.20
7.3.310.0050.00216.18
7.3.300.0000.00616.25
7.3.290.0090.00616.32
7.3.280.0120.00716.35
7.3.270.0130.00917.40
7.3.260.0120.01216.45
7.3.250.0110.00716.36
7.3.240.0090.01216.37
7.3.230.0070.01116.45
7.3.210.0120.00416.48
7.3.200.0030.01419.39
7.3.190.0120.00916.45
7.3.180.0080.00816.45
7.3.170.0060.00916.36
7.3.160.0130.00616.54
7.3.120.0040.01114.97
7.2.330.0040.01416.53
7.2.320.0050.01416.65
7.2.310.0030.01416.42
7.2.300.0150.00316.28
7.2.290.0140.00316.85
7.2.110.0120.00816.52
7.2.100.0110.00516.36
7.2.90.2090.01016.73
7.2.80.0140.00016.59
7.2.70.0120.00316.52
7.2.60.0040.01216.70
7.2.50.0120.00816.67
7.2.40.0120.00316.81
7.2.30.0160.00316.86
7.2.20.0140.00016.75
7.2.10.0120.00316.71
7.2.00.0080.00818.19
7.1.230.0060.01215.78
7.1.220.0100.00615.77
7.1.210.0080.00815.78
7.1.200.0100.00515.64
7.1.190.1340.00315.55
7.1.180.0120.00415.67
7.1.170.0120.00615.84
7.1.160.0130.00315.84
7.1.150.0080.00815.80
7.1.140.0120.00415.83
7.1.130.0140.00315.48
7.1.120.0150.00015.81
7.1.110.0090.00915.43
7.1.100.0050.01116.95
7.1.90.0080.01015.71
7.1.80.0080.00715.78
7.1.70.0060.00416.25
7.1.60.0080.01017.65
7.1.50.0120.00916.31
7.1.40.0070.01115.85
7.1.30.0120.00615.95
7.1.20.0100.01315.75
7.1.10.0150.00515.59
7.1.00.0040.04318.85
7.0.310.0100.00715.06
7.0.300.0070.01015.36
7.0.290.0140.00615.57
7.0.280.0420.01015.29
7.0.270.0110.00515.54
7.0.260.0110.00415.55
7.0.250.0080.00815.52
7.0.240.0100.00615.25
7.0.230.0130.00515.53
7.0.220.0600.00315.35
7.0.210.0080.00815.35
7.0.200.0200.00715.01
7.0.190.0110.00715.30
7.0.180.0080.00715.39
7.0.170.0030.01015.41
7.0.160.0420.00615.12
7.0.150.0120.00415.45
7.0.140.0100.04518.71
7.0.130.0080.00815.44
7.0.120.0060.01215.12
7.0.110.0080.00815.27
7.0.100.0090.00515.22
7.0.90.0060.00615.13
7.0.80.0050.01015.20
7.0.70.0130.00315.27
7.0.60.0100.02017.66
7.0.50.0090.02616.61
7.0.40.0070.03616.79
7.0.30.0190.02516.79
7.0.20.0170.04016.77
7.0.10.0130.04316.77
7.0.00.0080.04116.69
5.6.380.0130.00314.61
5.6.370.0130.00314.50
5.6.360.0070.01114.69
5.6.350.0140.00314.27
5.6.340.0080.00514.16
5.6.330.0140.00314.56
5.6.320.0080.00814.15
5.6.310.0150.00014.56
5.6.300.0120.00014.35
5.6.290.0090.00614.17
5.6.280.0090.03817.63
5.6.270.0090.00914.27
5.6.260.0100.00714.39
5.6.250.0080.00514.23
5.6.240.0130.00314.18
5.6.230.0000.01414.30
5.6.220.0100.00514.43
5.6.210.0100.04217.42
5.6.200.0160.03716.14
5.6.190.0080.03517.31
5.6.180.1490.02517.43
5.6.170.0190.03217.53
5.6.160.0090.02917.41
5.6.150.0080.02716.23
5.6.140.0090.03516.29
5.6.130.0050.05016.16
5.6.120.0090.03817.75
5.6.110.0100.03517.68
5.6.100.0090.04017.67
5.6.90.0080.04417.63
5.6.80.0080.02117.45
5.6.70.2240.02117.33
5.6.60.0130.00014.01
5.6.50.0040.01214.50
5.6.40.0070.01013.99
5.6.30.0170.00014.14
5.6.20.0110.00414.44
5.6.10.0140.00314.28
5.6.00.0070.00714.37
5.5.380.0120.00012.79
5.5.370.0090.00412.79
5.5.360.0120.00312.79
5.5.350.0270.03516.62
5.5.340.0060.02715.41
5.5.330.0090.02016.50
5.5.320.0160.02116.49
5.5.310.0170.04316.53
5.5.300.0060.02615.38
5.5.290.0040.03615.38
5.5.280.0100.04416.74
5.5.270.0070.03716.71
5.5.260.0060.04516.72
5.5.250.0090.02816.80
5.5.240.0170.04216.42
5.5.230.0140.00012.79
5.5.220.0140.00012.79
5.5.210.0110.00412.79
5.5.200.0090.00312.79
5.5.190.0040.00712.79
5.5.180.0030.00712.79
5.5.170.0040.01114.21
5.5.160.0080.00812.79
5.5.150.0070.00712.79
5.5.140.0120.00412.79
5.5.130.0120.00412.79
5.5.120.0110.00312.79
5.5.110.0070.00312.79
5.5.100.0130.00412.79
5.5.90.0070.00412.79
5.5.80.0140.00012.79
5.5.70.0040.00912.79
5.5.60.0090.00412.79
5.5.50.0100.00312.79
5.5.40.0070.00412.79
5.5.30.0060.00812.79
5.5.20.0110.00312.79
5.5.10.0090.00212.79
5.5.00.0080.00312.79
5.4.450.0420.03316.16
5.4.440.0480.03016.10
5.4.430.0470.03016.14
5.4.420.0400.03316.13
5.4.410.0370.02716.04
5.4.400.0410.03015.80
5.4.390.0400.03315.96
5.4.380.0190.03215.74
5.4.370.0270.03015.70
5.4.360.0200.02715.75
5.4.350.0160.03115.65
5.4.340.0160.03115.72
5.4.330.0080.00812.79
5.4.320.0110.01912.63
5.4.310.0070.02712.63
5.4.300.0100.01912.63
5.4.290.0090.02012.62
5.4.280.0080.01912.57
5.4.270.0100.01812.57
5.4.260.0050.02312.57
5.4.250.0070.02312.57
5.4.240.0080.01912.57
5.4.230.0070.02212.57
5.4.220.0060.02212.57
5.4.210.0060.02312.57
5.4.200.0080.02512.57
5.4.190.0050.02912.57
5.4.180.0120.02412.56
5.4.170.0100.01912.57
5.4.160.0080.02212.57
5.4.150.0060.02412.56
5.4.140.0040.02712.41
5.4.130.0090.02112.40
5.4.120.0080.02112.38
5.4.110.0080.02012.38
5.4.100.0030.02412.38
5.4.90.0090.02012.38
5.4.80.0040.02412.38
5.4.70.0030.02312.38
5.4.60.0080.01912.38
5.4.50.0060.02112.38
5.4.40.0030.02312.37
5.4.30.0050.02112.37
5.4.20.0070.02112.37
5.4.10.0040.02212.37
5.4.00.0080.02012.12
5.3.290.0090.02212.80
5.3.280.0070.02312.75
5.3.270.0090.02012.76
5.3.260.0040.02312.76
5.3.250.0090.02012.75
5.3.240.0060.02212.75
5.3.230.0090.02112.75
5.3.220.0090.02212.73
5.3.210.0080.02112.74
5.3.200.0050.02312.73
5.3.190.0060.02212.73
5.3.180.0050.02012.73
5.3.170.0120.01612.73
5.3.160.0120.02212.73
5.3.150.0060.02312.73
5.3.140.0080.02012.72
5.3.130.0090.02112.72
5.3.120.0060.02412.72
5.3.110.0060.02112.72
5.3.100.0060.02112.45
5.3.90.0070.02012.44
5.3.80.0070.02012.43
5.3.70.0040.02412.43
5.3.60.0050.02812.43
5.3.50.0060.02612.40
5.3.40.0080.01912.39
5.3.30.0070.02112.38
5.3.20.0020.02412.27
5.3.10.0070.01912.25
5.3.00.0080.02112.24
5.2.170.0100.02010.99
5.2.160.0060.02211.00
5.2.150.0070.02310.99
5.2.140.0050.02610.99
5.2.130.0060.02510.97
5.2.120.0080.02110.97
5.2.110.0080.02010.97
5.2.100.0020.02010.97
5.2.90.0040.01910.97
5.2.80.0070.01710.97
5.2.70.0060.01710.97
5.2.60.0050.01510.95
5.2.50.0080.01610.93
5.2.40.0080.01410.92
5.2.30.0040.01810.91
5.2.20.0070.01610.90
5.2.10.0050.01710.87
5.2.00.0030.01810.79
5.1.60.0080.01210.44
5.1.50.0060.01510.43
5.1.40.0040.01510.43
5.1.30.0070.01310.60
5.1.20.0050.01610.61
5.1.10.0050.01610.47
5.1.00.0070.01310.47
5.0.50.0060.0109.71
5.0.40.0020.0149.64
5.0.30.0070.0179.55
5.0.20.0060.0119.53
5.0.10.0070.0099.53
5.0.00.0040.0179.52
4.4.90.0060.0088.78
4.4.80.0040.0098.77
4.4.70.0030.0108.77
4.4.60.0040.0098.77
4.4.50.0040.0108.78
4.4.40.0030.0138.75
4.4.30.0050.0088.77
4.4.20.0040.0108.82
4.4.10.0030.0108.82
4.4.00.0040.0138.77
4.3.110.0020.0108.73
4.3.100.0010.0118.73
4.3.90.0030.0088.71
4.3.80.0030.0148.69
4.3.70.0020.0108.71
4.3.60.0050.0078.71
4.3.50.0050.0088.71
4.3.40.0040.0138.66
4.3.30.0020.0108.05
4.3.20.0010.0108.04
4.3.10.0030.0088.01
4.3.00.0030.01011.67

preferences:
46.07 ms | 400 KiB | 5 Q