3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { const CONST_VALUE = 'A constant value'; } $classname = 'MyClass'; echo $classname::CONST_VALUE; // As of PHP 5.3.0 echo MyClass::CONST_VALUE; ?>

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.0100.00716.63
8.3.60.0000.01516.13
8.3.50.0070.00721.90
8.3.40.0120.00618.86
8.3.30.0100.00319.00
8.3.20.0000.00720.35
8.3.10.0040.00423.47
8.3.00.0070.01319.06
8.2.180.0110.00418.29
8.2.170.0100.01022.96
8.2.160.0100.00320.47
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0000.00719.18
8.2.110.0110.00021.06
8.2.100.0090.00319.64
8.2.90.0000.00819.03
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0060.00317.80
8.2.50.0060.00318.07
8.2.40.0030.00619.97
8.2.30.0070.00018.37
8.2.20.0040.00417.73
8.2.10.0000.00718.10
8.2.00.0030.00617.73
8.1.280.0160.00325.92
8.1.270.0040.00423.88
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00617.23
8.1.230.0040.00717.83
8.1.220.0050.00517.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0000.00817.13
8.1.180.0030.00618.10
8.1.170.0050.00318.64
8.1.160.0050.00321.91
8.1.150.0040.00418.57
8.1.140.0040.00417.35
8.1.130.0070.00017.73
8.1.120.0000.00717.49
8.1.110.0000.00717.37
8.1.100.0030.00317.39
8.1.90.0000.00817.34
8.1.80.0070.00017.35
8.1.70.0040.00417.41
8.1.60.0040.00417.48
8.1.50.0040.00417.36
8.1.40.0040.00417.48
8.1.30.0050.00317.57
8.1.20.0030.00617.55
8.1.10.0000.00717.54
8.1.00.0030.00517.52
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0080.00018.30
8.0.270.0030.00317.35
8.0.260.0030.00317.12
8.0.250.0000.00716.85
8.0.240.0000.00716.93
8.0.230.0000.00716.84
8.0.220.0060.00016.75
8.0.210.0050.00216.88
8.0.200.0000.00616.91
8.0.190.0040.00416.84
8.0.180.0040.00416.90
8.0.170.0000.00816.93
8.0.160.0000.00716.80
8.0.150.0070.00016.77
8.0.140.0020.00516.73
8.0.130.0000.00813.24
8.0.120.0050.00216.86
8.0.110.0040.00416.79
8.0.100.0050.00316.93
8.0.90.0000.00716.74
8.0.80.0090.01216.87
8.0.70.0040.00416.99
8.0.60.0070.00016.85
8.0.50.0040.00416.75
8.0.30.0120.01017.04
8.0.20.0110.00817.40
8.0.10.0000.00716.93
8.0.00.0090.00816.85
7.4.330.0080.00015.00
7.4.320.0000.00616.59
7.4.300.0060.00016.57
7.4.290.0030.00316.50
7.4.280.0000.00716.48
7.4.270.0030.00316.61
7.4.260.0000.00716.57
7.4.250.0040.00416.57
7.4.240.0010.00616.56
7.4.230.0030.00316.52
7.4.220.0090.00916.59
7.4.210.0100.00716.56
7.4.200.0000.00716.25
7.4.190.0000.00716.76
7.4.160.0170.00016.34
7.4.150.0160.00317.40
7.4.140.0140.01117.86
7.4.130.0090.00816.54
7.4.120.0120.00416.44
7.4.110.0070.01016.46
7.4.100.0100.01316.48
7.4.90.0090.00916.45
7.4.80.0100.01619.39
7.4.70.0080.00816.57
7.4.60.0100.01016.48
7.4.50.0030.00516.33
7.4.40.0060.01016.54
7.4.30.0130.01016.50
7.4.00.0060.00914.70
7.3.330.0050.00013.08
7.3.320.0050.00013.21
7.3.310.0070.00016.32
7.3.300.0030.00316.31
7.3.290.0120.00316.30
7.3.280.0110.00716.33
7.3.270.0110.00817.40
7.3.260.0060.01216.30
7.3.250.0070.01516.32
7.3.240.0100.01016.21
7.3.230.0110.00616.52
7.3.210.0030.01316.34
7.3.200.0120.01119.39
7.3.190.0080.00916.61
7.3.180.0030.01316.38
7.3.170.0090.00916.27
7.3.160.0100.01016.26
7.3.120.0100.00314.77
7.3.10.0190.00916.29
7.3.00.0100.01016.30
7.2.330.0100.00716.71
7.2.320.0040.01516.47
7.2.310.0120.00616.72
7.2.300.0060.01616.48
7.2.290.0090.00916.45
7.2.130.0160.01216.53
7.2.120.0160.01116.76
7.2.110.0150.01016.32
7.2.100.0140.00816.61
7.2.90.0280.00716.62
7.2.80.0200.01216.87
7.2.70.0270.01017.03
7.2.60.0300.00617.01
7.2.50.0230.01016.67
7.2.40.0260.00916.88
7.2.30.0250.00716.50
7.2.20.0220.00816.64
7.2.10.0240.01016.87
7.2.00.0070.00717.94
7.1.250.0170.01015.25
7.1.240.0140.00715.59
7.1.230.0220.00315.65
7.1.220.0190.00315.34
7.1.210.0160.00815.04
7.1.200.0180.00615.53
7.1.190.0160.01215.55
7.1.180.0250.00615.84
7.1.170.0170.01415.87
7.1.160.0060.02015.63
7.1.150.0180.00915.67
7.1.140.0170.00815.57
7.1.130.0130.01115.67
7.1.120.0260.00015.61
7.1.110.0220.00215.67
7.1.100.0110.00916.81
7.1.90.0160.00615.81
7.1.80.0100.00515.35
7.1.70.0100.00316.25
7.1.60.0110.00817.48
7.1.50.0140.00316.25
7.1.40.0060.00915.51
7.1.30.0070.00715.32
7.1.20.0120.00615.56
7.1.10.0070.00715.67
7.1.00.0060.04218.90
7.0.330.0140.01114.79
7.0.320.0110.00715.43
7.0.310.0150.00315.23
7.0.300.0150.00415.20
7.0.290.0080.00815.08
7.0.280.0120.00615.22
7.0.270.0140.00015.25
7.0.260.0110.00815.39
7.0.250.0080.00815.36
7.0.240.0140.00415.21
7.0.230.0150.00315.20
7.0.220.0090.00915.31
7.0.210.0110.00415.30
7.0.200.0080.00415.77
7.0.190.0090.00615.18
7.0.180.0040.01115.46
7.0.170.0040.01115.26
7.0.160.0060.00915.26
7.0.150.0070.00715.05
7.0.140.0060.04018.66
7.0.130.0080.00815.54
7.0.120.0070.03518.47
7.0.110.0050.03718.63
7.0.100.0070.03718.52
7.0.90.0060.03718.58
7.0.80.0090.04218.62
7.0.70.0140.01818.63
7.0.60.0090.03918.65
7.0.50.0060.04218.58
7.0.40.0080.03316.52
7.0.30.0030.04216.60
7.0.20.0030.04516.65
7.0.10.0030.04216.70
7.0.00.0100.03816.64
5.6.380.0080.01213.89
5.6.370.0070.00714.38
5.6.360.0070.00714.02
5.6.350.0070.00714.11
5.6.340.0080.00814.27
5.6.330.0070.00714.03
5.6.320.0070.01014.32
5.6.310.0070.00714.16
5.6.300.0030.01414.21
5.6.290.0000.00814.18
5.6.280.0040.04217.43
5.6.270.0090.03817.42
5.6.260.0070.04317.71
5.6.250.0070.04017.56
5.6.240.0020.02917.66
5.6.230.0020.02517.61
5.6.220.0030.04217.53
5.6.210.0040.04017.55
5.6.200.0030.04317.66
5.6.190.0020.03717.54
5.6.180.0060.03717.60
5.6.170.0070.03817.52
5.6.160.0020.04517.48
5.6.150.0040.02017.57
5.6.140.0050.03917.63
5.6.130.0000.04217.55
5.6.120.0080.02017.58
5.6.110.0070.02817.61
5.6.100.0030.04917.50
5.6.90.0020.02517.55
5.6.80.0020.03716.93
5.6.70.0050.04217.06
5.6.60.0080.02017.15
5.6.50.0050.03617.36
5.6.40.0060.01817.34
5.6.30.0070.01817.16
5.6.20.0020.04417.14
5.6.10.0020.02617.18
5.6.00.0060.03717.09
5.5.380.0060.02114.34
5.5.370.0070.03814.41
5.5.360.0040.02314.33
5.5.350.0030.04214.30
5.5.340.0010.04914.44
5.5.330.0060.03814.35
5.5.320.0020.02214.69
5.5.310.0060.01814.49
5.5.300.0030.04114.71
5.5.290.0030.02014.49
5.5.280.0020.04514.57
5.5.270.0020.04514.46
5.5.260.0000.04414.49
5.5.250.0050.04014.49
5.5.240.0000.03714.33
5.5.230.0050.02113.96
5.5.220.0050.03213.96
5.5.210.0010.03814.27
5.5.200.0000.04114.00
5.5.190.0040.02514.29
5.5.180.0000.02114.20
5.5.170.0080.00310.84
5.5.160.0020.03514.10
5.5.150.0030.04114.20
5.5.140.0050.04014.29
5.5.130.0050.03514.20
5.5.120.0040.02414.18
5.5.110.0040.03814.18
5.5.100.0050.03214.15
5.5.90.0020.03514.16
5.5.80.0050.03714.10
5.5.70.0020.02614.13
5.5.60.0040.02114.29
5.5.50.0000.02414.17
5.5.40.0050.02114.09
5.5.30.0080.03614.25
5.5.20.0020.03814.26
5.5.10.0030.02114.08
5.5.00.0030.01813.93
5.4.450.0050.01915.30
5.4.440.0030.03215.14
5.4.430.0050.02015.16
5.4.420.0020.02114.99
5.4.410.0050.01815.16
5.4.400.0030.04014.89
5.4.390.0050.03214.88
5.4.380.0050.02214.93
5.4.370.0050.03714.84
5.4.360.0020.03214.84
5.4.350.0030.02014.81
5.4.340.0040.02014.77
5.4.330.0050.00010.99
5.4.320.0050.04215.04
5.4.310.0020.04414.99
5.4.300.0040.04114.84
5.4.290.0000.03914.93
5.4.280.0030.04114.82
5.4.270.0030.04015.02
5.4.260.0030.02514.96
5.4.250.0020.02214.96
5.4.240.0120.01314.85
5.4.230.0030.02014.95
5.4.220.0000.02415.04
5.4.210.0040.02714.91
5.4.200.0060.02015.00
5.4.190.0020.03514.88
5.4.180.0030.03414.93
5.4.170.0020.04415.03
5.4.160.0030.01814.82
5.4.150.0020.02114.92
5.4.140.0020.03713.52
5.4.130.0060.01813.65
5.4.120.0030.03313.59
5.4.110.0020.02413.63
5.4.100.0040.03713.57
5.4.90.0030.02713.53
5.4.80.0080.02813.77
5.4.70.0050.01713.75
5.4.60.0030.04013.76
5.4.50.0030.02213.64
5.4.40.0010.02013.73
5.4.30.0040.03013.67
5.4.20.0020.02013.60
5.4.10.0000.03013.56
5.4.00.0030.03713.41
5.3.290.0030.03712.59
5.3.280.0040.02512.59
5.3.270.0030.03812.48
5.3.260.0040.02312.38
5.3.250.0000.02512.38
5.3.240.0060.02812.45
5.3.230.0050.04012.45
5.3.220.0020.03712.54
5.3.210.0000.03012.43
5.3.200.0050.01612.52
5.3.190.0020.02412.46
5.3.180.0020.02012.40
5.3.170.0020.03212.36
5.3.160.0050.02012.54
5.3.150.0020.02012.51
5.3.140.0030.02512.59
5.3.130.0000.03112.45
5.3.120.0010.03112.46
5.3.110.0090.02012.48
5.3.100.0020.02412.14
5.3.90.0040.02112.22
5.3.80.0000.01912.21
5.3.70.0000.02412.16
5.3.60.0010.02112.14
5.3.50.0070.01812.16
5.3.40.0050.01912.08
5.3.30.0010.02112.15
5.3.20.0040.02112.04
5.3.10.0050.02111.86
5.3.00.0050.01511.92
5.2.170.0030.01310.21
5.2.160.0020.01610.26
5.2.150.0050.01310.23
5.2.140.0050.01210.23
5.2.130.0020.02010.16
5.2.120.0000.01810.06
5.2.110.0050.01510.12
5.2.100.0030.01310.06
5.2.90.0020.01810.04
5.2.80.0050.01310.16
5.2.70.0020.01810.00
5.2.60.0040.01510.15
5.2.50.0020.01710.08
5.2.40.0020.02510.17
5.2.30.0010.0239.95
5.2.20.0020.01510.04
5.2.10.0020.0169.87
5.2.00.0040.0139.94
5.1.60.0000.0169.34
5.1.50.0000.0159.34
5.1.40.0000.0159.34
5.1.30.0000.0189.44
5.1.20.0020.0159.45
5.1.10.0010.0149.34
5.1.00.0030.0159.34
5.0.50.0000.0109.34
5.0.40.0050.0109.34
5.0.30.0050.0129.34
5.0.20.0030.0109.34
5.0.10.0030.0089.34
5.0.00.0020.0189.34
4.4.90.0020.0139.34
4.4.80.0020.0139.34
4.4.70.0020.0089.34
4.4.60.0050.0059.34
4.4.50.0000.0119.34
4.4.40.0000.0159.34
4.4.30.0000.0109.34
4.4.20.0030.0089.34
4.4.10.0020.0089.34
4.4.00.0000.0159.34
4.3.110.0010.0089.34
4.3.100.0020.0079.34
4.3.90.0050.0079.34
4.3.80.0020.0139.34
4.3.70.0030.0109.34
4.3.60.0000.0139.34
4.3.50.0020.0089.34
4.3.40.0010.0139.34
4.3.30.0020.0109.34
4.3.20.0000.0119.34
4.3.10.0000.0119.34
4.3.00.0020.0099.34

preferences:
37.66 ms | 401 KiB | 5 Q