3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handleError($level, $message, $file = '', $line = 0, $context = []) { throw new ErrorException($message, 0, $level, $file, $line); } set_error_handler('handleError'); class A { public function abc(): bool { return false; } } $r = new ReflectionMethod("A", "abc"); (string)$r->getReturnType() ?: "";

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.0120.00618.56
8.3.50.0120.00921.89
8.3.40.0000.01518.37
8.3.30.0100.00718.46
8.3.20.0080.00020.91
8.3.10.0040.00420.23
8.3.00.0000.00723.54
8.2.180.0120.00325.92
8.2.170.0140.00318.84
8.2.160.0140.00022.96
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0000.01019.16
8.2.100.0040.01117.90
8.2.90.0000.00917.63
8.2.80.0000.00818.78
8.2.70.0050.00317.63
8.2.60.0050.00518.03
8.2.50.0090.00018.10
8.2.40.0000.00719.42
8.2.30.0080.00019.23
8.2.20.0040.00417.93
8.2.10.0000.00719.36
8.2.00.0040.00419.18
8.1.280.0090.00625.92
8.1.270.0040.00423.76
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00424.02
8.1.230.0000.01117.77
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0060.00317.22
8.1.180.0060.00318.10
8.1.170.0040.00418.63
8.1.160.0040.00419.01
8.1.150.0040.00418.81
8.1.140.0000.00718.85
8.1.130.0000.00717.46
8.1.120.0040.00417.48
8.1.110.0000.00717.35
8.1.100.0000.00717.50
8.1.90.0030.00517.52
8.1.80.0040.00817.50
8.1.70.0030.00317.41
8.1.60.0000.00817.62
8.1.50.0000.00717.41
8.1.40.0040.00417.50
8.1.30.0040.00417.61
8.1.20.0080.00017.68
8.1.10.0050.00317.47
8.1.00.0040.00417.52
8.0.300.0030.00520.45
8.0.290.0040.00416.63
8.0.280.0030.00618.32
8.0.270.0040.00416.83
8.0.260.0030.00316.81
8.0.250.0030.00416.80
8.0.240.0000.00716.91
8.0.230.0070.00016.89
8.0.220.0000.00716.91
8.0.210.0000.00716.78
8.0.200.0060.00016.87
8.0.190.0070.00016.82
8.0.180.0040.00416.85
8.0.170.0030.00816.89
8.0.160.0040.00316.81
8.0.150.0040.00416.84
8.0.140.0000.00716.90
8.0.130.0000.00513.33
8.0.120.0000.00816.88
8.0.110.0040.00416.83
8.0.100.0040.00416.87
8.0.90.0040.00416.78
8.0.80.0040.01016.84
8.0.70.0040.00316.80
8.0.60.0040.00416.88
8.0.50.0040.00416.96
8.0.30.0070.01317.03
8.0.20.0060.01617.36
8.0.10.0000.00716.92
8.0.00.0090.01316.75
7.4.330.0000.00515.55
7.4.320.0060.00016.45
7.4.300.0050.00216.52
7.4.290.0050.00516.45
7.4.280.0030.00516.64
7.4.270.0070.00016.41
7.4.260.0040.00416.51
7.4.250.0000.00916.61
7.4.240.0000.00716.61
7.4.230.0000.00716.62
7.4.220.0000.00716.70
7.4.210.0080.00816.56
7.4.200.0070.00016.70
7.4.130.0060.01116.52
7.4.120.0100.00616.36
7.4.110.0190.00016.68
7.4.100.0100.00616.27
7.4.90.0130.00316.53
7.4.80.0110.01119.39
7.4.70.0030.01316.68
7.4.60.0100.01316.55
7.4.50.0040.01116.71
7.4.40.0060.00916.39
7.4.00.0030.01014.66
7.3.330.0000.00713.19
7.3.320.0000.00613.21
7.3.310.0000.00716.23
7.3.300.0000.00816.20
7.3.290.0100.00916.25
7.3.280.0090.01815.88
7.3.260.0090.01016.43
7.3.240.0080.00816.26
7.3.230.0030.01416.63
7.3.210.0160.00316.45
7.3.200.0090.00716.26
7.3.190.0160.00316.37
7.3.180.0090.00916.39
7.3.170.0080.00816.22
7.3.160.0210.00316.16
7.3.60.0090.00614.49
7.3.50.0100.00614.53
7.3.40.0070.00814.66
7.3.30.0070.00714.50
7.3.20.0080.00815.90
7.3.10.0130.00915.77
7.3.00.0090.00915.83
7.2.330.0130.00516.61
7.2.320.0180.00016.73
7.2.310.0070.01016.65
7.2.300.0130.00316.45
7.2.290.0110.01116.60
7.2.190.0050.01014.91
7.2.180.0100.01014.93
7.2.170.0080.00514.92
7.2.160.0020.01114.75
7.2.150.0150.00516.11
7.2.140.0110.00516.12
7.2.130.0110.00416.12
7.2.120.0140.00916.15
7.2.110.0100.00715.43
7.2.100.0170.00516.10
7.2.90.0100.00516.18
7.2.80.0070.01116.02
7.2.70.0090.00716.12
7.2.60.0120.00716.11
7.2.50.0080.01115.52
7.2.40.0090.00916.18
7.2.30.0100.00716.11
7.2.20.0090.01015.47
7.2.10.0130.00616.08
7.2.00.0150.00816.15
7.1.300.0120.00314.96
7.1.290.0080.00715.03
7.1.280.0130.00914.96
7.1.270.0140.00515.00
7.1.260.0080.01015.04
7.1.250.0090.00914.97

preferences:
34.18 ms | 401 KiB | 5 Q