3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f(int $a, Foo $b, $c) { } $r = new ReflectionMethod('Memcached', 'add'); foreach ($r->getParameters() as $p) { echo $p, "\n"; if ($p->hasType()) { echo $p->getType(); var_dump($p->getType()); } }

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.0070.01016.63
8.3.50.0170.00521.03
8.3.40.0090.00618.89
8.3.30.0100.01018.76
8.3.20.0040.00420.34
8.3.10.0040.00423.57
8.3.00.0080.00023.66
8.2.180.0070.01118.13
8.2.170.0140.00622.96
8.2.160.0150.00420.10
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00019.52
8.2.120.0080.00026.35
8.2.110.0050.00321.18
8.2.100.0040.00817.80
8.2.90.0040.00419.05
8.2.80.0080.00017.97
8.2.70.0050.00517.50
8.2.60.0030.00518.04
8.2.50.0000.00818.07
8.2.40.0080.00420.65
8.2.30.0040.00419.34
8.2.20.0040.00417.66
8.2.10.0070.00017.93
8.2.00.0070.00017.96
8.1.280.0070.01125.92
8.1.270.0040.00423.79
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0130.00020.75
8.1.230.0080.00319.16
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0090.00018.10
8.1.170.0040.00418.49
8.1.160.0040.00420.70
8.1.150.0040.00418.63
8.1.140.0040.00419.32
8.1.130.0040.00417.49
8.1.120.0050.00317.39
8.1.110.0040.00417.34
8.1.100.0030.00617.33
8.1.90.0050.00317.36
8.1.80.0040.00417.25
8.1.70.0030.00317.22
8.1.60.0040.00417.37
8.1.50.0030.00517.43
8.1.40.0040.00417.34
8.1.30.0030.00517.57
8.1.20.0040.00417.41
8.1.10.0000.00717.52
8.1.00.0000.00817.37
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0000.00718.29
8.0.270.0000.00717.11
8.0.260.0030.00317.09
8.0.250.0030.00316.89
8.0.240.0000.00716.94
8.0.230.0040.00416.86
8.0.220.0040.00416.90
8.0.210.0080.00016.93
8.0.200.0060.00016.84
8.0.190.0000.00816.91
8.0.180.0000.00716.91
8.0.170.0080.00016.87
8.0.160.0070.00016.80
8.0.150.0030.00316.80
8.0.140.0080.00416.79
8.0.130.0050.00013.39
8.0.120.0040.00416.89
8.0.110.0040.00416.80
8.0.100.0030.00516.68
8.0.90.0070.00016.92
8.0.80.0040.01116.77
8.0.70.0040.00416.89
8.0.60.0080.00016.68
8.0.50.0040.00416.68
8.0.30.0120.00617.18
8.0.20.0110.00817.40
8.0.10.0040.00416.84
8.0.00.0090.00916.63
7.4.330.0000.00516.85
7.4.320.0070.00016.37
7.4.300.0070.00016.53
7.4.290.0030.00616.56
7.4.280.0090.00016.55
7.4.270.0000.00816.58
7.4.260.0000.00716.52
7.4.250.0090.00016.42
7.4.240.0060.00116.49
7.4.230.0070.00016.42
7.4.220.0120.00616.38
7.4.210.0140.00016.47
7.4.200.0050.00216.34
7.4.160.0070.01316.46
7.4.150.0220.01317.40
7.4.140.0110.00717.86
7.4.130.0070.01016.54
7.4.120.0080.00816.29
7.4.110.0100.00716.38
7.4.100.0120.00616.48
7.4.90.0070.01416.37
7.4.80.0130.00319.39
7.4.70.0130.01016.40
7.4.60.0060.00916.30
7.4.50.0000.01116.24
7.4.40.0040.01216.58
7.4.30.0090.01316.38
7.4.00.0070.00315.04
7.3.330.0030.00313.16
7.3.320.0000.00513.18
7.3.310.0030.00316.30
7.3.300.0040.00416.16
7.3.290.0070.01016.29
7.3.280.0080.00516.30
7.3.270.0070.01017.40
7.3.260.0000.01716.56
7.3.250.0110.00816.39
7.3.240.0080.01216.48
7.3.230.0100.00716.57
7.3.210.0100.00616.24
7.3.200.0110.01119.39
7.3.190.0060.01016.48
7.3.180.0120.00916.45
7.3.170.0090.01216.64
7.3.160.0080.01016.31
7.2.330.0040.01616.62
7.2.320.0110.00616.50
7.2.310.0050.01316.51
7.2.300.0110.00616.29
7.2.290.0100.00616.43
7.2.60.0060.00616.55
7.2.00.0000.01219.30
7.1.200.0050.00515.50
7.1.100.0030.00617.71
7.1.70.0000.01016.89
7.1.60.0070.01719.28
7.1.50.0030.01716.95
7.1.00.0070.07322.36
7.0.200.0490.00614.79
7.0.60.0000.08321.75
7.0.50.0100.08317.84
7.0.40.0030.05320.11
7.0.30.0400.06020.10
7.0.20.0270.08020.07
7.0.10.0100.04020.22
7.0.00.0030.04320.22
5.6.280.0070.03021.16
5.6.210.0130.03720.50
5.6.200.0130.06318.18
5.6.190.0100.05720.77
5.6.180.0130.05320.47
5.6.170.0400.07320.48
5.6.160.0100.04320.54
5.6.150.0130.03318.18
5.6.140.0070.08718.22
5.6.130.0070.08018.28
5.6.120.0030.08720.97
5.6.110.0100.06721.15
5.6.100.0230.03320.96
5.6.90.0030.04720.96
5.6.80.0030.08720.38
5.5.350.4270.04320.34
5.5.340.0030.03717.96
5.5.330.0030.09020.40
5.5.320.0430.03720.29
5.5.310.0200.04020.42
5.5.300.0000.04017.94
5.5.290.0130.07317.97
5.5.280.0130.05720.79
5.5.270.0170.07720.79
5.5.260.0100.08720.80
5.5.250.0200.06720.68
5.5.240.0070.08320.04

preferences:
53.62 ms | 401 KiB | 5 Q