3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct($foo, $bar, $foo) {} } $r = new ReflectionClass('Foo'); $ctor = $r->getConstructor(); for ($i = 0; $i < $ctor->getNumberOfParameters(); $i++) { $p = new ReflectionParameter(array('Foo', '__construct'), $i); #echo var_export($p->getName(), TRUE) . PHP_EOL; echo ReflectionParameter::export(array('Foo', '__construct'), $i, TRUE) . 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)
5.6.280.0030.07021.13
5.6.210.0030.04020.44
5.6.200.0200.06318.29
5.6.190.0100.03720.68
5.6.180.0200.05320.61
5.6.170.0300.07720.51
5.6.160.0130.07020.62
5.6.150.0000.04318.19
5.6.140.0070.03718.16
5.6.130.0030.04718.28
5.6.120.0070.08021.05
5.6.110.0030.09020.88
5.6.100.0100.07720.98
5.6.90.0100.06021.00
5.6.80.0130.07720.54
5.5.350.4000.04320.41
5.5.340.0100.06717.93
5.5.330.0030.04020.38
5.5.320.0200.07720.34
5.5.310.0100.05320.30
5.5.300.0070.04718.03
5.5.290.0100.05317.98
5.5.280.0000.09020.77
5.5.270.0030.04020.96
5.5.260.0100.06020.87
5.5.250.0130.06720.55
5.5.240.0030.09020.26
5.4.450.3170.04019.45
5.4.440.0070.04019.46
5.4.430.1570.03019.44
5.4.420.2070.03019.53
5.4.410.3430.03319.44
5.4.400.3830.03719.21
5.4.390.3730.04019.13
5.4.380.3870.03319.11
5.4.370.4600.03719.15
5.4.360.4130.03719.21
5.4.350.3670.03718.95
5.4.340.3800.04319.15
5.4.320.3900.03019.11
5.4.310.3730.04019.22
5.4.300.3330.03718.93
5.4.290.3900.03018.95
5.4.280.3570.04319.24
5.4.270.3770.04019.14
5.4.260.3800.03718.99
5.4.250.3700.03019.10
5.4.240.4400.03719.07
5.4.230.3570.04019.10
5.4.220.3470.03319.11
5.4.210.3530.04319.23
5.4.200.3500.03319.17
5.4.190.3800.03319.11
5.4.180.3570.04019.13
5.4.170.3700.04318.99
5.4.160.3730.04019.04
5.4.150.3830.03718.98
5.4.140.3730.03716.44
5.4.130.3730.03316.46
5.4.120.3830.03716.40
5.4.110.3830.03716.52
5.4.100.3670.04016.27
5.4.90.3970.03716.55
5.4.80.3900.03716.46
5.4.70.3530.03316.49
5.4.60.3800.03316.43
5.4.50.3570.03716.24
5.4.40.3770.04016.48
5.4.30.4130.04016.48
5.4.20.3500.03716.45
5.4.10.4130.04316.32
5.4.00.3830.04015.92
5.3.290.4200.04014.74
5.3.280.3570.03314.63
5.3.270.3600.03714.75
5.3.260.3800.04014.61
5.3.250.3770.03714.61
5.3.240.4030.04314.66
5.3.230.3630.04714.67
5.3.220.3900.03014.61
5.3.210.4100.04014.73
5.3.200.4200.04014.73
5.3.190.3500.03714.49
5.3.180.3430.04314.57
5.3.170.3600.04014.61
5.3.160.3770.03314.57
5.3.150.3530.03314.45
5.3.140.3930.03714.48
5.3.130.3570.03714.59
5.3.120.3670.03314.57
5.3.110.4130.04714.55
5.3.100.3470.04313.95
5.3.90.3900.03714.07
5.3.80.3770.04014.02
5.3.70.3700.03314.08
5.3.60.3500.04714.07
5.3.50.3700.03013.95
5.3.40.3570.03013.92
5.3.30.3430.03313.89
5.3.20.3700.02313.73
5.3.10.3570.03313.70
5.3.00.3600.03713.70
5.2.170.3070.03011.04
5.2.160.3230.03311.15
5.2.150.3170.03311.07
5.2.140.2770.03011.13
5.2.130.2770.02311.06
5.2.120.2730.03011.16
5.2.110.3000.02711.11
5.2.100.3030.03011.10
5.2.90.2930.03311.16
5.2.80.2770.03011.13
5.2.70.3030.02711.10
5.2.60.3030.03310.99
5.2.50.2700.02710.94
5.2.40.2170.02711.05
5.2.30.1870.03010.98
5.2.20.2600.03711.10
5.2.10.2030.02311.01
5.2.00.2670.02710.60
5.1.60.2570.02310.00
5.1.50.2700.02310.02
5.1.40.2570.01710.02
5.1.30.2630.02710.37
5.1.20.2900.02310.40
5.1.10.3100.02710.05
5.1.00.2830.0279.98
5.0.50.1800.0178.69
5.0.40.1430.0238.38
5.0.30.1370.0308.29
5.0.20.1230.0178.24
5.0.10.1670.0238.22
5.0.00.1570.0378.18
4.4.90.1200.0136.45
4.4.80.1200.0176.45
4.4.70.0930.0176.45
4.4.60.0700.0176.45
4.4.50.0870.0206.45
4.4.40.1470.0276.45
4.4.30.1400.0176.45
4.4.20.1430.0176.45
4.4.10.1670.0176.45
4.4.00.1630.0276.45
4.3.110.1200.0176.45
4.3.100.1470.0136.45
4.3.90.1530.0106.45
4.3.80.1470.0306.45
4.3.70.1370.0136.45
4.3.60.1330.0206.45
4.3.50.1530.0176.45
4.3.40.1030.0336.45
4.3.30.0700.0106.45
4.3.20.0630.0176.45
4.3.10.0670.0236.45
4.3.00.0800.0206.45

preferences:
146.9 ms | 1394 KiB | 7 Q