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->getType().".\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.0090.00618.18
8.3.50.0150.00621.10
8.3.40.0120.00318.71
8.3.30.0070.00718.71
8.3.20.0040.00420.34
8.3.10.0000.00823.60
8.3.00.0060.00323.65
8.2.180.0150.00316.63
8.2.170.0070.01022.96
8.2.160.0100.00321.99
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.59
8.2.110.0090.00020.87
8.2.100.0000.01217.78
8.2.90.0050.00317.84
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0090.00018.04
8.2.50.0060.00318.07
8.2.40.0080.00021.18
8.2.30.0040.00719.91
8.2.20.0040.00417.59
8.2.10.0040.00418.11
8.2.00.0050.00317.96
8.1.280.0130.00725.92
8.1.270.0000.00820.38
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.53
8.1.230.0070.00420.90
8.1.220.0080.00017.74
8.1.210.0090.00018.86
8.1.200.0060.00317.25
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0080.00322.05
8.1.150.0030.00618.76
8.1.140.0000.00717.50
8.1.130.0030.00317.61
8.1.120.0000.00717.46
8.1.110.0070.00017.50
8.1.100.0000.00817.41
8.1.90.0070.00017.53
8.1.80.0030.00517.38
8.1.70.0000.00717.48
8.1.60.0050.00317.56
8.1.50.0000.01117.39
8.1.40.0080.00017.32
8.1.30.0080.00017.45
8.1.20.0020.00517.55
8.1.10.0070.00017.46
8.1.00.0050.00317.38
8.0.300.0000.00819.89
8.0.290.0020.00516.63
8.0.280.0000.00718.46
8.0.270.0000.00716.82
8.0.260.0030.00617.17
8.0.250.0030.00516.84
8.0.240.0060.00017.00
8.0.230.0000.00716.95
8.0.220.0000.00716.81
8.0.210.0070.00016.94
8.0.200.0040.00416.96
8.0.190.0000.00816.96
8.0.180.0080.00016.92
8.0.170.0090.00016.85
8.0.160.0040.00316.89
8.0.150.0000.00716.72
8.0.140.0040.00416.87
8.0.130.0080.00013.39
8.0.120.0040.00416.83
8.0.110.0040.00416.90
8.0.100.0040.00416.79
8.0.90.0080.00016.70
8.0.80.0090.00616.89
8.0.70.0040.00416.93
8.0.60.0040.00416.84
8.0.50.0040.00416.69
8.0.30.0130.00516.99
8.0.20.0110.00717.40
8.0.10.0050.00316.96
8.0.00.0090.00816.91
7.4.330.0020.00215.15
7.4.320.0060.00016.43
7.4.300.0070.00016.51
7.4.290.0000.00716.52
7.4.280.0000.00916.55
7.4.270.0000.00716.61
7.4.260.0050.00216.49
7.4.250.0040.00416.49
7.4.240.0030.00316.52
7.4.230.0070.00016.48
7.4.220.0070.01116.45
7.4.210.0140.00416.67
7.4.200.0040.00416.34
7.4.160.0080.00816.55
7.4.150.0060.01117.40
7.4.140.0080.01417.86
7.4.130.0030.01316.51
7.4.120.0120.00816.39
7.4.110.0030.01316.48
7.4.100.0070.01116.60
7.4.90.0070.01016.56
7.4.80.0100.00619.39
7.4.70.0060.01116.45
7.4.60.0030.01416.44
7.4.50.0000.00816.27
7.4.40.0060.01016.43
7.4.30.0140.00316.58
7.4.00.0070.00715.02
7.3.330.0060.00013.10
7.3.320.0030.00513.31
7.3.310.0050.00316.27
7.3.300.0030.00316.24
7.3.290.0070.01116.23
7.3.280.0070.01216.20
7.3.270.0080.00817.40
7.3.260.0140.00316.16
7.3.250.0100.01016.19
7.3.240.0120.00616.35
7.3.230.0060.00916.39
7.3.210.0070.01416.44
7.3.200.0070.01016.68
7.3.190.0060.00916.56
7.3.180.0110.01116.36
7.3.170.0160.00016.30
7.3.160.0090.00916.24
7.3.120.0090.00614.54
7.3.110.0070.01114.72
7.3.100.0090.00914.98
7.3.90.0090.00014.92
7.3.80.0040.00814.73
7.3.70.0000.01314.91
7.3.60.0070.00714.48
7.3.50.0100.00714.80
7.3.40.0030.01214.64
7.3.30.0040.01114.63
7.3.20.0080.00816.63
7.3.10.0040.00816.58
7.3.00.0110.00016.58
7.2.330.0140.00316.72
7.2.320.0060.01316.52
7.2.310.0060.01216.54
7.2.300.0060.01016.47
7.2.290.0100.00616.75
7.2.250.0040.01515.16
7.2.240.0070.01115.18
7.2.230.0130.00314.97
7.2.220.0050.00514.75
7.2.210.0080.00315.28
7.2.200.0070.01014.86
7.2.190.0040.01115.00
7.2.180.0130.00314.74
7.2.170.0000.01215.13
7.2.80.0070.00316.80
7.2.60.0100.00316.45
7.2.00.0100.00319.11
7.1.330.0030.01015.57
7.1.320.0070.00715.77
7.1.310.0000.01315.68
7.1.300.0030.01215.47
7.1.290.0000.00815.89
7.1.280.0100.00315.60
7.1.270.0110.00015.74
7.1.260.0040.00815.69
7.1.200.0070.00715.66
7.1.100.0080.00518.17
7.1.70.0000.00717.09
7.1.60.0070.01719.12
7.1.50.0030.01016.88
7.1.00.0030.07322.44
7.0.200.0270.00314.59
7.0.60.0070.06719.91
7.0.50.0130.04317.85
7.0.40.0100.04320.20
7.0.30.0600.07020.21
7.0.20.0270.07320.17
7.0.10.0000.04720.21
7.0.00.0070.07320.19
5.6.280.0000.07021.05
5.6.210.0130.08320.59
5.6.200.0100.07718.27
5.6.190.0100.05720.77
5.6.180.0530.02720.57
5.6.170.0230.06020.59
5.6.160.0070.08320.48
5.6.150.0070.06018.23
5.6.140.0070.05318.30
5.6.130.0070.06718.20
5.6.120.0170.04321.12
5.6.110.0000.10020.98
5.6.100.0100.06321.00
5.6.90.0100.06020.92
5.6.80.0100.03320.53
5.5.350.3070.03320.48
5.5.340.0070.06317.95
5.5.330.0200.07020.41
5.5.320.0200.04320.37
5.5.310.0130.05020.23
5.5.300.0030.08318.07
5.5.290.0100.07317.94
5.5.280.0030.04320.97
5.5.270.0100.03720.79
5.5.260.0070.08020.82
5.5.250.0070.08720.62
5.5.240.0000.08320.24
5.4.450.0630.05319.31
5.4.440.1000.05019.61
5.4.430.0770.06319.47
5.4.420.0870.06019.16
5.4.410.0970.06019.33
5.4.400.0930.05719.26
5.4.390.0800.05019.06
5.4.380.0800.04719.15
5.4.370.0830.04319.21
5.4.360.0770.05319.06
5.4.350.0800.04719.01
5.4.340.0870.05019.26
5.4.320.0800.05719.16
5.4.310.0800.04719.26
5.4.300.0800.06319.05
5.4.290.1200.06019.15
5.4.280.0830.06019.30
5.4.270.0730.06319.08
5.4.260.0800.05319.01
5.4.250.1130.06719.14
5.4.240.1130.07719.18
5.4.230.0970.05019.07
5.4.220.1000.04718.86
5.4.210.0670.06319.25
5.4.200.0670.06316.68
5.4.190.0170.05719.12
5.4.180.0170.05018.90
5.4.170.0770.06319.10
5.4.160.0930.06019.24
5.4.150.0970.05718.81
5.4.140.0430.06316.54
5.4.130.0070.05016.53
5.4.120.0530.05316.41
5.4.110.0900.04716.41
5.4.100.1030.06016.45
5.4.90.1030.07716.74
5.4.80.0900.05016.36
5.4.70.1170.05716.53
5.4.60.1170.06016.48
5.4.50.1130.06016.26
5.4.40.1000.05716.38
5.4.30.0130.06016.67
5.4.20.0130.06016.67
5.4.10.0330.06016.68
5.4.00.1170.06015.90
5.3.290.0930.06014.59
5.3.280.1130.06714.47
5.3.270.0230.06314.60
5.3.260.0000.08314.61
5.3.250.0430.05714.50
5.3.240.1100.05314.57
5.3.230.0900.05714.68
5.3.220.1230.04714.62
5.3.210.0830.05014.57
5.3.200.0770.05314.48
5.3.190.0870.05314.57
5.3.180.0330.05314.58
5.3.170.0200.04014.58
5.3.160.0170.04314.46
5.3.150.0600.05714.57
5.3.140.0800.04314.47
5.3.130.0670.06314.55
5.3.120.0870.04714.63
5.3.110.1000.05314.46
5.3.100.0730.05714.03
5.3.90.0870.04313.93
5.3.80.0830.04314.07
5.3.70.0970.04713.93
5.3.60.0930.05014.24
5.3.50.0930.05014.10
5.3.40.1070.05013.87
5.3.30.0930.05313.96
5.3.20.1130.06713.70
5.3.10.1030.05013.67
5.3.00.0930.04313.57
5.2.170.0800.06711.06
5.2.160.0670.04011.08
5.2.150.0600.04711.16
5.2.140.0600.04711.06
5.2.130.0800.03710.97
5.2.120.0670.04011.27
5.2.110.0730.04711.06
5.2.100.0930.04011.02
5.2.90.0730.04011.34
5.2.80.0730.05011.01
5.2.70.1030.05711.01
5.2.60.1000.03310.95
5.2.50.0800.03310.88
5.2.40.0670.03711.00
5.2.30.0570.05011.03
5.2.20.0600.04010.89
5.2.10.0430.04010.91
5.2.00.0100.03710.87
5.1.60.0030.0379.95
5.1.50.0130.0279.98
5.1.40.0030.05010.13
5.1.30.0530.03310.25
5.1.20.0500.03710.26
5.1.10.0500.03010.14
5.1.00.0430.04010.09
5.0.50.0400.0238.43
5.0.40.0330.0208.64
5.0.30.0070.0408.11
5.0.20.0030.0278.04
5.0.10.0070.0238.06
5.0.00.0100.0378.16
4.4.90.0030.0206.09
4.4.80.0230.0236.09
4.4.70.0270.0306.09
4.4.60.0230.0236.09
4.4.50.0230.0376.09
4.4.40.0330.0306.09
4.4.30.0370.0236.09
4.4.20.0270.0206.09
4.4.10.0230.0236.09
4.4.00.0270.0336.09
4.3.110.0300.0176.09
4.3.100.0170.0236.09
4.3.90.0230.0236.09
4.3.80.0330.0376.09
4.3.70.0330.0206.09
4.3.60.0230.0236.09
4.3.50.0030.0206.09
4.3.40.0030.0336.09
4.3.30.0000.0236.09
4.3.20.0000.0236.09
4.3.10.0070.0176.09
4.3.00.0070.0207.28

preferences:
38.64 ms | 401 KiB | 5 Q