3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar; $class = new class {}; $function = function () {}; $reflectionClass = new \ReflectionClass($class); $reflectionFunction = new \ReflectionFunction($function); echo $reflectionClass->getNamespaceName(); echo EOL; echo $reflectionFunction->getNamespaceName();

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.0000.01518.43
8.3.50.0070.00716.15
8.3.40.0030.01318.92
8.3.30.0120.00318.79
8.3.20.0110.00419.23
8.3.10.0040.00423.66
8.3.00.0040.00420.52
8.2.180.0100.00718.54
8.2.170.0030.01222.96
8.2.160.0100.00321.06
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00021.13
8.2.120.0080.00026.35
8.2.110.0060.00321.17
8.2.100.0120.00017.84
8.2.90.0050.00317.63
8.2.80.0090.00017.97
8.2.70.0050.00317.91
8.2.60.0080.00018.09
8.2.50.0040.00418.10
8.2.40.0000.00719.30
8.2.30.0080.00020.58
8.2.20.0070.00018.13
8.2.10.0040.00418.13
8.2.00.0040.00419.42
8.1.280.0070.01125.92
8.1.270.0040.00423.87
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00417.54
8.1.230.0000.01120.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0060.00317.22
8.1.180.0050.00318.10
8.1.170.0030.00618.82
8.1.160.0020.00518.95
8.1.150.0040.00418.90
8.1.140.0060.00319.02
8.1.130.0080.00019.03
8.1.120.0040.00417.36
8.1.110.0040.00417.39
8.1.100.0000.00817.45
8.1.90.0020.00517.36
8.1.80.0000.00817.46
8.1.70.0000.01117.38
8.1.60.0030.00717.52
8.1.50.0090.00017.54
8.1.40.0030.00617.40
8.1.30.0080.00017.63
8.1.20.0060.00317.55
8.1.10.0070.00017.49
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.48
8.0.270.0030.00316.89
8.0.260.0030.00318.38
8.0.250.0090.00017.00
8.0.240.0000.00717.00
8.0.230.0030.00316.98
8.0.220.0040.00416.80
8.0.210.0070.00016.87
8.0.200.0030.00316.88
8.0.190.0000.00716.91
8.0.180.0000.00816.96
8.0.170.0050.00616.97
8.0.160.0040.00416.85
8.0.150.0000.00816.79
8.0.140.0000.00716.87
8.0.130.0030.00313.37
8.0.120.0000.00716.83
8.0.110.0000.00717.02
8.0.100.0000.00816.75
8.0.90.0040.00416.75
8.0.80.0050.01416.95
8.0.70.0050.00316.84
8.0.60.0000.00717.07
8.0.50.0030.00316.84
8.0.30.0140.00617.07
8.0.20.0180.00317.40
8.0.10.0070.00017.00
8.0.00.0080.00916.85
7.4.330.0050.00015.55
7.4.320.0030.00316.52
7.4.300.0000.00716.42
7.4.290.0030.00316.49
7.4.280.0050.00516.61
7.4.270.0030.00316.49
7.4.260.0030.00316.46
7.4.250.0070.00016.61
7.4.240.0080.00016.40
7.4.230.0000.00716.66
7.4.220.0060.00316.68
7.4.210.0050.01016.67
7.4.200.0070.00016.66
7.4.160.0080.00816.55
7.4.140.0120.00717.86
7.4.130.0110.00616.63
7.4.120.0100.00816.48
7.4.110.0140.00316.42
7.4.100.0100.00716.46
7.4.90.0120.01216.56
7.4.80.0060.01119.39
7.4.70.0110.00616.70
7.4.60.0110.00516.45
7.4.50.0100.00616.56
7.4.40.0080.00916.46
7.4.00.0030.01214.80
7.3.330.0000.00513.29
7.3.320.0000.00613.28
7.3.310.0070.00016.31
7.3.300.0000.00616.29
7.3.290.0030.00316.32
7.3.280.0100.00716.32
7.3.260.0100.00916.39
7.3.240.0110.00816.25
7.3.230.0130.00316.50
7.3.210.0070.01016.35
7.3.200.0150.00616.38
7.3.190.0090.01216.43
7.3.180.0060.01016.49
7.3.170.0090.00616.62
7.3.160.0060.01316.56
7.2.330.0140.00616.45
7.2.320.0070.01016.83
7.2.310.0040.01416.51
7.2.300.0030.01416.50
7.2.290.0020.01516.76
7.2.90.0250.00014.57
7.2.80.0310.00014.55
7.2.70.0340.00815.28
7.2.60.3880.00715.08
7.2.50.0190.00615.04
7.2.40.0140.00715.00
7.2.30.0500.00015.11
7.2.20.0000.01314.82
7.2.10.0160.00715.24
7.2.00.0230.00714.93
7.1.210.0090.00513.91
7.1.200.0100.00513.64
7.1.190.1610.00713.73
7.1.180.2310.00313.71
7.1.170.0370.00414.00
7.1.160.0080.00813.82
7.1.150.2410.00314.02
7.1.140.0330.01013.83
7.1.130.0200.00013.95
7.1.120.0180.00413.85
7.1.110.0120.00013.77
7.1.100.0080.00513.85
7.1.90.0160.00713.63
7.1.80.0960.00013.84
7.1.70.0100.00513.69
7.1.60.1590.00331.71
7.1.50.0260.01031.71
7.1.40.0250.01231.93
7.1.30.0250.00731.72
7.1.20.0320.00731.63
7.1.10.0300.00413.62
7.1.00.0090.00313.71

preferences:
59.34 ms | 400 KiB | 5 Q