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, ", count($fooReflection->getConstants()), \Foo::class); if ($fooReflection->getParentClass()) { printf("%s extends %s\n", Foo::class, $fooReflection->getParentClass()->getName()); } printf("%d constants in %s, ", 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.0030.01218.30
8.3.50.0170.00316.22
8.3.40.0200.00318.89
8.3.30.0070.00718.62
8.3.20.0080.00020.34
8.3.10.0000.00721.92
8.3.00.0080.00020.94
8.2.180.0060.00925.92
8.2.170.0040.01119.01
8.2.160.0040.01119.09
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00219.31
8.2.120.0040.00426.35
8.2.110.0000.01019.37
8.2.100.0080.00317.72
8.2.90.0090.00017.63
8.2.80.0050.00318.61
8.2.70.0050.00317.38
8.2.60.0050.00317.63
8.2.50.0040.00417.55
8.2.40.0080.00019.17
8.2.30.0000.00819.27
8.2.20.0070.00018.14
8.2.10.0030.00617.96
8.2.00.0000.00818.14
8.1.280.0070.01025.92
8.1.270.0050.00322.05
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0030.00622.14
8.1.230.0130.00021.07
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0030.00518.10
8.1.170.0070.00017.77
8.1.160.0040.00418.91
8.1.150.0000.00922.09
8.1.140.0070.00019.63
8.1.130.0070.00018.97
8.1.120.0000.00817.38
8.1.110.0080.00017.54
8.1.100.0060.00317.38
8.1.90.0050.00217.36
8.1.80.0040.00417.51
8.1.70.0030.00317.50
8.1.60.0000.00817.63
8.1.50.0000.00817.54
8.1.40.0000.00717.52
8.1.30.0040.00417.59
8.1.20.0050.00217.65
8.1.10.0000.00817.45
8.1.00.0000.00717.39
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0050.00218.32
8.0.270.0000.00717.21
8.0.260.0030.00318.71
8.0.250.0070.00016.97
8.0.240.0040.00416.88
8.0.230.0030.00316.89
8.0.220.0000.00716.77
8.0.210.0000.00716.76
8.0.200.0000.00716.93
8.0.190.0030.00616.84
8.0.180.0030.00516.93
8.0.170.0000.00716.94
8.0.160.0050.00217.04
8.0.150.0000.00716.71
8.0.140.0000.00816.87
8.0.130.0050.00013.46
8.0.120.0040.00416.76
8.0.110.0000.00716.95
8.0.100.0000.00716.82
8.0.90.0070.00016.94
8.0.80.0060.00916.91
8.0.70.0040.00416.73
8.0.60.0000.00716.85
8.0.50.0040.00416.89
8.0.30.0080.00717.05
8.0.20.0110.00817.40
8.0.10.0040.00417.10
8.0.00.0090.00916.76
7.4.330.0000.00615.55
7.4.320.0060.00016.52
7.4.300.0030.00316.62
7.4.290.0030.00316.52
7.4.280.0040.00416.57
7.4.270.0000.00716.43
7.4.260.0000.00716.62
7.4.250.0000.00816.63
7.4.240.0050.00316.52
7.4.230.0070.00016.60
7.4.220.0140.00316.61
7.4.210.0090.00616.64
7.4.200.0070.00016.41
7.4.160.0090.00816.53
7.4.150.0130.00417.40
7.4.140.0090.01117.86
7.4.130.0090.01216.76
7.4.120.0110.00916.58
7.4.110.0140.01116.55
7.4.100.0130.00816.36
7.4.90.0090.00916.51
7.4.80.0130.00319.39
7.4.70.0100.00716.61
7.4.60.0140.00316.40
7.4.50.0050.00516.35
7.4.40.0150.00316.57
7.4.30.0090.00616.43
7.4.00.0110.00715.08
7.3.330.0000.00513.25
7.3.320.0030.00313.24
7.3.310.0030.00316.28
7.3.300.0040.00416.21
7.3.290.0110.00616.28
7.3.280.0080.01216.25
7.3.270.0090.00917.40
7.3.260.0090.00916.42
7.3.250.0110.00716.39
7.3.240.0100.00816.44
7.3.230.0100.00716.61
7.3.210.0060.01016.52
7.3.200.0090.00916.22
7.3.190.0120.00316.62
7.3.180.0130.00316.27
7.3.170.0030.01216.22
7.3.160.0100.00716.24
7.3.10.0040.00915.72
7.3.00.0110.00416.16
7.2.330.0030.01616.46
7.2.320.0070.01116.69
7.2.310.0060.01116.62
7.2.300.0100.00716.61
7.2.290.0100.00716.66
7.2.130.0130.00616.55
7.2.120.0140.00316.38
7.2.110.0100.00716.31
7.2.100.0110.00616.37
7.2.90.0070.00716.26
7.2.80.0090.00516.17
7.2.70.0100.01016.20
7.2.60.0060.00416.57
7.2.50.0100.00716.59
7.2.40.0130.00416.26
7.2.30.0060.00616.90
7.2.20.0030.01316.50
7.2.10.0170.00916.59
7.2.00.0090.00616.82
7.1.250.0140.00315.58
7.1.200.0040.00415.71
7.1.80.0050.01018.00
7.1.70.0090.00917.03
7.1.60.0310.00934.95
7.1.50.0190.01034.62
7.1.40.0140.02134.31
7.1.30.0190.01234.11
7.1.20.0260.00334.23
7.1.10.0090.01016.49
7.1.00.0070.01116.58
7.0.200.0050.01316.62
7.0.190.0020.01416.74
7.0.180.0060.01216.07
7.0.170.0060.01116.08
7.0.160.0080.00916.24
7.0.150.0080.01016.21
7.0.140.0100.00816.16
7.0.130.0060.01016.19
7.0.120.0070.01016.25
7.0.110.0060.01216.16
7.0.100.0080.00816.17
7.0.90.0000.01516.09
7.0.80.0060.00816.17
7.0.70.0030.01516.24
7.0.60.0040.01116.07
7.0.50.0060.01216.30
7.0.40.0030.01516.39
7.0.30.0060.00916.26
7.0.20.0050.01216.32
7.0.10.0060.00916.36
7.0.00.0030.01516.16

preferences:
51.85 ms | 400 KiB | 5 Q