3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo extends \IntlCalendar { } $fooReflection = new \ReflectionClass(\Foo::class); $intlGregorianCalendarReflection = new \ReflectionClass(\IntlGregorianCalendar::class); printf("%d constants in %s\n", count($fooReflection->getConstants()), \Foo::class); if ($fooReflection->getParentClass()) { printf("%s extends %s\n", Foo::class, $fooReflection->getParentClass()->getName()); } printf("%d constants in %s\n", count($intlGregorianCalendarReflection->getConstants()), \IntlGregorianCalendar::class); if ($intlGregorianCalendarReflection->getParentClass()) { printf("%s extends %s\n", \IntlGregorianCalendar::class, $intlGregorianCalendarReflection->getParentClass()->getName()); } printf("%d constants in %s\n", count((new \ReflectionClass(\IntlCalendar::class))->getConstants()), \IntlCalendar::class);

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.0100.00718.40
8.3.50.0030.01016.49
8.3.40.0170.00318.59
8.3.30.0110.00418.62
8.3.20.0070.00020.34
8.3.10.0040.00422.09
8.3.00.0040.00420.96
8.2.180.0110.01116.63
8.2.170.0070.01022.96
8.2.160.0040.01119.52
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0080.00019.33
8.2.120.0070.00026.35
8.2.110.0070.00322.21
8.2.100.0070.00417.78
8.2.90.0050.00319.09
8.2.80.0040.00417.97
8.2.70.0050.00517.63
8.2.60.0030.00717.80
8.2.50.0090.00018.10
8.2.40.0000.00720.47
8.2.30.0000.00719.29
8.2.20.0040.00418.08
8.2.10.0090.00018.14
8.2.00.0070.00017.99
8.1.280.0140.00325.92
8.1.270.0040.00420.18
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00622.17
8.1.230.0040.00719.15
8.1.220.0020.00517.77
8.1.210.0030.00518.77
8.1.200.0000.01117.35
8.1.190.0090.00017.11
8.1.180.0060.00318.10
8.1.170.0080.00018.53
8.1.160.0040.00418.82
8.1.150.0000.00721.98
8.1.140.0020.00519.64
8.1.130.0000.00718.79
8.1.120.0050.00217.48
8.1.110.0000.00817.39
8.1.100.0000.00817.43
8.1.90.0000.00817.38
8.1.80.0030.00517.46
8.1.70.0030.00617.34
8.1.60.0030.00517.59
8.1.50.0040.00417.54
8.1.40.0000.00817.47
8.1.30.0030.00517.61
8.1.20.0040.00417.70
8.1.10.0040.00417.41
8.1.00.0000.00817.54
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.37
8.0.270.0030.00616.78
8.0.260.0000.00618.88
8.0.250.0070.00016.88
8.0.240.0000.00716.82
8.0.230.0030.00316.95
8.0.220.0030.00316.88
8.0.210.0030.00316.88
8.0.200.0000.00616.93
8.0.190.0060.00316.88
8.0.180.0040.00416.99
8.0.170.0050.00316.86
8.0.160.0040.00416.86
8.0.150.0080.00016.81
8.0.140.0040.00416.85
8.0.130.0030.00313.41
8.0.120.0000.00816.89
8.0.110.0000.00716.97
8.0.100.0040.00416.76
8.0.90.0050.00316.86
8.0.80.0090.00616.94
8.0.70.0040.00416.90
8.0.60.0070.00016.93
8.0.50.0040.00416.97
8.0.30.0060.01317.24
8.0.20.0130.00617.40
8.0.10.0050.00217.08
8.0.00.0100.01516.76
7.4.330.0020.00215.55
7.4.320.0030.00316.48
7.4.300.0060.00016.61
7.4.290.0030.00316.51
7.4.280.0040.00416.50
7.4.270.0000.00716.52
7.4.260.0030.00316.51
7.4.250.0000.00716.50
7.4.240.0070.00016.52
7.4.230.0000.00716.66
7.4.220.0060.01316.50
7.4.210.0060.00916.61
7.4.200.0070.00016.50
7.4.160.0100.00816.38
7.4.150.0090.00917.40
7.4.140.0130.00717.86
7.4.130.0060.01216.57
7.4.120.0070.01416.52
7.4.110.0110.00816.61
7.4.100.0110.01116.46
7.4.90.0060.01116.40
7.4.80.0070.01019.39
7.4.70.0030.01316.57
7.4.60.0100.01016.39
7.4.50.0070.00716.51
7.4.40.0080.00816.41
7.4.30.0130.00316.37
7.4.00.0090.00815.15
7.3.330.0050.00013.39
7.3.320.0050.00013.33
7.3.310.0030.00316.29
7.3.300.0070.00016.27
7.3.290.0090.00816.25
7.3.280.0100.00816.29
7.3.270.0120.00417.40
7.3.260.0120.00816.43
7.3.250.0130.00916.46
7.3.240.0110.00616.48
7.3.230.0100.00716.30
7.3.210.0130.00316.35
7.3.200.0060.01016.34
7.3.190.0060.00916.32
7.3.180.0040.01216.57
7.3.170.0060.01016.48
7.3.160.0070.01316.50
7.3.120.0060.01114.50
7.3.110.0100.00614.62
7.3.100.0070.01114.70
7.3.90.0070.00714.84
7.3.80.0080.00314.84
7.3.70.0100.00714.50
7.3.60.0030.00914.79
7.3.50.0120.00614.47
7.3.40.0040.00414.66
7.3.30.0030.00614.57
7.3.20.0090.00616.59
7.3.10.0090.01116.47
7.3.00.0140.00516.31
7.2.330.0090.00916.68
7.2.320.0090.00916.38
7.2.310.0060.01216.45
7.2.300.0140.00316.56
7.2.290.0080.01416.66
7.2.250.0070.00715.14
7.2.240.0100.01014.95
7.2.230.0060.00614.93
7.2.220.0030.01015.20
7.2.210.0130.00015.20
7.2.200.0070.01014.93
7.2.190.0030.01214.94
7.2.180.0060.01314.89
7.2.170.0070.00714.98
7.2.130.0080.00416.70
7.2.120.0140.00416.59
7.2.110.0090.00616.39
7.2.100.0180.00416.71
7.2.90.0380.00716.81
7.2.80.0230.00216.50
7.2.70.0220.00916.84
7.2.60.0100.00716.72
7.2.50.0260.00916.25
7.2.40.0260.01016.41
7.2.30.0240.01216.98
7.2.20.0130.01316.58
7.2.10.0210.00316.62
7.2.00.0360.01016.70
7.1.330.0060.01015.65
7.1.320.0000.01415.75
7.1.310.0070.00715.53
7.1.300.0030.01215.69
7.1.290.0030.01215.54
7.1.280.0000.01515.38
7.1.270.0030.00715.65
7.1.260.0030.00515.41
7.1.250.0050.00515.52
7.1.200.0040.00715.61
7.1.80.0050.01518.19
7.1.70.0040.01116.96
7.1.60.0140.02035.03
7.1.50.0230.00634.67
7.1.40.0130.01634.24
7.1.30.0160.01334.11
7.1.20.0260.01334.45
7.1.10.0090.00916.35
7.1.00.0030.01216.40
7.0.200.0050.01016.78
7.0.190.0070.00616.48
7.0.180.0060.01015.93
7.0.170.0060.01116.21
7.0.160.0070.01116.30
7.0.150.0030.01416.07
7.0.140.0030.01316.40
7.0.130.0040.01716.31
7.0.120.0060.01216.23
7.0.110.0000.01516.25
7.0.100.0030.01016.26
7.0.90.0000.01516.25
7.0.80.0040.01416.40
7.0.70.0040.01115.93
7.0.60.0090.00616.01
7.0.50.0060.00916.14
7.0.40.0070.00716.32
7.0.30.0000.01316.40
7.0.20.0030.01116.32
7.0.10.0090.00616.36
7.0.00.0030.01416.18

preferences:
31.71 ms | 400 KiB | 5 Q