3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { static function f() { $php = ' $c = new class () { function f() { return #[A(self::U)] static function () {}; } }; return $c->f(); '; 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.70.0100.01018.55
8.3.60.0120.00318.23
8.3.50.0110.00420.26
8.3.40.0040.01120.06
8.3.30.0120.00418.69
8.3.20.0000.00824.18
8.3.10.0000.00924.66
8.3.00.0040.00426.16
8.2.190.0100.01016.85
8.2.180.0140.00725.92
8.2.170.0150.00419.16
8.2.160.0060.00922.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0090.00026.16
8.2.120.0070.00318.16
8.2.110.0060.00319.38
8.2.100.0100.00317.84
8.2.90.0080.00017.75
8.2.80.0050.00318.73
8.2.70.0030.00617.75
8.2.60.0080.00017.75
8.2.50.0040.00418.16
8.2.40.0000.00818.16
8.2.30.0000.00718.07
8.2.20.0020.00520.33
8.2.10.0040.00417.79
8.2.00.0040.00419.32
8.1.280.0040.01125.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00620.82
8.1.230.0100.00720.83
8.1.220.0060.00318.60
8.1.210.0040.00818.97
8.1.200.0030.00517.35
8.1.190.0050.00317.35
8.1.180.0030.00718.10
8.1.170.0000.00817.62
8.1.160.0050.00318.81
8.1.150.0040.00418.64
8.1.140.0070.00017.46
8.1.130.0070.00018.89
8.1.120.0000.00817.44
8.1.110.0040.00417.48
8.1.100.0040.00417.39
8.1.90.0000.01017.45
8.1.80.0030.00517.50
8.1.70.0030.00317.45
8.1.60.0040.00417.51
8.1.50.0040.00417.55
8.1.40.0080.00017.56
8.1.30.0030.00517.56
8.1.20.0160.00917.60
8.1.10.0260.00017.57
8.1.00.0120.00617.53
8.0.300.0060.00319.93
8.0.290.0000.00716.88
8.0.280.0030.00518.51
8.0.270.0070.00016.76
8.0.260.0000.00618.37
8.0.250.0000.00716.90
8.0.240.0030.00317.04
8.0.230.0030.00316.91
8.0.220.0000.00816.98
8.0.210.0030.00316.98
8.0.200.0030.00316.95
8.0.190.0050.00316.90
8.0.180.0050.00216.91
8.0.170.0120.00017.00
8.0.160.0030.00617.00
8.0.150.0030.00316.78
8.0.140.0190.00316.92
8.0.130.0180.00416.80
8.0.120.0140.00716.86
8.0.110.0150.00616.89
8.0.100.0110.01016.83
8.0.90.0190.00416.86
8.0.80.0180.00416.95
8.0.70.0140.00516.86
8.0.60.0150.00916.80
8.0.50.0170.00516.91
8.0.30.0140.00716.92
8.0.20.0220.00016.95
8.0.10.0240.00017.09
7.4.330.0000.00515.55
7.4.320.0070.00016.63
7.4.300.0040.00416.55
7.4.290.0000.00816.35
7.4.280.0020.00516.44
7.4.270.0040.00416.50
7.4.260.0130.01016.41
7.4.250.0160.01016.47
7.4.240.0180.00016.44
7.4.230.0150.00816.37
7.4.220.0140.00716.46
7.4.210.0130.00916.61
7.4.200.0170.00416.57
7.4.190.0140.00716.54
7.4.180.0150.00516.54
7.4.160.0140.00716.57
7.4.150.0120.00916.52
7.4.140.0210.00016.47
7.4.130.0210.00016.45
7.4.120.0060.01616.45
7.4.110.0180.00316.45
7.4.100.0150.00716.54
7.4.90.0160.00316.46
7.4.80.0140.00716.46
7.4.70.0170.00316.36
7.4.60.0130.00716.23
7.4.50.0150.00516.30
7.4.40.0100.00516.38
7.4.30.0040.00416.47
7.4.20.0080.00416.45
7.4.10.0000.00816.50
7.4.00.0080.00016.59

preferences:
46.4 ms | 401 KiB | 5 Q