3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = Collator::class; $rc = new ReflectionClass($c); foreach ($rc->getMethods(ReflectionMethod::IS_PUBLIC) as $rm) { printf("- %s::%s:\n%d\n%d\n", $c, $rm->getName(), $rm->getNumberOfParameters(), $rm->getNumberOfRequiredParameters()); foreach ($rm->getParameters() as $param) { printf("Parameter #%d (%s) %s OPTIONAL\n", $param->getPosition(), $param->getName(), $param->isOptional() ? "IS" : "IS NOT"); } echo PHP_EOL; }

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.0160.00616.38
8.3.50.0100.01018.30
8.3.40.0090.00618.66
8.3.30.0120.00318.55
8.3.20.0080.00020.21
8.3.10.0000.00821.90
8.3.00.0040.00423.65
8.2.180.0070.00718.39
8.2.170.0090.00922.96
8.2.160.0040.01120.95
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0080.00020.38
8.2.120.0030.00526.35
8.2.110.0060.01519.08
8.2.100.0080.00617.76
8.2.90.0050.00319.08
8.2.80.0080.00017.97
8.2.70.0000.00918.04
8.2.60.0060.00318.03
8.2.50.0000.00818.10
8.2.40.0040.00420.59
8.2.30.0040.00421.09
8.2.20.0000.00718.05
8.2.10.0040.00418.18
8.2.00.0030.00318.21
8.1.280.0120.00625.92
8.1.270.0070.00020.71
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0000.00922.14
8.1.230.0040.00717.83
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0030.00517.10
8.1.180.0000.00718.10
8.1.170.0000.00722.03
8.1.160.0050.00218.80
8.1.150.0000.00821.84
8.1.140.0030.00719.60
8.1.130.0000.00719.04
8.1.120.0050.00217.45
8.1.110.0000.00817.43
8.1.100.0040.00417.46
8.1.90.0040.00417.42
8.1.80.0050.00317.46
8.1.70.0070.00017.44
8.1.60.0040.00417.60
8.1.50.0040.00417.40
8.1.40.0080.00017.50
8.1.30.0080.00017.59
8.1.20.0080.00017.61
8.1.10.0030.00617.46
8.1.00.0040.00517.46
8.0.300.0000.00818.77
8.0.290.0040.00416.58
8.0.280.0000.00718.44
8.0.270.0040.00417.16
8.0.260.0040.00417.25
8.0.250.0000.00716.95
8.0.240.0000.00816.96
8.0.230.0000.00716.98
8.0.220.0030.00316.72
8.0.210.0000.00716.86
8.0.200.0030.00317.00
8.0.190.0030.00716.84
8.0.180.0080.00016.91
8.0.170.0040.00416.80
8.0.160.0070.00016.91
8.0.150.0000.00716.93
8.0.140.0000.00816.85
8.0.130.0030.00313.30
8.0.120.0000.00816.84
8.0.110.0040.00416.95
8.0.100.0040.00416.75
8.0.90.0000.00816.87
8.0.80.0030.01316.90
8.0.70.0000.00716.87
8.0.60.0080.00016.70
8.0.50.0040.00416.84
8.0.30.0080.01117.01
8.0.20.0120.00817.40
8.0.10.0040.00417.00
8.0.00.0070.01016.75
7.4.330.0060.00015.55
7.4.320.0060.00016.52
7.4.300.0060.00016.50
7.4.290.0000.00716.51
7.4.280.0000.00816.48
7.4.270.0040.00416.59
7.4.260.0040.00416.55
7.4.250.0000.00816.32
7.4.240.0060.00316.49
7.4.230.0030.00316.31
7.4.220.0110.00716.52
7.4.210.0100.00616.56
7.4.200.0040.00416.59
7.4.160.0100.00516.39
7.4.150.0130.00717.40
7.4.140.0110.00917.86
7.4.130.0100.01216.46
7.4.120.0130.00716.48
7.4.110.0090.00816.42
7.4.100.0200.00316.64
7.4.90.0080.00816.56
7.4.80.0060.01319.39
7.4.70.0130.00316.51
7.4.60.0140.00316.53
7.4.50.0060.00916.43
7.4.40.0130.00416.32
7.4.30.0060.01516.44
7.4.00.0070.01015.13
7.3.330.0070.00013.16
7.3.320.0000.00613.02
7.3.310.0030.00316.15
7.3.300.0030.00316.24
7.3.290.0090.00616.22
7.3.280.0100.01116.21
7.3.270.0120.00617.40
7.3.260.0120.00616.50
7.3.250.0140.00516.28
7.3.240.0070.01016.55
7.3.230.0240.01216.51
7.3.210.0120.00616.56
7.3.200.0030.01416.27
7.3.190.0100.00716.28
7.3.180.0130.00616.38
7.3.170.0060.01216.47
7.3.160.0160.00416.28
7.3.10.0080.00816.59
7.3.00.0110.00316.07
7.2.330.0150.00316.58
7.2.320.0110.01016.59
7.2.310.0030.01416.71
7.2.300.0030.01416.59
7.2.290.0170.00716.60
7.2.130.0150.00416.38
7.2.120.0130.00416.54
7.2.110.0130.00716.39
7.2.100.0090.00616.66
7.2.90.0140.01416.61
7.2.80.0190.00016.69
7.2.70.0170.01016.15
7.2.60.0100.00916.68
7.2.50.0280.00716.65
7.2.40.0190.00616.55
7.2.30.0150.00616.74
7.2.20.0270.00016.26
7.2.10.0140.00916.91
7.2.00.0150.01218.12
7.1.250.0070.01015.34
7.1.200.0120.01215.54
7.1.70.0030.01416.89
7.1.60.0140.00416.87
7.1.50.0030.02216.64
7.1.40.1370.01732.43
7.1.30.1270.00732.50
7.1.20.1300.01732.62
7.1.10.1230.01314.65
7.1.00.1100.01314.69
7.0.200.0030.00516.79
7.0.180.1670.01714.46
7.0.170.1200.01314.31
7.0.160.0870.01014.11
7.0.150.0970.01314.36
7.0.140.1330.01714.41
7.0.130.1330.00714.40
7.0.120.1230.01014.65
7.0.110.1230.00714.37
7.0.100.0970.00714.42
7.0.90.1370.01014.41
7.0.80.1200.01714.47
7.0.70.1070.01314.38
7.0.60.1670.01014.27
7.0.50.1570.01314.43
7.0.40.1830.01314.66
7.0.30.1700.01314.52
7.0.20.1600.01014.40
7.0.10.1400.01314.24
7.0.00.1570.01014.49

preferences:
58.82 ms | 401 KiB | 5 Q