3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { const A = 500; const B = 5E2; const C = 200 + 300; } var_dump(gettype(MyClass::A)); var_dump(gettype(MyClass::B)); var_dump(gettype(MyClass::C));

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.01418.56
8.3.50.0030.01018.32
8.3.40.0060.00918.80
8.3.30.0070.00718.40
8.3.20.0070.00020.07
8.3.10.0000.00823.71
8.3.00.0050.00319.00
8.2.180.0040.01118.16
8.2.170.0070.01422.96
8.2.160.0070.00720.33
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00720.47
8.2.120.0070.00026.35
8.2.110.0030.00622.12
8.2.100.0070.00417.80
8.2.90.0050.00319.09
8.2.80.0000.00817.97
8.2.70.0080.00017.38
8.2.60.0060.00317.80
8.2.50.0000.01018.10
8.2.40.0050.00320.42
8.2.30.0030.00619.03
8.2.20.0000.00717.53
8.2.10.0040.00417.83
8.2.00.0040.00417.88
8.1.280.0130.00325.92
8.1.270.0000.00724.66
8.1.260.0070.00028.09
8.1.250.0030.00528.09
8.1.240.0070.00419.14
8.1.230.0080.00317.70
8.1.220.0000.00817.74
8.1.210.0030.00918.77
8.1.200.0000.00916.88
8.1.190.0000.00916.98
8.1.180.0040.00418.10
8.1.170.0050.00318.38
8.1.160.0000.00718.90
8.1.150.0030.00318.68
8.1.140.0090.00019.43
8.1.130.0030.00317.57
8.1.120.0000.00717.23
8.1.110.0000.00717.35
8.1.100.0050.00317.37
8.1.90.0050.00317.22
8.1.80.0050.00217.29
8.1.70.0040.00417.24
8.1.60.0000.00817.43
8.1.50.0080.00017.38
8.1.40.0030.00617.35
8.1.30.0030.00617.54
8.1.20.0060.00317.55
8.1.10.0080.00017.36
8.1.00.0000.00817.32
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0050.00318.32
8.0.270.0030.00516.71
8.0.260.0000.00717.15
8.0.250.0000.00716.80
8.0.240.0030.00516.85
8.0.230.0050.00216.87
8.0.220.0000.00716.80
8.0.210.0040.00416.83
8.0.200.0030.00316.74
8.0.190.0070.00416.91
8.0.180.0040.00416.72
8.0.170.0070.00016.77
8.0.160.0000.00716.79
8.0.150.0000.00716.75
8.0.140.0050.00316.72
8.0.130.0030.00313.24
8.0.120.0000.00816.75
8.0.110.0000.00716.85
8.0.100.0090.00016.84
8.0.90.0040.00416.82
8.0.80.0040.01116.86
8.0.70.0050.00216.85
8.0.60.0000.00716.75
8.0.50.0040.00416.70
8.0.30.0110.00717.12
8.0.20.0090.01017.40
8.0.10.0030.00616.93
8.0.00.0070.01016.63
7.4.330.0000.00515.08
7.4.320.0060.00016.50
7.4.300.0050.00316.37
7.4.290.0050.00216.38
7.4.280.0040.00416.48
7.4.270.0000.00716.27
7.4.260.0030.00316.39
7.4.250.0040.00416.34
7.4.240.0050.00316.42
7.4.230.0030.00316.48
7.4.220.0090.01216.48
7.4.210.0110.00416.46
7.4.200.0040.00416.33
7.4.160.0130.00816.28
7.4.150.0070.01017.40
7.4.140.0110.00617.86
7.4.130.0060.01216.28
7.4.120.0030.01716.34
7.4.110.0140.00416.42
7.4.100.0090.00916.31
7.4.90.0140.00716.36
7.4.80.0130.00619.39
7.4.70.0120.00416.36
7.4.60.0060.01016.23
7.4.50.0120.00316.27
7.4.40.0060.00916.05
7.4.30.0080.00816.41
7.4.00.0050.01114.75
7.3.330.0000.00613.19
7.3.320.0030.00313.00
7.3.310.0000.00716.22
7.3.300.0040.00416.25
7.3.290.0070.00916.11
7.3.280.0080.01016.14
7.3.270.0070.01017.40
7.3.260.0070.01016.25
7.3.250.0090.00816.26
7.3.240.0090.00716.25
7.3.230.0090.00916.39
7.3.210.0070.01116.20
7.3.200.0090.00616.08
7.3.190.0110.00616.30
7.3.180.0060.00916.42
7.3.170.0060.01016.24
7.3.160.0080.01116.17
7.3.120.0120.00714.69
7.3.110.0050.00914.66
7.3.100.0080.00614.67
7.3.90.0040.00914.80
7.3.80.0050.01014.51
7.3.70.0070.00514.54
7.3.60.0050.01014.72
7.3.50.0080.00514.69
7.3.40.0020.01014.60
7.3.30.0090.00414.57
7.3.20.0100.00516.61
7.3.10.0070.00616.53
7.3.00.0080.00616.47
7.2.330.0030.01416.27
7.2.320.0130.00316.55
7.2.310.0030.01416.50
7.2.300.0110.00716.48
7.2.290.0110.00716.33
7.2.250.0070.01014.76
7.2.240.0070.00814.88
7.2.230.0080.01014.93
7.2.220.0040.01114.70
7.2.210.0070.00915.01
7.2.200.0030.01014.86
7.2.190.0080.00715.00
7.2.180.0050.01014.80
7.2.170.0060.00914.83
7.2.160.0060.00914.79
7.2.150.0040.00816.72
7.2.140.0100.00716.82
7.2.130.0030.01016.67
7.2.120.0100.00716.84
7.2.110.0070.00716.70
7.2.100.0050.01216.60
7.2.90.0040.01516.69
7.2.80.0030.01216.91
7.2.70.0090.00616.61
7.2.60.0060.00816.67
7.2.50.0000.01516.65
7.2.40.0040.00816.68
7.2.30.0000.00916.88
7.2.20.0070.01016.68
7.2.10.0050.00516.75
7.2.00.0050.01218.04
7.1.330.0050.01015.55
7.1.320.0060.00615.66
7.1.310.0060.00815.54
7.1.300.0050.00815.76
7.1.290.0110.00315.59
7.1.280.0080.00515.72
7.1.270.0110.00115.56
7.1.260.0050.00815.55
7.1.250.0090.00615.54
7.1.200.0060.00315.70
7.1.70.0030.01017.00
7.1.60.0000.01119.87
7.1.00.0000.08022.37
7.0.200.0720.00714.71
7.0.80.0600.05319.96
7.0.70.0730.06319.99
7.0.60.0670.05319.98
7.0.50.0670.06020.36
7.0.40.0770.05720.23
7.0.30.0730.06020.20
7.0.20.0630.06320.31
7.0.10.0670.05720.30
7.0.00.0770.06320.34
5.6.280.0100.06320.89
5.6.220.0570.06020.57
5.6.210.0600.05320.71
5.6.200.0730.04321.13
5.6.190.0700.06321.03
5.6.180.0630.05721.14
5.6.170.0600.06021.00
5.6.160.0630.05321.06
5.6.150.0530.06021.05
5.6.140.0630.05721.00
5.6.130.0630.05721.15
5.6.120.0130.06020.99
5.6.110.0470.07720.99
5.6.100.0570.06021.02
5.6.90.0570.06321.14
5.6.80.0570.05320.41
5.6.70.0500.06320.44
5.6.60.0570.05320.53
5.6.50.0570.06020.39
5.6.40.0600.05320.38
5.6.30.0570.05320.39
5.6.20.0400.07320.48
5.6.10.0530.07020.51
5.6.00.0800.04720.46
5.5.360.0530.06020.46
5.5.350.0630.05320.55
5.5.340.0630.05020.86
5.5.330.0630.06020.91
5.5.320.0670.05020.91
5.5.310.0600.06320.88
5.5.300.0530.07320.95
5.5.290.0670.05020.84
5.5.280.0200.05320.93
5.5.270.0800.07020.86
5.5.260.0530.06720.89
5.5.250.0600.06320.72
5.5.240.0630.05320.31
5.5.230.0630.05720.22
5.5.220.0500.06020.19
5.5.210.0570.05720.29
5.5.200.0570.05320.27
5.5.190.0600.07020.26
5.5.180.0770.06020.26
5.5.160.0500.06720.27
5.5.150.0630.05320.26
5.5.140.0730.04320.18
5.5.130.0570.05720.25
5.5.120.0570.06020.15
5.5.110.0630.05020.21
5.5.100.0830.06720.19
5.5.90.0700.06320.04
5.5.80.0600.05720.18
5.5.70.0600.05720.17
5.5.60.0730.04020.11
5.5.50.0600.06019.99
5.5.40.0600.05720.08
5.5.30.0930.06319.98
5.5.20.0630.06720.15
5.5.10.0630.06320.02
5.5.00.0630.05720.05

preferences:
59.04 ms | 401 KiB | 5 Q