3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace MyNamespace; class MyClass { function foo(iterable $iterable, array $array, int $int) { } } $reflection = new \ReflectionMethod(MyClass::class, 'foo'); $parameters = $reflection->getParameters(); echo (string) $parameters[0]->getType(), PHP_EOL; echo (string) $parameters[1]->getType(), PHP_EOL; echo (string) $parameters[2]->getType(), 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.0130.00316.73
8.3.50.0070.00717.93
8.3.40.0120.00318.73
8.3.30.0140.00018.87
8.3.20.0080.00021.93
8.3.10.0040.00421.89
8.3.00.0000.00819.55
8.2.180.0130.00718.17
8.2.170.0120.00322.96
8.2.160.0100.00319.34
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00420.47
8.2.120.0070.00026.35
8.2.110.0070.00422.26
8.2.100.0090.00317.91
8.2.90.0050.00318.22
8.2.80.0000.00817.97
8.2.70.0000.00818.05
8.2.60.0000.00818.05
8.2.50.0050.00318.10
8.2.40.0000.00720.42
8.2.30.0040.00419.38
8.2.20.0080.00018.20
8.2.10.0070.00018.07
8.2.00.0020.00518.03
8.1.280.0150.00425.92
8.1.270.0000.00818.95
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00021.95
8.1.230.0090.00320.97
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0040.00418.56
8.1.160.0000.00718.86
8.1.150.0090.00018.82
8.1.140.0040.00419.64
8.1.130.0070.00018.81
8.1.120.0050.00217.43
8.1.110.0040.00417.35
8.1.100.0030.00617.52
8.1.90.0000.00817.36
8.1.80.0040.00317.46
8.1.70.0000.00717.45
8.1.60.0080.00017.59
8.1.50.0080.00017.57
8.1.40.0040.00417.44
8.1.30.0080.00017.57
8.1.20.0040.00417.56
8.1.10.0090.00017.52
8.1.00.0000.00717.52
8.0.300.0050.00219.64
8.0.290.0000.00816.63
8.0.280.0000.00818.44
8.0.270.0020.00517.27
8.0.260.0030.00617.23
8.0.250.0030.00317.01
8.0.240.0000.00916.99
8.0.230.0000.00716.86
8.0.220.0030.00516.91
8.0.210.0040.00416.78
8.0.200.0000.00817.02
8.0.190.0040.00416.96
8.0.180.0000.00816.88
8.0.170.0040.00416.85
8.0.160.0000.00716.96
8.0.150.0040.00716.93
8.0.140.0000.00716.87
8.0.130.0000.00713.43
8.0.120.0050.00216.85
8.0.110.0070.00016.99
8.0.100.0040.00416.88
8.0.90.0040.00416.94
8.0.80.0030.01216.88
8.0.70.0050.00316.93
8.0.60.0080.00016.85
8.0.50.0040.00416.80
8.0.30.0060.01217.05
8.0.20.0130.00817.40
8.0.10.0000.00716.91
8.0.00.0030.01516.68
7.4.330.0000.00415.55
7.4.320.0070.00016.60
7.4.300.0000.00716.66
7.4.290.0090.00316.62
7.4.280.0030.00416.50
7.4.270.0080.00016.52
7.4.260.0000.00716.50
7.4.250.0030.00516.35
7.4.240.0040.00416.59
7.4.230.0000.00616.70
7.4.220.0030.01616.41
7.4.210.0090.00616.59
7.4.200.0030.00316.55
7.4.160.0100.00716.66
7.4.150.0130.00717.40
7.4.140.0060.01517.86
7.4.130.0150.00816.50
7.4.120.0130.00916.55
7.4.110.0070.01116.42
7.4.100.0100.00716.49
7.4.90.0060.00916.52
7.4.80.0130.01019.39
7.4.70.0130.00316.54
7.4.60.0060.00916.42
7.4.50.0040.00716.43
7.4.40.0030.01316.63
7.4.30.0080.00816.72
7.4.00.0030.00615.09
7.3.330.0020.00213.31
7.3.320.0000.00613.34
7.3.310.0040.00416.21
7.3.300.0070.00016.31
7.3.290.0050.01016.20
7.3.280.0080.00816.21
7.3.270.0170.00017.40
7.3.260.0120.00816.51
7.3.250.0100.00816.40
7.3.240.0090.00816.52
7.3.230.0140.00616.57
7.3.210.0030.01316.39
7.3.200.0100.00716.22
7.3.190.0070.01016.27
7.3.180.0070.01416.59
7.3.170.0120.00316.29
7.3.160.0030.01316.29
7.3.00.0030.00716.25
7.2.330.0060.01316.68
7.2.320.0070.01416.67
7.2.310.0150.00916.50
7.2.300.0110.00616.80
7.2.290.0130.00716.42
7.2.130.0000.01416.72
7.2.120.0070.00716.49
7.2.110.0140.00316.90
7.2.100.0000.01016.89
7.2.90.0040.00816.62
7.2.80.0000.01316.63
7.2.70.0030.01016.59
7.2.60.0060.00316.81
7.2.50.0000.01216.75
7.2.40.0070.00716.89
7.2.30.0000.00816.97
7.2.20.0000.00916.52
7.2.10.0060.00616.55
7.2.00.0050.00718.08
7.1.250.0030.01015.55
7.1.240.0030.01215.65
7.1.230.0000.01415.65
7.1.220.0030.00715.68
7.1.210.0040.00715.49
7.1.200.0070.00715.71
7.1.190.0080.00415.55
7.1.180.0040.00815.38
7.1.170.0030.01015.50
7.1.160.0060.00915.66
7.1.150.0030.00715.48
7.1.140.0000.01015.52
7.1.130.0030.01015.50
7.1.120.0070.00715.65
7.1.110.0000.01315.41
7.1.100.0110.00715.91
7.1.90.0030.00715.62
7.1.80.0030.00915.55
7.1.70.0060.00116.38
7.1.60.0090.00615.44
7.1.50.0270.01124.41
7.1.40.0320.00524.00
7.1.30.0360.01124.05
7.1.20.0320.00524.28
7.1.10.0240.00915.24
7.1.00.0220.00815.30
7.0.330.0110.00315.25
7.0.320.0040.01115.21
7.0.310.0040.00415.43
7.0.300.0060.00615.14
7.0.290.0030.00915.17
7.0.280.0090.00014.96
7.0.270.0070.00315.27
7.0.260.0040.00815.44
7.0.250.0040.00815.24
7.0.240.0040.00415.46
7.0.230.0030.00615.52
7.0.220.0030.00614.97
7.0.210.0100.00014.94
7.0.200.0100.00815.73
7.0.190.0230.01315.04
7.0.180.0320.00614.83
7.0.170.0330.00814.87
7.0.160.0300.00814.66
7.0.150.0230.00314.80
7.0.140.0220.00714.79
7.0.130.0250.00814.82
7.0.120.0230.00714.96
7.0.110.0290.00714.71
7.0.100.0350.00314.88
7.0.90.0250.00914.76
7.0.80.0260.00614.88
7.0.70.0390.01214.94
7.0.60.0280.00614.64
7.0.50.0230.00714.84
7.0.40.0230.00714.08
7.0.30.0310.00313.94
7.0.20.0230.00713.95
7.0.10.0290.00213.88
7.0.00.0210.00713.94
5.6.380.0080.00314.43

preferences:
63.66 ms | 400 KiB | 5 Q