3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { static function f() { $php = ' namespace U; return #[A(self::U)] static function () {}; '; return eval($php); } } $rf = new \ReflectionFunction(C::f()); $ra = $rf->getAttributes()[0]; $ra->getArguments();

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.0040.01118.43
8.3.50.0090.00620.07
8.3.40.0140.00019.92
8.3.30.0100.00618.89
8.3.20.0040.00424.18
8.3.10.0030.01424.66
8.3.00.0000.00726.16
8.2.180.0060.01325.92
8.2.170.0110.00419.14
8.2.160.0110.00322.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00420.87
8.2.110.0060.00320.35
8.2.100.0040.00817.84
8.2.90.0000.00818.05
8.2.80.0030.00518.77
8.2.70.0000.00817.75
8.2.60.0000.00817.63
8.2.50.0080.00018.04
8.2.40.0040.00418.16
8.2.30.0030.00618.16
8.2.20.0040.00420.33
8.2.10.0040.00417.83
8.2.00.0070.00019.30
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0100.00023.77
8.1.230.0000.01120.91
8.1.220.0080.00018.66
8.1.210.0080.00018.77
8.1.200.0080.00017.35
8.1.190.0030.00517.35
8.1.180.0030.00518.10
8.1.170.0030.00517.62
8.1.160.0030.00518.80
8.1.150.0000.00818.56
8.1.140.0040.00417.46
8.1.130.0000.00718.82
8.1.120.0040.00417.52
8.1.110.0080.00017.30
8.1.100.0000.00717.48
8.1.90.0030.00517.38
8.1.80.0000.00717.49
8.1.70.0070.00017.52
8.1.60.0080.00017.56
8.1.50.0060.00317.50
8.1.40.0000.00817.55
8.1.30.0040.00417.54
8.1.20.0220.00417.62
8.1.10.0230.00417.57
8.1.00.0090.00617.36
8.0.300.0030.00718.77
8.0.290.0000.00716.88
8.0.280.0030.00318.42
8.0.270.0040.00416.90
8.0.260.0070.00018.34
8.0.250.0000.00817.09
8.0.240.0000.00616.92
8.0.230.0070.00017.04
8.0.220.0080.00016.96
8.0.210.0070.00016.93
8.0.200.0030.00316.93
8.0.190.0000.00717.05
8.0.180.0050.00216.95
8.0.170.0000.01016.97
8.0.160.0050.00516.97
8.0.150.0040.00416.95
8.0.140.0210.00016.79
8.0.130.0170.00516.94
8.0.120.0110.00916.84
8.0.110.0160.00516.99
8.0.100.0130.00816.93
8.0.90.0160.00516.90
8.0.80.0140.00716.91
8.0.70.0200.00316.93
8.0.60.0150.00616.88
8.0.50.0160.00416.82
8.0.30.0160.00516.81
8.0.20.0130.00917.01
8.0.10.0200.00316.90
7.4.330.0020.00215.55
7.4.320.0030.00616.57
7.4.300.0040.00416.59
7.4.290.0080.00016.37
7.4.280.0070.00016.51
7.4.270.0200.00516.58
7.4.260.0190.00616.54
7.4.250.0230.00016.48
7.4.240.0100.01016.35
7.4.230.0190.00416.42
7.4.220.0110.00816.58
7.4.210.0140.00716.55
7.4.200.0180.00316.62
7.4.190.0160.00416.53
7.4.180.0100.01016.55
7.4.160.0070.01416.54
7.4.150.0170.00016.53
7.4.140.0090.00916.53
7.4.130.0110.00716.48
7.4.120.0140.00716.50
7.4.110.0140.00716.44
7.4.100.0220.00016.41
7.4.90.0120.00816.30
7.4.80.0120.00916.53
7.4.70.0150.00716.41
7.4.60.0160.00316.43
7.4.50.0200.00016.38
7.4.40.0020.00716.31
7.4.30.0050.00516.54
7.4.20.0070.00516.46
7.4.10.0040.00416.44
7.4.00.0000.00816.52

preferences:
53.75 ms | 400 KiB | 5 Q