3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Field { const READ = 1; const WRITE = 2; private $name; private $readWriteMask; public function __construct($name, $readWriteMask = null) { $this->name = (string) $name; $this->readWriteMask = $readWriteMask ?: self::READ | self::WRITE; } public function getName() { return $this->name; } public function isReadable() { return (boolean) $this->readWriteMask & self::READ; } public function isWritable() { return (boolean) $this->readWriteMask & self::WRITE; } } $a = new Field('a'); var_dump($a->isReadable()); var_dump($a->isWritable());

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.00318.43
8.3.50.0110.00721.26
8.3.40.0070.00718.85
8.3.30.0110.00419.07
8.3.20.0050.00220.30
8.3.10.0080.00023.69
8.3.00.0000.01019.25
8.2.180.0100.01016.50
8.2.170.0170.00022.96
8.2.160.0040.01120.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00722.13
8.2.110.0080.00321.00
8.2.100.0070.00418.22
8.2.90.0080.00019.26
8.2.80.0030.00517.97
8.2.70.0040.00817.21
8.2.60.0080.00017.93
8.2.50.0080.00018.07
8.2.40.0040.00418.02
8.2.30.0090.00317.94
8.2.20.0000.00717.70
8.2.10.0030.00518.11
8.2.00.0080.00017.73
8.1.280.0070.00725.92
8.1.270.0040.00423.79
8.1.260.0140.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00320.97
8.1.230.0080.00417.83
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.47
8.1.190.0000.00817.25
8.1.180.0040.00418.10
8.1.170.0130.00318.41
8.1.160.0000.00722.02
8.1.150.0040.00418.94
8.1.140.0040.00417.45
8.1.130.0000.00717.79
8.1.120.0040.00417.38
8.1.110.0050.00317.52
8.1.100.0040.00417.50
8.1.90.0070.00017.39
8.1.80.0030.00317.50
8.1.70.0030.00317.39
8.1.60.0000.00817.63
8.1.50.0000.00817.48
8.1.40.0040.00417.40
8.1.30.0080.00017.71
8.1.20.0040.00417.55
8.1.10.0000.00717.64
8.1.00.0000.00717.48
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0000.00718.45
8.0.270.0050.00317.13
8.0.260.0000.00617.20
8.0.250.0030.00316.97
8.0.240.0000.00716.87
8.0.230.0000.00816.83
8.0.220.0070.00016.80
8.0.210.0070.00016.91
8.0.200.0070.00016.95
8.0.190.0080.00016.94
8.0.180.0000.00816.92
8.0.170.0040.00416.83
8.0.160.0040.00416.89
8.0.150.0000.00716.85
8.0.140.0020.00516.88
8.0.130.0080.00013.21
8.0.120.0080.00016.92
8.0.110.0020.00516.74
8.0.100.0000.00716.93
8.0.90.0040.00416.89
8.0.80.0080.00816.92
8.0.70.0000.00716.80
8.0.60.0040.00416.79
8.0.50.0030.00616.84
8.0.30.0100.01317.20
8.0.20.0080.01517.40
8.0.10.0050.00317.07
8.0.00.0110.01116.70
7.4.330.0000.00615.02
7.4.320.0000.00616.52
7.4.300.0030.00316.47
7.4.290.0030.00516.59
7.4.280.0050.00316.55
7.4.270.0070.00016.52
7.4.260.0000.00816.48
7.4.250.0070.00016.46
7.4.240.0040.00416.56
7.4.230.0030.00316.36
7.4.220.0150.00316.57
7.4.210.0040.01516.62
7.4.200.0000.00716.47
7.4.160.0100.00716.63
7.4.150.0060.01517.40
7.4.140.0140.00817.86
7.4.130.0090.00916.52
7.4.120.0160.00816.50
7.4.110.0070.01016.37
7.4.100.0070.01016.34
7.4.90.0030.01616.33
7.4.80.0100.00719.39
7.4.70.0030.01316.75
7.4.60.0030.01516.36
7.4.50.0030.00516.50
7.4.40.0100.00716.51
7.4.30.0100.00716.46
7.4.00.0130.00015.25
7.3.330.0030.00313.30
7.3.320.0030.00313.30
7.3.310.0070.00016.20
7.3.300.0000.00616.32
7.3.290.0070.00716.36
7.3.280.0140.00516.36
7.3.270.0150.00917.40
7.3.260.0070.01116.59
7.3.250.0140.00916.55
7.3.240.0120.00916.42
7.3.230.0110.00616.59
7.3.210.0080.00816.73
7.3.200.0080.00819.39
7.3.190.0060.01216.57
7.3.180.0090.00916.64
7.3.170.0100.00716.57
7.3.160.0100.00716.63
7.2.330.0070.01016.43
7.2.320.0070.01016.86
7.2.310.0150.00316.68
7.2.300.0080.00816.41
7.2.290.0060.01216.76
7.2.60.0070.01016.84
7.2.00.0140.01419.38
7.1.200.0140.00015.92
7.1.100.0080.00818.06
7.1.70.0040.00417.10
7.1.60.0140.01019.11
7.1.50.0130.01016.95
7.1.00.0100.06722.29
7.0.200.0000.00716.86
7.0.140.0100.06722.08
7.0.60.0070.06020.01
7.0.50.0070.08017.87
7.0.40.0070.04320.40
7.0.30.0330.06720.06
7.0.20.0200.04720.07
7.0.10.0100.06720.12
7.0.00.0070.06720.25
5.6.280.0100.07020.91
5.6.210.0170.06720.72
5.6.200.0030.04018.23
5.6.190.0100.04020.52
5.6.180.0330.07320.48
5.6.170.0200.05720.62
5.6.160.0130.06720.61
5.6.150.0100.03318.15
5.6.140.0030.07718.18
5.6.130.0170.07718.28
5.6.120.0030.04320.99
5.6.110.0130.07321.00
5.6.100.0100.08021.13
5.6.90.0030.06321.10
5.6.80.0070.06720.39
5.6.70.3870.04020.39
5.5.350.0200.07020.53
5.5.340.0100.08017.99
5.5.330.0070.06320.18
5.5.320.0230.08320.30
5.5.310.0270.04020.32
5.5.300.0170.06317.95
5.5.290.0030.04318.04
5.5.280.0030.05020.78
5.5.270.0030.06720.76
5.5.260.0100.07720.77
5.5.250.0100.03720.61
5.5.240.0230.08020.28
5.4.450.0900.06719.46
5.4.440.0130.06319.60
5.4.430.1070.06019.14
5.4.420.0630.00019.32
5.4.410.0700.00019.25
5.4.400.0600.00019.18
5.4.390.0630.00019.13
5.4.380.0630.00019.11
5.4.370.0630.00019.06
5.4.360.0630.00019.27
5.4.350.0670.00019.13
5.4.340.0040.03612.02
5.4.320.0050.04012.50
5.4.310.0060.04212.50
5.4.300.0100.03512.50
5.4.290.0040.05012.50
5.4.280.0030.04212.40
5.4.270.0110.03712.40
5.4.260.0070.04612.39
5.4.250.0050.04512.40
5.4.240.0020.04012.40
5.4.230.0070.03712.39
5.4.220.0070.04112.39
5.4.210.0090.04212.39
5.4.200.0080.04512.39
5.4.190.0100.05412.38
5.4.180.0100.04712.39
5.4.170.0100.04612.40
5.4.160.0080.04912.39
5.4.150.0050.03712.39
5.4.140.0030.03912.07
5.4.130.0060.04412.06
5.4.120.0090.03212.02
5.4.110.0090.04912.02
5.4.100.0060.03712.01
5.4.90.0030.03912.02
5.4.80.0060.03612.02
5.4.70.0060.03512.01
5.4.60.0040.03712.01
5.4.50.0080.03812.01
5.4.40.0080.03512.00
5.4.30.0060.03612.00
5.4.20.0060.03912.00
5.4.10.0070.03312.00
5.4.00.0030.03811.48
5.3.290.0080.03612.80
5.3.280.0040.03812.71
5.3.270.0070.04412.73
5.3.260.0080.03712.72
5.3.250.0060.03812.72
5.3.240.0060.03812.71
5.3.230.0070.03712.71
5.3.220.0050.03912.68
5.3.210.0060.03912.68
5.3.200.0070.03712.68
5.3.190.0060.04212.68
5.3.180.0080.04412.68
5.3.170.0070.03812.67
5.3.160.0070.03512.68
5.3.150.0050.03812.67
5.3.140.0050.03812.66
5.3.130.0070.03812.66
5.3.120.0060.04112.66
5.3.110.0090.04412.66
5.3.100.0050.04012.13
5.3.90.0080.03912.11
5.3.80.0040.03812.10
5.3.70.0030.03912.10
5.3.60.0070.04212.08
5.3.50.0080.04512.03
5.3.40.0050.03812.03
5.3.30.0090.03111.99
5.3.20.0020.03811.77
5.3.10.0100.03211.74
5.3.00.0040.03911.72
5.2.170.0020.0329.22
5.2.160.0030.0349.22
5.2.150.0060.0319.22
5.2.140.0060.0309.21
5.2.130.0050.0319.18
5.2.120.0070.0299.19
5.2.110.0040.0299.19
5.2.100.0040.0309.19
5.2.90.0070.0269.18
5.2.80.0090.0259.18
5.2.70.0050.0359.18
5.2.60.0050.0359.13
5.2.50.0070.0279.09
5.2.40.0030.0339.07
5.2.30.0060.0309.05
5.2.20.0050.0289.04
5.2.10.0090.0318.94
5.2.00.0080.0258.82
5.1.60.0030.0288.09
5.1.50.0030.0288.09
5.1.40.0040.0318.08
5.1.30.0050.0308.42
5.1.20.0040.0278.45
5.1.10.0060.0328.16
5.1.00.0040.0308.16
5.0.50.0030.0276.65
5.0.40.0050.0196.50
5.0.30.0050.0376.31
5.0.20.0050.0226.29
5.0.10.0060.0236.26
5.0.00.0030.0336.25
4.4.90.0030.0174.78
4.4.80.0040.0204.75
4.4.70.0070.0294.75
4.4.60.0040.0214.76
4.4.50.0040.0234.77
4.4.40.0070.0314.71
4.4.30.0090.0164.76
4.4.20.0040.0194.84
4.4.10.0020.0214.84
4.4.00.0050.0274.76
4.3.110.0030.0214.67
4.3.100.0080.0164.66
4.3.90.0020.0174.64
4.3.80.0060.0254.58
4.3.70.0030.0214.63
4.3.60.0040.0144.63
4.3.50.0040.0224.63
4.3.40.0050.0324.53
4.3.30.0030.0223.30
4.3.20.0020.0163.28
4.3.10.0010.0183.24
4.3.00.0170.0237.28

preferences:
47.03 ms | 401 KiB | 5 Q