3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyCharacter { /* some stuff here */ } class MyString { public function __construct(MyCharacter $char, array $type, int $foo, $bar) { /* do something useful here */ } } $method = new ReflectionMethod('MyString', '__construct'); foreach ($method->getParameters() as $param) { echo "Type hint for ".$param->getName()." is ".$param->getClass().".\r\n"; } ?>

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.0110.00418.43
8.3.50.0130.00721.14
8.3.40.0100.00718.88
8.3.30.0070.00718.67
8.3.20.0070.00720.36
8.3.10.0060.00323.66
8.3.00.0050.00323.48
8.2.180.0150.00016.38
8.2.170.0040.01122.96
8.2.160.0090.00622.00
8.2.150.0090.00024.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00717.63
8.2.110.0090.00021.05
8.2.100.0090.00317.63
8.2.90.0060.00319.26
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0000.00918.05
8.2.50.0090.00018.07
8.2.40.0060.00321.04
8.2.30.0080.00019.72
8.2.20.0080.00017.66
8.2.10.0000.00718.02
8.2.00.0000.00718.06
8.1.280.0110.00425.92
8.1.270.0080.00020.20
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00619.21
8.1.230.0090.00317.78
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0050.00317.10
8.1.180.0050.00318.10
8.1.170.0030.00518.65
8.1.160.0050.00223.84
8.1.150.0060.00318.81
8.1.140.0040.00417.53
8.1.130.0050.00217.73
8.1.120.0000.00717.46
8.1.110.0030.00317.46
8.1.100.0030.00517.37
8.1.90.0040.00417.39
8.1.80.0040.00417.41
8.1.70.0030.00317.27
8.1.60.0040.00417.48
8.1.50.0050.00317.38
8.1.40.0070.00017.49
8.1.30.0030.00517.51
8.1.20.0030.00617.61
8.1.10.0040.00417.53
8.1.00.0040.00417.47
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0040.00418.41
8.0.270.0000.00717.17
8.0.260.0030.00617.25
8.0.250.0040.00417.09
8.0.240.0070.00016.93
8.0.230.0000.00616.99
8.0.220.0040.00416.95
8.0.210.0000.00716.99
8.0.200.0060.00016.90
8.0.190.0030.00616.92
8.0.180.0070.00016.88
8.0.170.0030.00516.93
8.0.160.0000.00716.95
8.0.150.0030.00316.90
8.0.140.0030.00416.89
8.0.130.0000.00813.42
8.0.120.0050.00516.93
8.0.110.0000.00716.86
8.0.100.0040.00416.85
8.0.90.0030.00616.86
8.0.80.0120.00816.87
8.0.70.0000.00817.02
8.0.60.0070.00016.97
8.0.50.0080.00017.01
8.0.30.0120.00516.92
8.0.20.0120.00817.40
8.0.10.0000.00717.10
8.0.00.0110.00616.90
7.4.330.0000.00615.15
7.4.320.0000.00616.43
7.4.300.0030.00316.36
7.4.290.0070.00016.50
7.4.280.0070.00016.47
7.4.270.0000.00716.53
7.4.260.0030.00316.41
7.4.250.0000.00716.46
7.4.240.0050.00316.56
7.4.230.0000.00716.50
7.4.220.0150.00616.45
7.4.210.0070.01316.61
7.4.200.0070.00016.48
7.4.160.0060.00916.50
7.4.150.0140.00417.40
7.4.140.0160.01017.86
7.4.130.0080.00816.51
7.4.120.0120.00816.37
7.4.110.0060.01216.44
7.4.100.0140.00916.74
7.4.90.0070.01016.43
7.4.80.0110.00719.39
7.4.70.0100.00716.48
7.4.60.0090.00616.45
7.4.50.0030.00616.62
7.4.40.0120.00816.35
7.4.30.0160.00616.62
7.4.00.0060.01014.88
7.3.330.0000.00613.16
7.3.320.0060.00013.22
7.3.310.0000.00716.19
7.3.300.0030.00616.25
7.3.290.0090.00716.24
7.3.280.0070.01216.24
7.3.270.0090.00917.40
7.3.260.0150.00916.54
7.3.250.0100.00816.36
7.3.240.0040.01316.54
7.3.230.0070.01016.53
7.3.210.0100.00716.23
7.3.200.0120.00316.48
7.3.190.0030.01216.25
7.3.180.0070.01016.61
7.3.170.0180.00316.45
7.3.160.0070.01016.25
7.3.120.0100.00715.05
7.3.110.0060.01014.68
7.3.100.0030.00914.34
7.3.90.0000.01414.63
7.3.80.0000.01414.66
7.3.70.0000.01114.47
7.3.60.0100.00714.77
7.3.50.0030.00714.83
7.3.40.0120.00314.49
7.3.30.0030.01314.90
7.3.20.0090.00616.48
7.3.10.0100.00316.71
7.3.00.0100.00316.45
7.2.330.0030.01316.71
7.2.320.0110.00916.75
7.2.310.0160.00016.82
7.2.300.0070.01016.51
7.2.290.0030.01316.38
7.2.250.0070.01115.18
7.2.240.0030.01615.17
7.2.230.0060.00914.71
7.2.220.0000.01314.93
7.2.210.0070.00715.27
7.2.200.0000.01314.90
7.2.190.0060.01015.23
7.2.180.0110.00415.04
7.2.170.0120.00314.94
7.2.60.0000.01616.67
7.2.00.0030.01019.48
7.1.330.0090.00415.88
7.1.320.0030.00715.82
7.1.310.0040.01115.86
7.1.300.0090.00615.86
7.1.290.0070.00715.41
7.1.280.0090.00615.69
7.1.270.0030.01315.88
7.1.260.0000.01115.44
7.1.200.0000.01315.34
7.1.100.0000.01018.11
7.1.70.0000.01216.97
7.1.60.0110.01419.12
7.1.50.0090.00616.82
7.1.00.0000.08022.45
7.0.200.0290.00714.80
7.0.60.0170.07719.96
7.0.50.0130.07017.89
7.0.40.0100.09020.08
7.0.30.0200.04720.23
7.0.20.0170.05720.26
7.0.10.0030.04320.03
7.0.00.0130.07720.19
5.6.280.0070.05721.13
5.6.210.0100.07320.53
5.6.200.0070.07318.18
5.6.190.0070.05720.39
5.6.180.0570.07320.64
5.6.170.0300.08020.55
5.6.160.0100.06720.50
5.6.150.0070.06318.19
5.6.140.0030.05018.22
5.6.130.0070.07018.18
5.6.120.0070.05320.99
5.6.110.0100.08321.01
5.6.100.0130.07720.98
5.6.90.0030.08321.04
5.6.80.0030.03720.39
5.5.350.4100.03320.53
5.5.340.0030.04717.98
5.5.330.0000.05320.42
5.5.320.0330.06720.31
5.5.310.0230.07020.27
5.5.300.0100.08318.07
5.5.290.0100.05717.95
5.5.280.0030.07720.86
5.5.270.0200.05320.66
5.5.260.0200.07320.77
5.5.250.0070.09020.59
5.5.240.0000.08320.37
5.4.450.0670.05319.55
5.4.440.1000.05019.31
5.4.430.0930.05719.58
5.4.420.0830.05719.46
5.4.410.1030.06319.46
5.4.400.0800.06019.29
5.4.390.1030.06019.01
5.4.380.0930.06019.26
5.4.370.0730.06019.30
5.4.360.0630.06319.29
5.4.350.1000.04718.84
5.4.340.0770.06318.84
5.4.320.0930.05318.98
5.4.310.0870.04718.87
5.4.300.0870.06019.20
5.4.290.0730.07319.28
5.4.280.0900.06019.30
5.4.270.0770.06019.30
5.4.260.0930.07319.30
5.4.250.1030.08318.84
5.4.240.1130.06019.05
5.4.230.0830.05319.15
5.4.220.0830.06019.14
5.4.210.0800.06719.26
5.4.200.0970.05716.89
5.4.190.0930.03719.10
5.4.180.0900.04319.13
5.4.170.0900.05319.30
5.4.160.1100.04719.04
5.4.150.0900.05719.30
5.4.140.0830.05316.58
5.4.130.0870.04716.61
5.4.120.0870.05016.53
5.4.110.0930.05716.55
5.4.100.1070.04716.41
5.4.90.1030.07716.53
5.4.80.1100.06316.42
5.4.70.1170.05016.50
5.4.60.0900.05016.34
5.4.50.0870.05316.54
5.4.40.0930.04716.37
5.4.30.1100.05016.26
5.4.20.1100.05716.48
5.4.10.0870.04016.48
5.4.00.1130.05315.82
5.3.290.1170.07014.72
5.3.280.1100.06714.74
5.3.270.0930.07014.84
5.3.260.0670.06714.66
5.3.250.0900.05314.59
5.3.240.0930.05714.62
5.3.230.1000.06314.59
5.3.220.0870.05714.62
5.3.210.0670.06014.62
5.3.200.0700.05014.62
5.3.190.0730.06714.56
5.3.180.0870.05314.46
5.3.170.0870.08314.48
5.3.160.0770.04314.65
5.3.150.0900.04714.62
5.3.140.0770.05314.59
5.3.130.0800.06014.60
5.3.120.0770.07014.54
5.3.110.0770.06014.57
5.3.100.0700.06014.11
5.3.90.0900.04314.10
5.3.80.0900.05014.04
5.3.70.0970.05014.27
5.3.60.0830.05014.15
5.3.50.0800.07013.81
5.3.40.1000.07014.01
5.3.30.0900.06313.84
5.3.20.1000.07713.79
5.3.10.0930.04313.88
5.3.00.0830.05313.71
5.2.170.0700.03711.16
5.2.160.0770.04311.20
5.2.150.0730.04311.07
5.2.140.0670.05311.06
5.2.130.0900.03711.03
5.2.120.0600.04011.19
5.2.110.0770.04711.11
5.2.100.0700.04311.04
5.2.90.0800.04011.33
5.2.80.0900.04310.96
5.2.70.1100.05311.01
5.2.60.0570.04311.06
5.2.50.0730.04311.03
5.2.40.0430.04711.00
5.2.30.0470.05011.07
5.2.20.0570.03310.93
5.2.10.0530.03311.09
5.2.00.0630.03010.62
5.1.60.0500.03010.00
5.1.50.0430.0339.98
5.1.40.0300.03310.04
5.1.30.0070.03310.29
5.1.20.0070.03710.22
5.1.10.0070.03310.05
5.1.00.0100.04310.08
5.0.50.0230.0308.42
5.0.40.0300.0338.31
5.0.30.0230.0478.28
5.0.20.0100.0338.43
5.0.10.0200.0338.07
5.0.00.0300.0378.31
4.4.90.0300.0206.07
4.4.80.0030.0206.07
4.4.70.0070.0206.07
4.4.60.0070.0236.07
4.4.50.0030.0276.07
4.4.40.0000.0406.07
4.4.30.0000.0236.07
4.4.20.0070.0206.07
4.4.10.0130.0276.07
4.4.00.0130.0506.07
4.3.110.0330.0306.07
4.3.100.0300.0206.07
4.3.90.0230.0206.07
4.3.80.0330.0306.07
4.3.70.0330.0176.07
4.3.60.0330.0176.07
4.3.50.0270.0206.07
4.3.40.0230.0376.07
4.3.30.0100.0236.07
4.3.20.0130.0206.07
4.3.10.0170.0176.07
4.3.00.0000.0237.28

preferences:
57.49 ms | 401 KiB | 5 Q