3v4l.org

run code in 300+ PHP versions simultaneously
<?php #[Attribute] class x {} class y extends x {} $ref = new \ReflectionFunction(#[x, y] function () { }); try { $ref->getAttributes()[0]->newInstance(); $ref->getAttributes()[1]->newInstance(); } catch (\Error $e) { var_dump('Error : ', $e->getMessage()); } ?>

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.0120.00517.96
8.5.20.0110.01120.22
8.5.10.0100.00716.73
8.5.00.0130.01120.01
8.4.180.0080.01421.91
8.4.170.0130.00924.01
8.4.160.0140.00822.12
8.4.150.0080.00416.87
8.4.140.0140.00717.37
8.4.130.0120.00818.87
8.4.120.0040.00522.64
8.4.110.0120.00818.98
8.4.100.0160.00717.92
8.4.90.0080.00820.46
8.4.80.0050.00617.95
8.4.70.0050.00517.92
8.4.60.0150.00417.82
8.4.50.0130.00517.43
8.4.40.0170.00517.64
8.4.30.0190.00617.57
8.4.20.0210.00217.80
8.4.10.0180.00517.63
8.3.300.0130.00620.70
8.3.290.0100.01120.71
8.3.280.0090.01018.51
8.3.270.0160.00816.62
8.3.260.0130.00616.66
8.3.250.0100.00918.71
8.3.240.0110.00816.63
8.3.230.0180.00316.36
8.3.220.0070.00416.50
8.3.210.0060.00316.61
8.3.200.0200.00116.65
8.3.190.0150.00416.51
8.3.180.0070.00416.59
8.3.170.0170.00516.37
8.3.160.0160.00616.50
8.3.150.0190.00416.35
8.3.140.0170.00416.56
8.3.130.0150.00516.46
8.3.120.0140.00516.42
8.3.110.0160.00616.35
8.3.100.0200.00216.80
8.3.90.0190.00416.37
8.3.80.0160.00516.68
8.3.70.0180.00316.25
8.3.60.0190.00416.46
8.3.50.0060.00516.63
8.3.40.0130.00517.45
8.3.30.0180.00117.39
8.3.20.0130.00617.30
8.3.10.0130.00417.39
8.3.00.0050.00517.48
8.2.300.0150.00820.46
8.2.290.0120.00516.85
8.2.280.0140.00316.70
8.2.270.0140.00516.53
8.2.260.0140.00416.43
8.2.250.0150.00416.90
8.2.240.0150.00316.75
8.2.230.0170.00416.48
8.2.220.0150.00316.61
8.2.210.0150.00216.56
8.2.200.0110.00616.60
8.2.190.0140.00416.46
8.2.180.0130.00516.78
8.2.170.0170.00417.83
8.2.160.0170.00517.58
8.2.150.0080.00217.58
8.2.140.0080.00117.63
8.2.130.0050.00417.88
8.2.120.0050.00417.79
8.2.110.0060.00417.55
8.2.100.0040.00617.65
8.2.90.0070.00317.64
8.2.80.0050.00417.66
8.2.70.0030.00617.38
8.2.60.0060.00317.75
8.2.50.0080.00217.53
8.2.40.0040.00417.86
8.2.30.0060.00417.45
8.2.20.0050.00517.69
8.2.10.0070.00317.57
8.2.00.0060.00317.63
8.1.340.0120.01020.40
8.1.330.0150.00315.81
8.1.320.0140.00215.88
8.1.310.0140.00516.02
8.1.300.0130.00516.09
8.1.290.0160.00315.91
8.1.280.0150.00516.02
8.1.270.0160.00117.41
8.1.260.0140.00517.02
8.1.250.0140.00617.31
8.1.240.0120.00417.32
8.1.230.0160.00416.95
8.1.220.0150.00317.13
8.1.210.0200.00017.29
8.1.200.0150.00217.23
8.1.190.0120.00517.20
8.1.180.0100.00717.18
8.1.170.0130.00317.07
8.1.160.0110.00517.22
8.1.150.0130.00516.90
8.1.140.0120.00417.03
8.1.130.0140.00416.89
8.1.120.0150.00117.32
8.1.110.0110.00417.19
8.1.100.0180.00217.21
8.1.90.0140.00517.25
8.1.80.0150.00117.05
8.1.70.0130.00517.04
8.1.60.0160.00017.32
8.1.50.0150.00217.39
8.1.40.0140.00217.29
8.1.30.0140.00417.36
8.1.20.0170.00217.29
8.1.10.0110.00517.67
8.1.00.0140.00317.26
8.0.300.0130.00316.42
8.0.290.0160.00416.52
8.0.280.0140.00216.70
8.0.270.0150.00216.68
8.0.260.0140.00516.43
8.0.250.0160.00116.34
8.0.240.0110.00816.67
8.0.230.0130.00416.60
8.0.220.0110.00616.43
8.0.210.0170.00116.71
8.0.200.0120.00316.63
8.0.190.0160.00316.76
8.0.180.0130.00416.38
8.0.170.0150.00216.62
8.0.160.0140.00316.61
8.0.150.0100.00616.71
8.0.140.0170.00316.08
8.0.130.0130.00316.47
8.0.120.0130.00516.48
8.0.110.0130.00416.69
8.0.100.0160.00316.67
8.0.90.0140.00316.43
8.0.80.0160.00316.55
8.0.70.0140.00316.67
8.0.60.0140.00516.46
8.0.50.0120.00416.33
8.0.30.0130.00416.59
8.0.20.0120.00416.62
8.0.10.0150.00616.68
8.0.00.0130.00416.80
7.4.330.0070.00316.23
7.4.320.0130.00416.24
7.4.300.0150.00416.08
7.4.290.0120.00415.85
7.4.280.0140.00116.07
7.4.270.0140.00316.24
7.4.260.0110.00515.98
7.4.250.0110.00715.91
7.4.240.0150.00516.04
7.4.230.0120.00416.33
7.4.220.0120.00316.02
7.4.210.0150.00116.22
7.4.200.0130.00216.16
7.4.190.0110.00616.10
7.4.180.0120.00316.15
7.4.160.0120.00316.18
7.4.150.0140.00415.99
7.4.140.0140.00115.98
7.4.130.0110.00515.95
7.4.120.0100.00515.71
7.4.110.0130.00515.70
7.4.100.0120.00416.03
7.4.90.0110.00515.84
7.4.80.0150.00415.87
7.4.70.0120.00316.02
7.4.60.0100.00615.84
7.4.50.0150.00515.79
7.4.40.0140.00115.86
7.4.30.0120.00315.83
7.4.20.0140.00216.00
7.4.10.0120.00415.85
7.4.00.0140.00315.98
7.3.330.0120.00415.91
7.3.320.0130.00215.95
7.3.310.0130.00315.56
7.3.300.0120.00316.02
7.3.290.0110.00315.62
7.3.280.0110.00515.75
7.3.270.0130.00316.02
7.3.260.0130.00115.66
7.3.250.0130.00315.73
7.3.240.0120.00415.91
7.3.230.0100.00516.04
7.3.220.0130.00315.96
7.3.210.0120.00415.88
7.3.200.0130.00315.73
7.3.190.0120.00615.89
7.3.180.0230.00715.95
7.3.170.0120.00515.86
7.3.160.0130.00316.01
7.3.150.0150.00315.80
7.3.140.0130.00516.09
7.3.130.0060.00715.93
7.3.120.0090.00415.74
7.3.110.0120.00415.71
7.3.100.0090.00615.64
7.3.90.0110.00516.16
7.3.80.0130.00215.71
7.3.70.0110.00315.75
7.3.60.0130.00316.09
7.3.50.0140.00115.93
7.3.40.0120.00415.78
7.3.30.0140.00216.02
7.3.20.0130.00515.61
7.3.10.0150.00416.07
7.3.00.0140.00315.71
7.2.340.0130.00215.69
7.2.330.0140.00316.14
7.2.320.0140.00116.02
7.2.310.0150.00215.98
7.2.300.0110.00415.80
7.2.290.0140.00415.85
7.2.280.0110.00515.82
7.2.270.0090.00515.82
7.2.260.0140.00315.96
7.2.250.0140.00216.07
7.2.240.0140.00115.75
7.2.230.0150.00115.75
7.2.220.0120.00415.91
7.2.210.0110.00415.88
7.2.200.0140.00316.19
7.2.190.0100.00516.10
7.2.180.0120.00515.89
7.2.170.0130.00315.90
7.2.160.0110.00516.20
7.2.150.0150.00215.96
7.2.140.0160.00315.95
7.2.130.0170.00115.92
7.2.120.0140.00516.33
7.2.110.0170.00116.25
7.2.100.0110.00516.14
7.2.90.0150.00416.23
7.2.80.0130.00515.83
7.2.70.0120.00516.25
7.2.60.0130.00315.97
7.2.50.0540.00315.97
7.2.40.0160.00016.15
7.2.30.0140.00516.15
7.2.20.0140.00216.16
7.2.10.0120.00616.34
7.2.00.0130.00416.13
7.1.330.0120.00415.12
7.1.320.0140.00315.16
7.1.310.0110.00415.07
7.1.300.0130.00314.96
7.1.290.0130.00415.14
7.1.280.0120.00315.03
7.1.270.0120.00414.86
7.1.260.0140.00215.08
7.1.250.0130.00215.12
7.1.240.0100.00514.88
7.1.230.0140.00214.98
7.1.220.0130.00315.00
7.1.210.0120.00314.82
7.1.200.0110.00514.93
7.1.190.0130.00415.05
7.1.180.0120.00514.99
7.1.170.0260.00415.08
7.1.160.0150.00114.88
7.1.150.0110.00614.78
7.1.140.0120.00414.86
7.1.130.0110.00314.87
7.1.120.0110.00615.03
7.1.110.0140.00315.07
7.1.100.0150.00115.04
7.1.90.0150.00214.95
7.1.80.0120.00614.90
7.1.70.0150.00114.84
7.1.60.0100.00514.77
7.1.50.0100.00514.50
7.1.40.0140.00214.96
7.1.30.0150.00114.96
7.1.20.0120.00414.98
7.1.10.0140.00414.87
7.1.00.0140.00314.77
7.0.330.0130.00314.30
7.0.320.0130.00314.71
7.0.310.0130.00114.97
7.0.300.0110.00414.56
7.0.290.0720.00314.76
7.0.280.0150.00214.75
7.0.270.0120.00314.64
7.0.260.0110.00514.88
7.0.250.0100.00514.80
7.0.240.0120.00414.43
7.0.230.0140.00314.87
7.0.220.0090.00614.87
7.0.210.0080.00614.64
7.0.200.0160.00414.88
7.0.190.0110.00514.81
7.0.180.0100.00415.00
7.0.170.0120.00414.93
7.0.160.0140.00314.64
7.0.150.0140.00114.64
7.0.140.0120.00414.59
7.0.130.0130.00314.86
7.0.120.0130.00114.86
7.0.110.0080.00614.53
7.0.100.0100.00514.68
7.0.90.0110.00414.71
7.0.80.0130.00314.66
7.0.70.0340.00414.63
7.0.60.0120.00414.46
7.0.50.0130.00114.46
7.0.40.0110.00414.88
7.0.30.0140.00414.64
7.0.20.0120.00514.71
7.0.10.0120.00514.64
7.0.00.0110.00314.65
5.6.400.0090.00415.31
5.6.390.0110.00315.48
5.6.380.0130.00215.18
5.6.370.0090.00415.48
5.6.360.0090.00515.34
5.6.350.0120.00115.46
5.6.340.0090.00415.19
5.6.330.0080.00515.30
5.6.320.0120.00215.34
5.6.310.0130.00315.30
5.6.300.0120.00215.21
5.6.290.0120.00315.35
5.6.280.0100.00315.11
5.6.270.0120.00215.49
5.6.260.0130.00115.49
5.6.250.0100.00515.15
5.6.240.0100.00415.37
5.6.230.0100.00315.50
5.6.220.0090.00515.26
5.6.210.0120.00215.34
5.6.200.0100.00415.68
5.6.190.0130.00115.62
5.6.180.0090.00415.35
5.6.170.0100.00415.50
5.6.160.0120.00315.20
5.6.150.0110.00215.81
5.6.140.0110.00315.42
5.6.130.0100.00415.54
5.6.120.0100.00415.57
5.6.110.0100.00415.40
5.6.100.0110.00315.50
5.6.90.0100.00415.31
5.6.80.0120.00215.23
5.6.70.0120.00215.32
5.6.60.0110.00215.38
5.6.50.0080.00615.25
5.6.40.0090.00415.44
5.6.30.0120.00115.38
5.6.20.0100.00315.27
5.6.10.0100.00315.19
5.6.00.0130.00115.51
5.5.380.0070.00615.49
5.5.370.0120.00115.43
5.5.360.0120.00315.39
5.5.350.0110.00415.33
5.5.340.0100.00415.19
5.5.330.0110.00215.22
5.5.320.0090.00415.04
5.5.310.0080.00515.24
5.5.300.0120.00115.46
5.5.290.0090.00515.20
5.5.280.0110.00215.13
5.5.270.0070.00615.40
5.5.260.0130.00115.11
5.5.250.0120.00215.48
5.5.240.0110.00315.48
5.5.230.0110.00215.45
5.5.220.0100.00315.52
5.5.210.0090.00515.18
5.5.200.0120.00214.91
5.5.190.0090.00415.31
5.5.180.0100.00315.30
5.5.170.0090.00415.27
5.5.160.0130.00015.36
5.5.150.0110.00315.25
5.5.140.0090.00415.12
5.5.130.0090.00315.03
5.5.120.0100.00315.13
5.5.110.0090.00514.89
5.5.100.0090.00515.34
5.5.90.0110.00215.25
5.5.80.0080.00615.29
5.5.70.0080.00515.65
5.5.60.0070.00515.18
5.5.50.0080.00415.40
5.5.40.0100.00315.38
5.5.30.0120.00215.21
5.5.20.0110.00415.21
5.5.10.0130.00115.25
5.5.00.0100.00215.49
5.4.450.0070.00312.83
5.4.440.0090.00012.83
5.4.430.0090.00112.83
5.4.420.0080.00312.83
5.4.410.0080.00312.83
5.4.400.0060.00412.83
5.4.390.0090.00112.83
5.4.380.0080.00312.83
5.4.370.0080.00312.83
5.4.360.0090.00112.83
5.4.350.0080.00312.83
5.4.340.0100.00112.83
5.4.330.0070.00212.83
5.4.320.0090.00112.83
5.4.310.0080.00312.83
5.4.300.0090.00212.83
5.4.290.0100.00312.83
5.4.280.0080.00212.83
5.4.270.0070.00312.83
5.4.260.0060.00412.83
5.4.250.0070.00412.83
5.4.240.0080.00312.83
5.4.230.0110.00012.83
5.4.220.0090.00112.83
5.4.210.0080.00312.83
5.4.200.0070.00312.83
5.4.190.0090.00112.83
5.4.180.0070.00312.83
5.4.170.0100.00112.83
5.4.160.0090.00212.83
5.4.150.0100.00112.83
5.4.140.0070.00312.83
5.4.130.0090.00112.83
5.4.120.0090.00112.83
5.4.110.0080.00312.83
5.4.100.0080.00212.83
5.4.90.0110.00112.83
5.4.80.0100.00012.83
5.4.70.0090.00112.83
5.4.60.0050.00412.83
5.4.50.0100.00212.83
5.4.40.0070.00412.83
5.4.30.0110.00112.83
5.4.20.0080.00212.83
5.4.10.0070.00312.83
5.4.00.0070.00212.83
5.3.290.0060.00412.83
5.3.280.0090.00312.83
5.3.270.0080.00212.83
5.3.260.0060.00412.83
5.3.250.0080.00312.83
5.3.240.0070.00312.83
5.3.230.0080.00212.83
5.3.220.0080.00212.83
5.3.210.0070.00312.83
5.3.200.0070.00312.83
5.3.190.0100.00012.83
5.3.180.0080.00312.83
5.3.170.0090.00412.83
5.3.160.0050.00512.83
5.3.150.0090.00212.83
5.3.140.0110.00112.83
5.3.130.0130.00212.83
5.3.120.0080.00212.83
5.3.110.0070.00312.83
5.3.100.0070.00212.83
5.3.90.0070.00312.83
5.3.80.0060.00312.83
5.3.70.0100.00112.83
5.3.60.0090.00112.83
5.3.50.0080.00312.83
5.3.40.0060.00512.83
5.3.30.0110.00112.83
5.3.20.0080.00312.83
5.3.10.0080.00212.83
5.3.00.0070.00212.83
5.2.170.0060.00312.83
5.2.160.0060.00212.83
5.2.150.0070.00112.83
5.2.140.0060.00212.83
5.2.130.0080.00212.83
5.2.120.0080.00212.83
5.2.110.0060.00212.83
5.2.100.0060.00212.83
5.2.90.0060.00312.83
5.2.80.0080.00012.83
5.2.70.0060.00212.83
5.2.60.0060.00212.83
5.2.50.0050.00312.83
5.2.40.0040.00312.83
5.2.30.0060.00212.83
5.2.20.0050.00312.83
5.2.10.0070.00112.83
5.2.00.0050.00212.83
5.1.60.0040.00112.83
5.1.50.0040.00212.83
5.1.40.0050.00212.83
5.1.30.0060.00212.83
5.1.20.0060.00112.83
5.1.10.0070.00012.83
5.1.00.0040.00412.83
5.0.50.0050.00112.83
5.0.40.0050.00212.83
5.0.30.0050.00212.83
5.0.20.0040.00212.83
5.0.10.0040.00312.83
5.0.00.0060.00012.83
4.4.90.0040.00012.83
4.4.80.0030.00012.83
4.4.70.0030.00012.83
4.4.60.0020.00112.83
4.4.50.0030.00012.83
4.4.40.0010.00312.83
4.4.30.0030.00012.83
4.4.20.0040.00012.83
4.4.10.0030.00012.83
4.4.00.0040.00012.83
4.3.110.0030.00112.83
4.3.100.0020.00112.83
4.3.90.0030.00012.83
4.3.80.0030.00012.83
4.3.70.0030.00212.83
4.3.60.0010.00212.83
4.3.50.0030.00112.83
4.3.40.0040.00012.83
4.3.30.0020.00112.83
4.3.20.0020.00112.83
4.3.10.0010.00212.83
4.3.00.0030.00112.83

preferences:
61.22 ms | 2732 KiB | 5 Q