3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} $a = function (Foo $var){ // }; $function = new ReflectionFunction($a); $parameter = $function->getParameters()[0]; $parameterType = $parameter->getType(); echo $parameterType->getName();

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.5.30.0110.00717.43
8.5.20.0080.00819.57
8.5.10.0120.00716.89
8.5.00.0170.00820.11
8.4.180.0120.00919.59
8.4.170.0160.00620.56
8.4.160.0090.01420.68
8.4.150.0050.00716.91
8.4.140.0150.00717.47
8.4.130.0040.00820.46
8.4.120.0040.00423.94
8.4.110.0130.00818.96
8.4.100.0060.00317.86
8.4.90.0110.01020.73
8.4.80.0100.00918.82
8.4.70.0140.00618.69
8.4.60.0110.00819.01
8.4.50.0150.00519.48
8.4.40.0150.00717.70
8.4.30.0070.01120.33
8.4.20.0100.01019.45
8.4.10.0040.00419.04
8.3.300.0090.01118.98
8.3.290.0120.00920.83
8.3.280.0110.00818.56
8.3.270.0130.00916.55
8.3.260.0110.00916.65
8.3.250.0050.00318.86
8.3.240.0110.01016.47
8.3.230.0150.00416.67
8.3.220.0100.00818.80
8.3.210.0040.00416.57
8.3.200.0040.00416.65
8.3.190.0110.00817.29
8.3.180.0100.00716.58
8.3.170.0110.00718.86
8.3.160.0080.01116.84
8.3.150.0080.00020.85
8.3.140.0110.00416.37
8.3.130.0040.00416.68
8.3.120.0080.00018.96
8.3.110.0060.00320.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0030.00616.75
8.3.70.0110.00718.31
8.3.60.0130.00318.43
8.3.50.0110.01118.21
8.3.40.0070.00720.29
8.3.30.0110.00718.84
8.3.20.0040.00424.18
8.3.10.0060.00324.66
8.3.00.0050.00326.16
8.2.300.0120.00720.31
8.2.290.0120.00716.65
8.2.280.0080.00618.44
8.2.270.0100.01017.40
8.2.260.0040.00420.17
8.2.250.0030.00616.73
8.2.240.0100.00018.83
8.2.230.0030.00622.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0060.00316.75
8.2.190.0190.00517.60
8.2.180.0130.00325.92
8.2.170.0140.00319.09
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0060.00321.91
8.2.100.0040.00817.91
8.2.90.0040.00417.62
8.2.80.0040.00418.90
8.2.70.0000.00817.47
8.2.60.0040.00417.50
8.2.50.0030.00618.05
8.2.40.0040.00417.93
8.2.30.0080.00017.69
8.2.20.0070.00018.25
8.2.10.0000.00818.82
8.2.00.0000.00719.23
8.1.340.0110.00821.92
8.1.330.0080.01116.05
8.1.320.0120.00817.93
8.1.310.0110.00718.68
8.1.300.0140.00717.79
8.1.290.0060.00318.88
8.1.280.0160.00325.92
8.1.270.0060.00323.91
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0110.00023.92
8.1.230.0090.00322.75
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00817.23
8.1.190.0050.00317.13
8.1.180.0000.00818.10
8.1.170.0040.00418.73
8.1.160.0030.00519.02
8.1.150.0040.00418.59
8.1.140.0000.00817.49
8.1.130.0030.00318.84
8.1.120.0040.00317.54
8.1.110.0080.00017.36
8.1.100.0000.00717.36
8.1.90.0040.00317.46
8.1.80.0050.00517.54
8.1.70.0000.00617.46
8.1.60.0000.00917.50
8.1.50.0030.00517.42
8.1.40.0040.00417.52
8.1.30.0030.00617.68
8.1.20.0040.00417.63
8.1.10.0050.00217.63
8.1.00.0030.00517.57
8.0.300.0050.00218.77
8.0.290.0050.00316.63
8.0.280.0030.00318.62
8.0.270.0030.00316.79
8.0.260.0030.00318.36
8.0.250.0070.00016.83
8.0.240.0000.00816.92
8.0.230.0000.00816.89
8.0.220.0000.00716.77
8.0.210.0040.00416.84
8.0.200.0000.00616.85
8.0.190.0000.00716.87
8.0.180.0000.00716.94
8.0.170.0040.00416.92
8.0.160.0040.00416.82
8.0.150.0000.00716.85
8.0.140.0080.00016.86
8.0.130.0030.00313.32
8.0.120.0030.00716.91
8.0.110.0040.00416.96
8.0.100.0000.00716.81
8.0.90.0080.00016.80
8.0.80.0030.00516.92
8.0.70.0050.00316.82
8.0.60.0070.00016.85
8.0.50.0000.00816.80
8.0.30.0040.00416.79
8.0.20.0000.00716.84
8.0.10.0050.00317.03
8.0.00.0050.00217.08
7.4.330.0020.00215.55
7.4.320.0060.00016.61
7.4.300.0040.00416.46
7.4.290.0000.00716.44
7.4.280.0040.00416.55
7.4.270.0040.00416.60
7.4.260.0030.00313.32
7.4.250.0000.00716.38
7.4.240.0000.00716.56
7.4.230.0030.00316.60
7.4.220.0000.00816.64
7.4.210.0000.00716.45
7.4.200.0070.00016.46
7.4.190.0040.00416.47
7.4.180.0030.00316.67
7.4.160.0040.00416.42
7.4.150.0070.00016.61
7.4.140.0000.00816.49
7.4.130.0050.00316.33
7.4.120.0030.00316.46
7.4.110.0040.00416.56
7.4.100.0040.00416.60
7.4.90.0000.00716.44
7.4.80.0070.00016.34
7.4.70.0000.00716.46
7.4.60.0050.00316.48
7.4.50.0000.00716.45
7.4.40.0050.00316.40
7.4.30.0030.00316.48
7.4.20.0040.00416.33
7.4.10.0050.00316.49
7.4.00.0030.00316.43
7.3.330.0030.00316.19
7.3.320.0030.00313.39
7.3.310.0000.00816.16
7.3.300.0030.00316.39
7.3.290.0000.00716.41
7.3.280.0060.00016.36
7.3.270.0070.00016.12
7.3.260.0070.00016.34
7.3.250.0060.00016.29
7.3.240.0040.00416.28
7.3.230.0080.00016.16
7.3.220.0000.00916.35
7.3.210.0050.00216.14
7.3.200.0000.00716.14
7.3.190.0070.00016.20
7.3.180.0000.00716.21
7.3.170.0000.00616.22
7.3.160.0030.00316.27
7.3.150.0030.00316.23
7.3.140.0070.00016.29
7.3.130.0000.00716.06
7.3.120.0060.00016.26
7.3.110.0000.00715.99
7.3.100.0030.00316.01
7.3.90.0030.00316.48
7.3.80.0040.00416.14
7.3.70.0040.00416.21
7.3.60.0060.00016.26
7.3.50.0080.00016.42
7.3.40.0000.00716.23
7.3.30.0030.00316.24
7.3.20.0030.00318.11
7.3.10.0050.00218.16
7.3.00.0030.00318.16

preferences:
44.96 ms | 1373 KiB | 5 Q