3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { const AA = 0; const BB = 1; const st_AA = 'Aa'; const st_BB = 'Bb'; public static $state = array( self::AA => self::st_AA, self::BB => self::st_BB ); } var_dump( test::$state );

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.01416.38
8.3.50.0050.01017.24
8.3.40.0150.00018.58
8.3.30.0130.00718.58
8.3.20.0040.01418.52
8.3.10.0110.00720.58
8.3.00.0000.00819.38
8.2.180.0100.01018.16
8.2.170.0070.00722.96
8.2.160.0030.01020.47
8.2.150.0040.00424.18
8.2.140.0030.00724.66
8.2.130.0000.00826.16
8.2.120.0080.00417.35
8.2.110.0060.00320.53
8.2.100.0120.00017.77
8.2.90.0060.00319.03
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0000.00717.86
8.2.20.0000.00717.52
8.2.10.0050.00217.66
8.2.00.0040.00717.47
8.1.280.0130.00725.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00622.24
8.1.230.0040.00717.42
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0000.00917.13
8.1.190.0060.00317.41
8.1.180.0030.00518.10
8.1.170.0040.00418.83
8.1.160.0030.00518.72
8.1.150.0050.00318.43
8.1.140.0000.00717.25
8.1.130.0000.00717.67
8.1.120.0040.00417.32
8.1.110.0030.00517.35
8.1.100.0000.00717.33
8.1.90.0000.00717.25
8.1.80.0040.00417.35
8.1.70.0030.00317.21
8.1.60.0040.00417.47
8.1.50.0040.00417.36
8.1.40.0030.00517.38
8.1.30.0040.00417.54
8.1.20.0060.00317.43
8.1.10.0040.00417.39
8.1.00.0070.00017.22
8.0.300.0030.00618.77
8.0.290.0020.00516.58
8.0.280.0000.00718.36
8.0.270.0040.00416.64
8.0.260.0040.00416.72
8.0.250.0000.00716.67
8.0.240.0070.00016.71
8.0.230.0000.00716.80
8.0.220.0070.00016.71
8.0.210.0000.00716.64
8.0.200.0040.00416.86
8.0.190.0040.00416.73
8.0.180.0000.00716.78
8.0.170.0000.00916.73
8.0.160.0000.00716.66
8.0.150.0100.00016.70
8.0.140.0040.00416.57
8.0.130.0030.00313.22
8.0.120.0040.00416.60
8.0.110.0000.00716.54
8.0.100.0080.00016.77
8.0.90.0040.00416.64
8.0.80.0090.00616.71
8.0.70.0000.00816.75
8.0.60.0020.00516.70
8.0.50.0030.00516.77
8.0.30.0080.01016.86
8.0.20.0120.00616.78
8.0.10.0070.00016.93
8.0.00.0110.00816.50
7.4.330.0060.00012.88
7.4.320.0060.00016.44
7.4.300.0070.00016.35
7.4.290.0000.00716.46
7.4.280.0030.00516.36
7.4.270.0070.00016.30
7.4.260.0030.00313.15
7.4.250.0030.00516.43
7.4.240.0040.00416.45
7.4.230.0040.00416.46
7.4.220.0070.01016.24
7.4.210.0080.00816.39
7.4.200.0000.00716.46
7.4.190.0040.00416.45
7.4.160.0090.00616.17
7.4.150.0170.00716.39
7.4.140.0080.01416.32
7.4.130.0080.01116.33
7.4.120.0100.00916.42
7.4.110.0030.01316.64
7.4.100.0160.00016.45
7.4.90.0130.00916.44
7.4.80.0120.00819.39
7.4.70.0140.00716.46
7.4.60.0130.00316.20
7.4.50.0000.00716.09
7.4.40.0030.00716.25
7.4.30.0090.00816.49
7.4.00.0120.00314.76
7.3.330.0060.00013.18
7.3.320.0000.00513.20
7.3.310.0030.00316.04
7.3.300.0040.00416.10
7.3.290.0080.00816.21
7.3.280.0110.00716.22
7.3.270.0090.00916.23
7.3.260.0060.01216.35
7.3.250.0150.00616.49
7.3.240.0090.00616.42
7.3.230.0070.01016.14
7.3.210.0120.00616.34
7.3.200.0120.01016.38
7.3.190.0130.00916.24
7.3.180.0090.01216.29
7.3.170.0120.00516.38
7.3.160.0180.00616.29
7.3.120.0000.01514.57
7.3.10.0130.00316.17
7.3.00.0100.01016.23
7.2.330.0080.01416.21
7.2.320.0130.00416.56
7.2.310.0120.01016.23
7.2.300.0060.01016.39
7.2.290.0110.00616.33
7.2.130.0030.01016.68
7.2.120.0090.00916.52
7.2.110.0110.00716.61
7.2.100.0070.01016.39
7.2.90.0040.00916.14
7.2.80.0110.00316.38
7.2.70.0140.00816.60
7.2.60.0090.00916.30
7.2.50.0140.01116.34
7.2.40.0180.00416.28
7.2.30.0130.01016.82
7.2.20.0150.00516.49
7.2.10.0170.00616.81
7.2.00.0060.01117.88
7.1.250.0120.00015.43
7.1.100.0810.00415.96
7.1.70.0100.00016.82
7.1.60.0140.01019.40
7.1.50.0200.00316.80
7.1.00.0000.05322.45
7.0.200.0100.00314.84
7.0.140.0030.07322.08
7.0.120.0030.06722.05
7.0.60.0030.06719.91
7.0.50.0030.07017.83
7.0.40.0030.04720.35
7.0.30.0500.06020.11
7.0.20.0330.04320.04
7.0.10.0000.08320.07
7.0.00.0170.07720.07
5.6.280.0070.07020.77
5.6.210.0070.08320.44
5.6.200.0100.07718.18
5.6.190.0030.05320.65
5.6.180.0330.07720.78
5.6.170.0330.08020.45
5.6.160.0070.08320.54
5.6.150.0100.08018.25
5.6.140.0100.05718.16
5.6.130.0070.06718.15
5.6.120.0130.07721.12
5.6.110.0070.04021.09
5.6.100.0100.03321.11
5.6.90.0070.07321.13
5.6.80.0100.08020.50
5.6.70.4400.04320.36
5.5.350.0270.07720.29
5.5.340.0170.05017.95
5.5.330.0070.07720.27
5.5.320.0330.07320.38
5.5.310.0370.07720.41
5.5.300.0030.04018.03
5.5.290.0100.07717.97
5.5.280.0000.05320.80
5.5.270.0130.07720.76
5.5.260.0200.06720.79
5.5.250.0000.07320.69
5.5.240.0230.04320.34
5.4.450.0070.05019.57
5.4.440.0030.04719.33
5.4.430.0030.08319.28
5.4.420.0200.06719.44
5.4.410.0070.07719.43
5.4.400.0070.03719.16
5.4.390.0070.07319.12
5.4.380.0030.05019.25
5.4.370.0100.04719.15
5.4.360.0030.08319.14
5.4.350.0030.07319.16
5.4.340.0130.07718.88
5.4.320.0070.06319.24
5.4.310.0030.04019.08
5.4.300.0130.06718.85
5.4.290.0070.06318.88
5.4.280.0000.04319.14
5.4.270.0170.06318.86
5.4.260.0000.07019.00
5.4.250.0100.06318.92
5.4.240.0100.04319.00
5.4.230.0200.06319.16
5.4.220.0070.05719.15
5.4.210.0170.06719.11
5.4.200.0030.07318.98
5.4.190.0000.04018.91
5.4.180.0070.08019.13
5.4.170.0170.06319.07
5.4.160.0030.05319.13
5.4.150.0030.08318.83
5.4.140.0000.08316.41
5.4.130.0070.07016.36
5.4.120.0100.06316.29
5.4.110.0100.07016.50
5.4.100.0070.07016.34
5.4.90.0070.07016.46
5.4.80.0130.05316.34
5.4.70.0070.06316.63
5.4.60.0030.05316.31
5.4.50.0030.06016.35
5.4.40.0070.03716.36
5.4.30.0130.04016.43
5.4.20.0070.07316.38
5.4.10.0070.07316.26
5.4.00.0030.04715.84
5.3.290.0030.04314.59
5.3.280.0100.04014.59
5.3.270.0000.06314.60
5.3.260.0100.07714.59
5.3.250.0030.05714.61
5.3.240.0070.04714.48
5.3.230.0070.07714.60
5.3.220.0130.07014.55
5.3.210.0130.06314.48
5.3.200.0130.06714.59
5.3.190.0070.04014.55
5.3.180.0030.06014.61
5.3.170.0000.06314.63
5.3.160.0100.07314.58
5.3.150.0000.04314.58
5.3.140.0030.03714.70
5.3.130.0070.07014.54
5.3.120.0070.07014.53
5.3.110.0070.04714.54
5.3.100.0030.07014.08
5.3.90.0100.06314.06
5.3.80.0030.07714.07
5.3.70.0170.07014.16
5.3.60.0030.07714.02
5.3.50.0130.04713.94
5.3.40.0130.07013.83
5.3.30.0030.05313.94
5.3.20.0070.04713.83
5.3.10.0100.06713.54
5.3.00.0070.07313.64
5.2.170.0030.04011.16
5.2.160.0030.03011.20
5.2.150.0030.06011.09
5.2.140.0030.05711.18
5.2.130.0070.03011.17
5.2.120.0030.06311.09
5.2.110.0070.04011.02
5.2.100.0100.04711.06
5.2.90.0100.03011.07
5.2.80.0030.05711.05
5.2.70.0030.03711.06
5.2.60.0100.04711.20
5.2.50.0070.04011.16
5.2.40.0100.05711.04
5.2.30.0030.06710.96
5.2.20.0070.06010.98
5.2.10.0030.03710.86
5.2.00.0030.06310.74
5.1.60.0030.0539.98
5.1.50.0030.03710.05
5.1.40.0100.05010.04
5.1.30.0000.03710.32
5.1.20.0100.05310.52
5.1.10.0100.04710.04
5.1.00.0070.0409.96
5.0.50.0030.0478.57
5.0.40.0070.0438.37
5.0.30.0000.0538.37
5.0.20.0030.0378.23
5.0.10.0000.0378.21
5.0.00.0070.0538.12
4.4.90.0000.0337.82
4.4.80.0070.0277.82
4.4.70.0070.0277.82
4.4.60.0030.0337.82
4.4.50.0000.0307.82
4.4.40.0000.0477.82
4.4.30.0070.0307.82
4.4.20.0000.0407.82
4.4.10.0030.0237.82
4.4.00.0030.0337.82
4.3.110.0070.0307.82
4.3.100.0030.0337.82
4.3.90.0000.0377.82
4.3.80.0030.0337.82
4.3.70.0000.0337.82
4.3.60.0030.0337.82
4.3.50.0000.0277.82
4.3.40.0070.0377.82
4.3.30.0030.0377.82
4.3.20.0000.0307.82
4.3.10.0070.0307.82
4.3.00.0000.0277.82

preferences:
35.78 ms | 401 KiB | 5 Q