3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait ClosureInATrait { public static function getClosureInTrait() { return __CLASS__; } } class ClassConstantTest { use ClosureInATrait; } var_dump(ClassConstantTest::getClosureInClass());

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.01116.88
8.3.50.0110.00522.09
8.3.40.0110.00318.98
8.3.30.0150.00019.02
8.3.20.0000.00820.21
8.3.10.0000.00823.49
8.3.00.0040.00420.86
8.2.180.0070.00716.88
8.2.170.0140.00022.96
8.2.160.0110.00420.37
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00020.73
8.2.110.0090.00022.07
8.2.100.0040.00720.35
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0040.00417.92
8.2.50.0000.00918.07
8.2.40.0040.00420.03
8.2.30.0000.00818.26
8.2.20.0050.00217.81
8.2.10.0040.00418.14
8.2.00.0050.00317.68
8.1.280.0140.00025.92
8.1.270.0080.00023.86
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.13
8.1.230.0040.00819.01
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0030.00522.06
8.1.150.0060.00318.45
8.1.140.0000.00717.43
8.1.130.0030.00317.70
8.1.120.0070.00417.41
8.1.110.0000.00717.41
8.1.100.0040.00417.40
8.1.90.0070.00017.43
8.1.80.0080.00017.37
8.1.70.0000.00817.23
8.1.60.0040.00717.55
8.1.50.0080.00017.35
8.1.40.0000.00817.47
8.1.30.0040.00417.56
8.1.20.0040.00417.55
8.1.10.0040.00417.47
8.1.00.0000.00817.41
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0030.00317.14
8.0.260.0000.00617.20
8.0.250.0030.00317.04
8.0.240.0050.00217.05
8.0.230.0030.00316.93
8.0.220.0050.00217.03
8.0.210.0070.00016.95
8.0.200.0040.00417.06
8.0.190.0070.00017.00
8.0.180.0000.00716.98
8.0.170.0070.00017.02
8.0.160.0000.00717.07
8.0.150.0030.00316.98
8.0.140.0040.00416.80
8.0.130.0050.00013.38
8.0.120.0030.00516.96
8.0.110.0040.00416.86
8.0.100.0040.00416.78
8.0.90.0000.00717.02
8.0.80.0090.00616.88
8.0.70.0000.00716.79
8.0.60.0040.00416.84
8.0.50.0040.00416.95
8.0.30.0110.00916.98
8.0.20.0150.00417.40
8.0.10.0040.00416.81
8.0.00.0130.00616.73
7.4.330.0050.00015.00
7.4.320.0030.00316.38
7.4.300.0030.00316.42
7.4.290.0070.00016.42
7.4.280.0040.00316.35
7.4.270.0030.00316.55
7.4.260.0000.00716.44
7.4.250.0050.00316.54
7.4.240.0040.00316.49
7.4.230.0060.00016.54
7.4.220.0330.00616.50
7.4.210.0060.00816.44
7.4.200.0000.00716.64
7.4.190.0000.00816.59
7.4.160.0140.00716.47
7.4.150.0060.01217.40
7.4.140.0080.01217.86
7.4.130.0080.01116.54
7.4.120.0080.01116.53
7.4.110.0130.00716.54
7.4.100.0120.00816.34
7.4.90.0140.00316.70
7.4.80.0160.00319.39
7.4.70.0120.00416.46
7.4.60.0040.01416.52
7.4.50.0040.00416.35
7.4.40.0160.00016.39
7.4.30.0080.00816.52
7.4.00.0030.01314.89
7.3.330.0040.00413.28
7.3.320.0030.00313.10
7.3.310.0000.00716.19
7.3.300.0030.00316.26
7.3.290.0120.00316.24
7.3.280.0090.00716.32
7.3.270.0100.00717.40
7.3.260.0090.00916.57
7.3.250.0110.00916.49
7.3.240.0130.00916.51
7.3.230.0060.01316.39
7.3.210.0130.00316.39
7.3.200.0070.01119.39
7.3.190.0100.01016.57
7.3.180.0070.01016.32
7.3.170.0100.00716.34
7.3.160.0060.00916.50
7.3.120.0070.00714.91
7.3.110.0060.00614.76
7.3.100.0000.01314.58
7.3.90.0000.01314.77
7.3.80.0070.00714.85
7.3.70.0060.00314.76
7.3.60.0030.00914.51
7.3.50.0100.00314.74
7.3.40.0060.00614.77
7.3.30.0070.00714.75
7.3.20.0000.00916.34
7.3.10.0000.01316.62
7.3.00.0060.00316.53
7.2.330.0060.01116.22
7.2.320.0070.01016.30
7.2.310.0070.01016.57
7.2.300.0060.01016.61
7.2.290.0080.01116.39
7.2.240.0090.00614.47
7.2.230.0030.00615.04
7.2.220.0120.00314.82
7.2.210.0100.00314.82
7.2.200.0030.01014.86
7.2.190.0080.00414.55
7.2.180.0070.00714.53
7.2.170.0030.01314.81
7.2.160.0060.00914.96
7.2.150.0060.01216.88
7.2.140.0040.00716.88
7.2.130.0030.00616.84
7.2.120.0070.00716.38
7.2.110.0060.00916.52
7.2.100.0140.00316.71
7.2.90.0140.00016.77
7.2.80.0040.00816.71
7.2.70.0030.00616.70
7.2.60.0030.00816.90
7.2.50.0030.01016.69
7.2.40.0060.00616.78
7.2.30.0040.00716.53
7.2.20.0120.00316.79
7.2.10.0040.00716.80
7.2.00.0020.01217.96
7.1.330.0090.00315.86
7.1.320.0030.01015.35
7.1.310.0000.01415.54
7.1.300.0030.00915.66
7.1.290.0030.01015.51
7.1.280.0000.00915.47
7.1.270.0060.00615.27
7.1.260.0040.00815.70
7.1.250.0040.01115.61
7.1.200.0030.00715.59
7.1.100.0040.01117.95
7.1.70.0030.01317.21
7.1.60.0070.01819.70
7.1.50.0080.00416.77
7.1.00.0030.07722.44
7.0.200.0070.00016.82
7.0.140.0070.08021.97
7.0.60.0200.03721.80
7.0.50.0070.06017.87
7.0.40.0100.04020.05
7.0.30.0030.05320.07
7.0.20.0200.05720.09
7.0.10.0200.07320.10
7.0.00.0030.06020.32
5.6.280.0000.07720.82
5.6.210.0130.07320.56
5.6.200.0100.05718.25
5.6.190.0030.09720.61
5.6.180.3600.03720.61
5.6.170.0330.05020.42
5.6.160.0170.07320.50
5.6.150.0030.04318.18
5.6.140.0070.03718.19
5.6.130.0070.06018.17
5.6.120.0070.03721.02
5.6.110.0100.07721.14
5.6.100.0030.07321.04
5.6.90.0070.08021.06
5.6.80.0100.03720.48
5.5.350.0070.07720.44
5.5.340.0100.07018.02
5.5.330.0100.07320.27
5.5.320.0270.04720.24
5.5.310.0430.06020.34
5.5.300.0070.05317.98
5.5.290.0100.08017.95
5.5.280.0070.07720.77
5.5.270.0070.08720.64
5.5.260.0100.08020.86
5.5.250.0200.07320.68
5.5.240.0270.06020.28
5.4.450.0170.04019.46
5.4.440.0230.04719.52
5.4.430.0270.03719.54
5.4.420.0270.03719.41
5.4.410.0270.04319.28
5.4.400.0100.06018.98
5.4.390.0230.03719.23
5.4.380.0100.06018.78
5.4.370.0030.06318.62
5.4.360.0130.05318.70
5.4.350.0100.06018.72
5.4.340.0270.06018.51
5.4.320.0040.04412.50
5.4.310.0070.05512.50
5.4.300.0050.05312.50
5.4.290.0080.05412.49
5.4.280.0060.05412.40
5.4.270.0060.05212.39
5.4.260.0060.05512.39
5.4.250.0050.05512.39
5.4.240.0080.05212.39
5.4.230.0060.05512.39
5.4.220.0100.05312.38
5.4.210.0150.04412.39
5.4.200.0070.05412.39
5.4.190.0070.05312.38
5.4.180.0060.03612.39
5.4.170.0050.04912.39
5.4.160.0090.04812.39
5.4.150.0040.04012.39
5.4.140.0060.04212.07
5.4.130.0090.03312.05
5.4.120.0090.03612.02
5.4.110.0090.03312.01
5.4.100.0110.03112.02
5.4.90.0090.04712.02
5.4.80.0100.04012.02
5.4.70.0090.04612.00
5.4.60.0080.03412.01
5.4.50.0060.03712.00
5.4.40.0060.04112.00
5.4.30.0070.04812.00
5.4.20.0030.04011.99
5.4.10.0080.03311.99
5.4.00.0050.03711.49
5.3.290.0080.05312.80
5.3.280.0090.03612.71
5.3.270.0060.03912.73
5.3.260.0100.03812.71
5.3.250.0090.03612.71
5.3.240.0060.03712.72
5.3.230.0050.03812.71
5.3.220.0050.03812.68
5.3.210.0050.03812.68
5.3.200.0060.03512.68
5.3.190.0040.03812.68
5.3.180.0050.03912.67
5.3.170.0110.04412.67
5.3.160.0070.03912.67
5.3.150.0090.03512.67
5.3.140.0050.03812.66
5.3.130.0030.04412.66
5.3.120.0050.04812.66
5.3.110.0110.03512.66
5.3.100.0070.03612.12
5.3.90.0080.03312.09
5.3.80.0070.03912.07
5.3.70.0080.03912.07
5.3.60.0060.03812.06
5.3.50.0060.04212.00
5.3.40.0050.03812.00
5.3.30.0080.03211.95
5.3.20.0100.03211.73
5.3.10.0070.03511.70
5.3.00.0080.03911.68
5.2.170.0020.0379.18
5.2.160.0040.0319.18
5.2.150.0050.0339.18
5.2.140.0040.0329.18
5.2.130.0060.0299.14
5.2.120.0060.0309.14
5.2.110.0060.0319.14
5.2.100.0060.0309.14
5.2.90.0040.0309.14
5.2.80.0050.0309.14
5.2.70.0050.0449.14
5.2.60.0080.0349.09
5.2.50.0040.0319.06
5.2.40.0080.0259.04
5.2.30.0060.0299.02
5.2.20.0050.0299.00
5.2.10.0020.0308.93
5.2.00.0080.0298.78
5.1.60.0070.0258.07
5.1.50.0020.0278.07
5.1.40.0060.0238.05
5.1.30.0070.0238.39
5.1.20.0040.0268.42
5.1.10.0050.0268.14
5.1.00.0040.0268.14
5.0.50.0040.0206.62
5.0.40.0050.0176.47
5.0.30.0030.0316.29
5.0.20.0030.0206.27
5.0.10.0010.0236.24
5.0.00.0040.0316.23
4.4.90.0050.0154.78
4.4.80.0020.0184.75
4.4.70.0040.0164.75
4.4.60.0020.0184.76
4.4.50.0020.0164.77
4.4.40.0020.0264.71
4.4.30.0020.0164.76
4.4.20.0040.0144.84
4.4.10.0020.0164.85
4.4.00.0010.0274.76
4.3.110.0030.0164.67
4.3.100.0050.0134.66
4.3.90.0020.0154.63
4.3.80.0050.0234.58
4.3.70.0040.0144.63
4.3.60.0050.0144.63
4.3.50.0050.0154.63
4.3.40.0020.0324.54
4.3.30.0030.0153.28
4.3.20.0020.0163.26
4.3.10.0030.0143.22
4.3.00.0030.01715.21

preferences:
41.73 ms | 401 KiB | 5 Q