3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $FLAG_1 = 1 << 0; public static $FLAG_2 = 1 << 1; public static $FLAG_3 = 1 << 2; }

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.70.0060.00918.41
8.3.60.0100.00718.18
8.3.50.0090.00817.21
8.3.40.0170.00318.64
8.3.30.0080.00818.38
8.3.20.0040.00418.38
8.3.10.0080.00020.36
8.3.00.0000.00817.38
8.2.180.0150.00616.32
8.2.170.0100.00322.96
8.2.160.0070.00722.32
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.82
8.2.110.0060.00321.18
8.2.100.0110.00017.78
8.2.90.0000.00919.16
8.2.80.0000.00717.97
8.2.70.0050.00317.24
8.2.60.0080.00017.68
8.2.50.0080.00018.07
8.2.40.0060.00318.03
8.2.30.0030.00517.93
8.2.20.0000.00817.52
8.2.10.0030.00617.41
8.2.00.0040.00417.42
8.1.280.0060.00925.92
8.1.270.0020.00523.99
8.1.260.0040.01126.35
8.1.250.0050.00228.09
8.1.240.0000.00922.48
8.1.230.0000.01220.84
8.1.220.0080.00018.77
8.1.210.0120.00018.77
8.1.200.0000.00817.13
8.1.190.0000.00817.41
8.1.180.0100.00318.10
8.1.170.0050.00218.74
8.1.160.0040.00418.80
8.1.150.0050.00318.44
8.1.140.0070.00017.22
8.1.130.0000.00717.75
8.1.120.0080.00017.40
8.1.110.0000.00717.21
8.1.100.0070.00017.24
8.1.90.0070.00017.40
8.1.80.0040.00317.34
8.1.70.0040.00417.22
8.1.60.0040.00417.36
8.1.50.0000.00717.35
8.1.40.0000.00817.38
8.1.30.0000.00717.47
8.1.20.0040.00417.49
8.1.10.0000.00717.34
8.1.00.0030.00517.20
8.0.300.0030.00319.65
8.0.290.0050.00216.58
8.0.280.0030.00318.37
8.0.270.0000.00717.03
8.0.260.0060.00016.56
8.0.250.0070.00016.72
8.0.240.0000.00716.81
8.0.230.0040.00416.80
8.0.220.0030.00316.79
8.0.210.0040.00416.71
8.0.200.0070.00016.77
8.0.190.0080.00016.79
8.0.180.0040.00416.70
8.0.170.0050.00316.81
8.0.160.0030.00316.79
8.0.150.0040.00416.70
8.0.140.0060.00316.73
8.0.130.0000.00613.20
8.0.120.0020.00516.77
8.0.110.0000.00716.54
8.0.100.0040.00416.65
8.0.90.0080.00016.75
8.0.80.0150.00016.71
8.0.70.0030.00516.82
8.0.60.0000.00716.71
8.0.50.0040.00416.77
8.0.30.0120.00616.88
8.0.20.0150.00317.07
8.0.10.0040.00416.86
8.0.00.0090.01216.51
7.4.330.0000.00514.56
7.4.320.0030.00316.47
7.4.300.0070.00016.36
7.4.290.0040.00416.36
7.4.280.0060.00316.35
7.4.270.0070.00016.38
7.4.260.0000.00613.12
7.4.250.0050.00316.48
7.4.240.0040.00416.28
7.4.230.0030.00316.21
7.4.220.0140.01416.31
7.4.210.0070.01016.53
7.4.200.0030.00316.55
7.4.190.0030.00316.55
7.4.160.0100.01016.36
7.4.150.0030.01417.07
7.4.140.0120.00517.13
7.4.130.0110.00616.25
7.4.120.0060.01116.43
7.4.110.0060.01616.20
7.4.100.0120.00816.29
7.4.90.0090.00916.37
7.4.80.0060.01018.80
7.4.70.0080.01016.33
7.4.60.0090.01016.21
7.4.50.0030.00416.39
7.4.40.0030.01622.27
7.4.30.0100.00716.60
7.4.00.0070.01014.75
7.3.330.0000.00613.02
7.3.320.0050.00012.92
7.3.310.0050.00216.14
7.3.300.0000.00716.14
7.3.290.0120.00816.18
7.3.280.0050.01116.17
7.3.270.0130.00317.07
7.3.260.0130.00718.24
7.3.250.0080.01216.44
7.3.240.0100.01016.30
7.3.230.0140.00316.41
7.3.210.0030.01316.18
7.3.200.0070.01319.39
7.3.190.0070.01416.19
7.3.180.0120.00316.13
7.3.170.0080.00816.29
7.3.160.0040.01216.25
7.3.120.0120.00314.61
7.2.330.0070.01016.48
7.2.320.0090.01316.49
7.2.310.0030.01716.35
7.2.300.0040.01216.54
7.2.290.0100.00716.47
7.2.60.0040.00716.48
7.2.50.0160.00816.38
7.1.200.0110.00415.39
7.1.70.0030.00616.94
7.1.60.0140.01119.40
7.1.50.0140.01016.54
7.1.00.0000.07022.51
7.0.200.0000.00716.69
7.0.140.0070.07021.94
7.0.60.0070.07719.90
7.0.50.0030.08317.84
7.0.40.0030.08317.72
7.0.30.0030.04717.71
7.0.20.0030.08717.71
7.0.10.0000.06317.85
7.0.00.0100.06717.74
5.6.280.0030.07021.14
5.6.210.0130.07320.50
5.6.200.0070.08318.15
5.6.190.0030.04318.14
5.6.180.0030.05018.18
5.6.170.0070.04318.17
5.6.160.0130.04718.25
5.6.150.0030.04018.18
5.6.140.0070.08018.15
5.6.130.0130.08018.28
5.6.120.0030.08318.24
5.6.110.0130.07718.28
5.6.100.0100.07018.26
5.6.90.0070.08018.16
5.6.80.0030.07317.68
5.6.70.0070.05317.54
5.6.60.0000.08317.55
5.6.50.0100.07317.56
5.6.40.0030.04317.51
5.6.30.0030.05017.54
5.6.20.0030.08017.54
5.6.10.0000.08717.51
5.6.00.0000.05317.63
5.5.350.0300.08020.41
5.5.340.0030.04718.09
5.5.330.0030.08018.00
5.5.320.0030.05017.94
5.5.310.0070.05717.91
5.5.300.0070.08318.08
5.5.290.0070.08017.99
5.5.280.0270.04317.99
5.5.270.0100.04717.91
5.5.260.0100.03718.02
5.5.250.0100.07717.79
5.5.240.0030.08317.37
5.5.230.0070.07717.34
5.5.220.0070.07317.36
5.5.210.0030.06017.36
5.5.200.0070.05317.42
5.5.190.0030.08017.42
5.5.180.0100.04017.38
5.5.160.0070.08317.36
5.5.150.0070.03717.30
5.5.140.0000.04717.43
5.5.130.0100.07317.41
5.5.120.0070.07717.36
5.5.110.0070.07717.29
5.5.100.0030.08017.26
5.5.90.0170.06717.17
5.5.80.0170.06017.33
5.5.70.0030.08017.25
5.5.60.0070.04017.22
5.5.50.0030.04317.23
5.5.40.0100.06717.18
5.5.30.0100.07317.31
5.5.20.0000.08017.21
5.5.10.0100.07017.21
5.5.00.0070.04717.19
5.4.450.0230.03719.22
5.4.440.0130.06319.38
5.4.430.0100.07019.23
5.4.420.0000.04319.43
5.4.410.0000.07719.32
5.4.400.0000.07719.02
5.4.390.0000.06019.05
5.4.380.0070.07719.26
5.4.370.0130.07019.14
5.4.360.0070.07319.05
5.4.350.0030.08019.04
5.4.340.0070.07719.13
5.4.320.0000.07719.09
5.4.310.0100.04718.95
5.4.300.0070.03719.02
5.4.290.0030.06019.03
5.4.280.0070.07718.88
5.4.270.0100.07019.04
5.4.260.0070.07018.95
5.4.250.0070.04719.05
5.4.240.0030.04718.97
5.4.230.0130.03018.88
5.4.220.0030.07719.09
5.4.210.0070.04719.07
5.4.200.0100.07319.09
5.4.190.0130.07319.03
5.4.180.0070.06319.03
5.4.170.0030.07019.04
5.4.160.0030.05319.30
5.4.150.0130.07018.99
5.4.140.0130.03016.39
5.4.130.0030.05716.57
5.4.120.0000.07316.51
5.4.110.0070.07316.45
5.4.100.0130.06716.40
5.4.90.0000.07016.48
5.4.80.0100.07016.39
5.4.70.0030.05316.41
5.4.60.0070.06316.46
5.4.50.0130.04016.20
5.4.40.0030.07716.62
5.4.30.0030.04016.44
5.4.20.0100.05016.55
5.4.10.0030.07716.39
5.4.00.0070.07015.81
5.3.290.0030.08014.73
5.3.280.0030.06014.65
5.3.270.0030.06714.64
5.3.260.0000.06714.70
5.3.250.0070.04014.62
5.3.240.0070.05014.56
5.3.230.0070.07714.63
5.3.220.0130.04014.66
5.3.210.0000.07014.61
5.3.200.0070.06014.66
5.3.190.0030.06014.64
5.3.180.0030.08014.60
5.3.170.0070.04714.41
5.3.160.0030.06314.60
5.3.150.0100.05314.60
5.3.140.0000.04714.56
5.3.130.0030.04014.54
5.3.120.0030.07714.58
5.3.110.0030.07014.52
5.3.100.0030.06314.07
5.3.90.0070.04313.96
5.3.80.0070.04314.04
5.3.70.0200.05713.86
5.3.60.0000.07714.02
5.3.50.0070.07314.15
5.3.40.0100.07313.98
5.3.30.0000.07713.94
5.3.20.0030.04713.68
5.3.10.0100.07013.65
5.3.00.0000.07313.48

preferences:
41.04 ms | 401 KiB | 5 Q