3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const A = 1 << 0; const B = self::A | self::C; const C = 1 << 1; } class Bar extends Foo { const A = 1 << 2; const C = 1 << 3; } var_dump(decbin(Bar::B));

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.01416.50
8.3.50.0140.00718.18
8.3.40.0090.00618.85
8.3.30.0040.01118.54
8.3.20.0040.00420.37
8.3.10.0040.00420.48
8.3.00.0000.00723.51
8.2.180.0070.01016.50
8.2.170.0090.00918.75
8.2.160.0140.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0070.00020.94
8.2.110.0030.01721.05
8.2.100.0100.00317.41
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0040.00417.66
8.2.50.0000.00817.55
8.2.40.0050.00319.23
8.2.30.0000.00720.45
8.2.20.0030.00518.00
8.2.10.0050.00217.90
8.2.00.0050.00218.04
8.1.280.0200.00025.92
8.1.270.0050.00323.85
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00023.83
8.1.230.0040.00822.65
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0030.00517.70
8.1.160.0070.00018.79
8.1.150.0040.00420.20
8.1.140.0040.00419.42
8.1.130.0070.00019.00
8.1.120.0000.00717.38
8.1.110.0000.00717.28
8.1.100.0000.00717.41
8.1.90.0030.00517.32
8.1.80.0070.00317.40
8.1.70.0000.00717.41
8.1.60.0020.00517.47
8.1.50.0000.00717.29
8.1.40.0060.00317.44
8.1.30.0060.00317.48
8.1.20.0000.00717.57
8.1.10.0030.00617.41
8.1.00.0040.00417.25
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0040.00418.26
8.0.270.0000.00716.80
8.0.260.0000.00617.21
8.0.250.0000.00716.77
8.0.240.0000.00816.90
8.0.230.0000.00716.89
8.0.220.0000.00716.83
8.0.210.0000.00816.84
8.0.200.0070.00016.91
8.0.190.0040.00416.82
8.0.180.0070.00016.84
8.0.170.0000.00816.89
8.0.160.0040.00416.83
8.0.150.0080.00016.75
8.0.140.0040.00416.77
8.0.130.0000.00613.34
8.0.120.0050.00216.85
8.0.110.0000.00816.80
8.0.100.0000.00716.74
8.0.90.0030.00516.84
8.0.80.0030.01216.86
8.0.70.0070.00016.89
8.0.60.0030.00516.85
8.0.50.0030.00316.69
8.0.30.0080.01217.06
8.0.20.0100.00917.40
8.0.10.0040.00417.02
8.0.00.0130.01016.88
7.4.330.0000.00515.55
7.4.320.0070.00016.42
7.4.300.0030.00316.54
7.4.290.0000.00716.54
7.4.280.0040.00416.48
7.4.270.0000.00716.55
7.4.260.0040.00416.50
7.4.250.0000.00816.51
7.4.240.0030.00316.59
7.4.230.0030.00316.43
7.4.220.0110.00716.52
7.4.210.0060.01016.37
7.4.200.0000.00716.62
7.4.160.0110.00816.29
7.4.150.0120.00617.40
7.4.140.0080.01117.86
7.4.130.0080.00916.34
7.4.120.0100.00816.34
7.4.110.0030.01316.44
7.4.100.0130.00316.38
7.4.90.0090.00916.32
7.4.80.0070.01019.39
7.4.70.0060.01616.43
7.4.60.0060.00916.30
7.4.50.0030.01416.30
7.4.40.0130.00316.34
7.4.30.0000.02116.54
7.4.00.0070.00714.50
7.3.330.0000.00513.23
7.3.320.0060.00013.09
7.3.310.0030.00516.19
7.3.300.0000.00616.23
7.3.290.0030.00616.25
7.3.280.0080.00916.24
7.3.270.0070.01017.40
7.3.260.0100.01216.25
7.3.250.0120.01016.26
7.3.240.0100.01016.25
7.3.230.0090.00916.39
7.3.210.0130.00316.38
7.3.200.0100.00716.21
7.3.190.0030.01316.29
7.3.180.0050.01116.30
7.3.170.0090.00616.14
7.3.160.0000.01616.51
7.2.330.0070.01116.61
7.2.320.0160.00016.36
7.2.310.0060.01116.32
7.2.300.0070.01316.47
7.2.290.0110.00716.64
7.2.60.0060.00616.38
7.1.200.0070.00415.60
7.1.90.0030.00918.24
7.1.80.0000.01117.97
7.1.70.0060.00317.02
7.1.60.0140.00526.05
7.1.50.0080.01625.82
7.1.40.0130.00825.43
7.1.30.0100.01225.38
7.1.20.0070.01225.46
7.1.10.0020.00816.46
7.1.00.0030.00716.50
7.0.230.0060.00617.57
7.0.220.0080.00317.34
7.0.210.0000.01116.63
7.0.200.0060.00416.67
7.0.190.0030.00716.66
7.0.180.0040.00816.06
7.0.170.0060.00516.18
7.0.160.0050.00516.12
7.0.150.0020.01116.04
7.0.140.0020.00816.20
7.0.130.0070.00516.36
7.0.120.0020.00916.29
7.0.110.0040.01016.26
7.0.100.0020.01116.20
7.0.90.0050.00716.19
7.0.80.0050.00716.22
7.0.70.0020.00816.28
7.0.60.0060.00415.97
7.0.50.0030.00816.19
7.0.40.0020.01015.65
7.0.30.0040.01415.60
7.0.20.0000.01015.71
7.0.10.0080.00215.49
7.0.00.0040.00615.61
5.6.300.0090.05020.90
5.6.290.0030.05220.92
5.6.280.0150.04320.84
5.6.270.0030.07220.97
5.6.260.0100.05620.88
5.6.250.0050.05820.83
5.6.240.0050.05320.87
5.6.230.0080.05520.95
5.6.220.0090.04620.83
5.6.210.0120.04220.79
5.6.200.0080.05020.83
5.6.190.0070.05120.94
5.6.180.0030.05020.91
5.6.170.0050.04920.90
5.6.160.0080.05520.97
5.6.150.0030.07220.80
5.6.140.0050.05720.76
5.6.130.0020.05320.81
5.6.120.0060.04920.82
5.6.110.0070.04820.87
5.6.100.0070.05620.95
5.6.90.0050.05120.84
5.6.80.0080.06220.26
5.6.70.0130.04120.20
5.6.60.0050.06520.10
5.6.50.0050.05720.18
5.6.40.0110.04420.13
5.6.30.0080.04520.19
5.6.20.0100.04220.31
5.6.10.0080.04520.19
5.6.00.0080.06020.20
5.5.380.0040.06817.45
5.5.370.0070.05117.47
5.5.360.0080.04717.50
5.5.350.0050.05517.43
5.5.340.0100.06018.09
5.5.330.0030.05118.00
5.5.320.0030.05418.08
5.5.310.0080.04518.02
5.5.300.0030.04818.07
5.5.290.0060.04717.76
5.5.280.0030.05317.89
5.5.270.0100.05218.05
5.5.260.0070.05418.05
5.5.250.0020.06417.88
5.5.240.0070.04617.46
5.5.230.0100.04617.33
5.5.220.0130.04517.38
5.5.210.0050.05317.47
5.5.200.0030.04917.29
5.5.190.0080.04517.41
5.5.180.0030.06017.23
5.5.160.0080.04717.44
5.5.150.0080.04617.39
5.5.140.0020.06017.29
5.5.130.0080.05717.37
5.5.120.0070.05017.41
5.5.110.0100.04317.38
5.5.100.0070.05017.27
5.5.90.0050.05217.11
5.5.80.0030.04517.31
5.5.70.0030.05017.30
5.5.60.0030.04817.02
5.5.50.0100.04217.15
5.5.40.0000.05117.25
5.5.30.0050.04517.22
5.5.20.0080.06117.26
5.5.10.0050.05617.30
5.5.00.0080.06317.15
5.4.450.0050.05319.28
5.4.440.0080.04519.24
5.4.430.0060.05019.32
5.4.420.0080.04319.30
5.4.410.0070.06519.37
5.4.400.0080.04519.00
5.4.390.0050.05518.87
5.4.380.0050.04419.15
5.4.370.0020.07118.95
5.4.360.0020.05219.02
5.4.350.0020.04919.02
5.4.340.0080.05018.93
5.4.320.0050.04619.03
5.4.310.0080.05519.03
5.4.300.0030.04718.94
5.4.290.0080.05119.19
5.4.280.0050.05019.00
5.4.270.0030.04718.96
5.4.260.0070.04619.05
5.4.250.0050.04919.06
5.4.240.0030.05919.14
5.4.230.0050.04819.07
5.4.220.0090.04618.94
5.4.210.0070.04418.94
5.4.200.0060.05719.08
5.4.190.0080.04719.08
5.4.180.0080.06119.10
5.4.170.0050.05119.06
5.4.160.0050.04918.88
5.4.150.0060.04519.01
5.4.140.0020.05116.65
5.4.130.0020.04516.56
5.4.120.0070.04316.59
5.4.110.0100.03916.45
5.4.100.0040.05816.42
5.4.90.0060.05016.68
5.4.80.0080.04016.62
5.4.70.0130.03516.71
5.4.60.0160.03816.48
5.4.50.0020.04716.50
5.4.40.0080.04016.67
5.4.30.0070.05016.57
5.4.20.0110.03616.52
5.4.10.0100.04016.64
5.4.00.0100.03716.05
5.3.290.0070.04414.90
5.3.280.0050.04714.89
5.3.270.0070.04214.90
5.3.260.0080.04814.80
5.3.250.0100.04914.76
5.3.240.0030.04714.86
5.3.230.0030.04914.78
5.3.220.0050.04514.88
5.3.210.0070.05314.84
5.3.200.0080.05414.87
5.3.190.0030.05314.88
5.3.180.0090.04514.88
5.3.170.0030.04714.76
5.3.160.0130.03914.74
5.3.150.0030.04314.76
5.3.140.0080.03814.84
5.3.130.0020.06214.86
5.3.120.0080.04414.87
5.3.110.0030.04714.67
5.3.100.0080.04114.50
5.3.90.0100.03814.62
5.3.80.0120.04214.58
5.3.70.0030.04314.54
5.3.60.0030.04514.52
5.3.50.0030.04314.43
5.3.40.0100.04314.52
5.3.30.0140.03814.52
5.3.20.0050.04114.24
5.3.10.0030.04714.28
5.3.00.0020.04814.38
5.2.170.0020.03613.16
5.2.160.0020.04113.12
5.2.150.0030.03713.03
5.2.140.0030.03613.12
5.2.130.0020.03613.16
5.2.120.0030.03513.16
5.2.110.0050.03913.11
5.2.100.0050.03113.10
5.2.90.0020.04213.15
5.2.80.0100.03313.15
5.2.70.0090.03413.09
5.2.60.0070.03313.09
5.2.50.0030.03712.99
5.2.40.0030.03513.01
5.2.30.0020.03712.95
5.2.20.0080.03112.96
5.2.10.0060.03112.92
5.2.00.0050.03412.90
5.1.60.0060.03012.39
5.1.50.0120.02512.50
5.1.40.0030.03112.39
5.1.30.0020.03212.65
5.1.20.0030.03012.63
5.1.10.0020.03912.64
5.1.00.0070.03512.49
5.0.50.0020.02711.88
5.0.40.0020.02711.71
5.0.30.0170.03211.71
5.0.20.0130.01711.71
5.0.10.0070.02011.71
5.0.00.0030.03611.71
4.4.90.0020.01911.71
4.4.80.0000.02011.71
4.4.70.0050.01611.71
4.4.60.0030.01911.71
4.4.50.0000.02211.71
4.4.40.0040.02811.71
4.4.30.0020.02111.71
4.4.20.0020.02011.71
4.4.10.0030.02911.71
4.4.00.0030.02811.71
4.3.110.0050.01811.71
4.3.100.0030.01911.71
4.3.90.0050.01811.71
4.3.80.0020.03811.71
4.3.70.0050.02011.71
4.3.60.0050.02111.71
4.3.50.0040.02311.71
4.3.40.0030.03311.71
4.3.30.0030.02111.71
4.3.20.0080.02011.71
4.3.10.0030.02011.71
4.3.00.0020.02211.71

preferences:
59.92 ms | 400 KiB | 5 Q