3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public const BAR = ''; public $bar; public function bar() {} } var_export((new ReflectionClass('Foo'))->getDocComment('foo'));

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.0110.00718.68
8.3.50.0100.00716.50
8.3.40.0150.00618.94
8.3.30.0070.00718.70
8.3.20.0050.00221.81
8.3.10.0000.00823.49
8.3.00.0000.00722.09
8.2.180.0090.00616.88
8.2.170.0070.00722.96
8.2.160.0130.00720.52
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0100.00020.38
8.2.110.0000.01120.35
8.2.100.0040.00717.72
8.2.90.0050.00317.91
8.2.80.0040.00418.83
8.2.70.0040.00417.74
8.2.60.0050.00317.63
8.2.50.0000.00818.10
8.2.40.0000.00920.64
8.2.30.0000.01020.58
8.2.20.0070.00018.07
8.2.10.0000.00717.99
8.2.00.0080.00017.98
8.1.280.0130.00325.92
8.1.270.0070.00024.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0030.00622.48
8.1.230.0070.00422.66
8.1.220.0070.00017.74
8.1.210.0080.00018.77
8.1.200.0040.00417.22
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.54
8.1.160.0040.00418.68
8.1.150.0040.00421.94
8.1.140.0030.00617.49
8.1.130.0060.00018.92
8.1.120.0000.00817.30
8.1.110.0050.00317.38
8.1.100.0040.00517.38
8.1.90.0000.00817.30
8.1.80.0040.00417.39
8.1.70.0000.01017.13
8.1.60.0080.00017.36
8.1.50.0050.00317.44
8.1.40.0060.00317.46
8.1.30.0030.00617.48
8.1.20.0040.00417.51
8.1.10.0040.00417.46
8.1.00.0000.00817.48
8.0.300.0040.00419.95
8.0.290.0040.00416.63
8.0.280.0040.00418.29
8.0.270.0030.00317.26
8.0.260.0000.00616.74
8.0.250.0000.00717.05
8.0.240.0040.00416.82
8.0.230.0000.00716.88
8.0.220.0030.00316.79
8.0.210.0000.00816.82
8.0.200.0030.00316.86
8.0.190.0070.00016.90
8.0.180.0040.00316.85
8.0.170.0030.00616.80
8.0.160.0000.01216.84
8.0.150.0050.00316.72
8.0.140.0070.00016.84
8.0.130.0030.00313.27
8.0.120.0070.00316.83
8.0.110.0000.00716.92
8.0.100.0030.00316.75
8.0.90.0040.00416.80
8.0.80.0060.01316.84
8.0.70.0040.00416.68
8.0.60.0000.00716.74
8.0.50.0040.00416.71
8.0.30.0090.01117.00
8.0.20.0110.00717.40
8.0.10.0040.00416.85
8.0.00.0080.01016.65
7.4.330.0050.00015.55
7.4.320.0000.00716.36
7.4.300.0000.00616.46
7.4.290.0030.00316.34
7.4.280.0000.00716.26
7.4.270.0050.00216.44
7.4.260.0000.00716.34
7.4.250.0040.00416.40
7.4.240.0070.00016.38
7.4.230.0030.00316.46
7.4.220.0070.00016.43
7.4.210.0080.00916.44
7.4.200.0070.00016.49
7.4.160.0110.00716.50
7.4.140.0110.00717.86
7.4.130.0120.00616.39
7.4.120.0090.01016.40
7.4.110.0060.01216.40
7.4.100.0120.00616.48
7.4.90.0120.00816.30
7.4.80.0140.00619.39
7.4.70.0080.00816.48
7.4.60.0030.01316.32
7.4.50.0070.00716.20
7.4.40.0130.00316.37
7.4.00.0030.01415.04
7.3.330.0000.00513.24
7.3.320.0000.00513.18
7.3.310.0040.00416.09
7.3.300.0000.00616.17
7.3.290.0030.00316.07
7.3.280.0100.00516.22
7.3.260.0140.00416.34
7.3.240.0100.01016.33
7.3.230.0100.00716.22
7.3.210.0090.00616.37
7.3.200.0030.01316.30
7.3.190.0080.00816.23
7.3.180.0030.01316.04
7.3.170.0080.00816.29
7.3.160.0070.01016.36
7.2.330.0100.01016.33
7.2.320.0090.01216.20
7.2.310.0130.01016.60
7.2.300.0110.01216.36
7.2.290.0090.00916.24
7.2.60.0140.00016.55
7.2.30.0110.01218.78
7.2.20.0090.01219.66
7.2.10.0110.01319.73
7.2.00.0120.01319.66
7.1.200.0070.00415.52
7.1.150.0120.01118.60
7.1.140.0080.01218.72
7.1.130.0080.01018.53
7.1.120.0080.01218.51
7.1.110.0090.01117.83
7.1.100.0090.01117.92
7.1.90.0080.01117.97
7.1.80.0070.01417.84
7.1.70.0070.01017.08
7.1.60.0330.01734.93
7.1.50.0270.01434.56
7.1.40.0300.01434.36
7.1.30.0300.01334.28
7.1.20.0290.01634.41
7.1.10.0100.01016.39
7.1.00.0090.01316.61

preferences:
55.16 ms | 400 KiB | 5 Q