3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MockReflectionMethod extends ReflectionFunctionAbstract { public static function export() { } public function __toString() { } } try { (new MockReflectionMethod)->isStatic(); } catch (Throwable $e) { echo "Caught Throwable: ", $e->getMessage(); } catch (Exception $e) { echo "Caught Exception: ", $e->getMessage(); } try { (new MockReflectionMethod)->getReturnType(); } catch (Throwable $e) { echo "Caught Throwable: ", $e->getMessage(); } catch (Exception $e) { echo "Caught Exception: ", $e->getMessage(); }

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.0110.00416.58
8.3.60.0040.01518.55
8.3.50.0100.00921.14
8.3.40.0070.00718.80
8.3.30.0120.00618.75
8.3.20.0030.01020.19
8.3.10.0040.00421.87
8.3.00.0040.00419.80
8.2.180.0110.00416.50
8.2.170.0120.00922.96
8.2.160.0120.00920.36
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0000.00817.63
8.2.110.0040.00720.49
8.2.100.0040.00817.75
8.2.90.0080.00319.23
8.2.80.0000.01117.97
8.2.70.0060.00317.75
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0050.00521.03
8.2.30.0030.00719.83
8.2.20.0000.00717.91
8.2.10.0000.00717.96
8.2.00.0050.00218.07
8.1.280.0060.00925.92
8.1.270.0070.01022.15
8.1.260.0000.00726.35
8.1.250.0130.00728.09
8.1.240.0090.00024.02
8.1.230.0070.00317.42
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00917.47
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0000.00818.70
8.1.160.0050.00522.20
8.1.150.0050.00318.86
8.1.140.0030.00517.51
8.1.130.0050.00217.72
8.1.120.0070.00017.39
8.1.110.0000.00817.55
8.1.100.0050.00317.36
8.1.90.0030.00417.49
8.1.80.0040.00417.47
8.1.70.0000.00717.51
8.1.60.0040.00417.54
8.1.50.0040.00417.44
8.1.40.0040.00417.58
8.1.30.0040.00417.59
8.1.20.0070.00017.68
8.1.10.0050.00317.63
8.1.00.0030.00517.53
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0070.00018.52
8.0.270.0000.00717.28
8.0.260.0030.00317.19
8.0.250.0000.00716.90
8.0.240.0000.00717.04
8.0.230.0030.00317.05
8.0.220.0050.00316.88
8.0.210.0040.00416.90
8.0.200.0030.00317.02
8.0.190.0080.00017.05
8.0.180.0030.00516.97
8.0.170.0050.00217.04
8.0.160.0030.00317.04
8.0.150.0050.00216.82
8.0.140.0070.00016.92
8.0.130.0000.00613.40
8.0.120.0000.00816.89
8.0.110.0050.00316.94
8.0.100.0000.00716.83
8.0.90.0040.00416.93
8.0.80.0110.00517.04
8.0.70.0000.00816.96
8.0.60.0000.00716.87
8.0.50.0000.00716.84
8.0.30.0050.01417.09
8.0.20.0170.00717.40
8.0.10.0040.00417.17
8.0.00.0050.01316.72
7.4.330.0030.00315.14
7.4.320.0070.00016.37
7.4.300.0030.00316.59
7.4.290.0060.00016.59
7.4.280.0040.00416.46
7.4.270.0030.00316.62
7.4.260.0080.00016.50
7.4.250.0040.00416.47
7.4.240.0050.00216.51
7.4.230.0000.00716.58
7.4.220.0060.02216.53
7.4.210.0060.00916.64
7.4.200.0000.00716.59
7.4.160.0030.01316.48
7.4.150.0160.01317.40
7.4.140.0060.01517.86
7.4.130.0110.00616.49
7.4.120.0140.00816.40
7.4.110.0110.00616.63
7.4.100.0100.01316.50
7.4.90.0110.00516.73
7.4.80.0110.00719.39
7.4.70.0090.01016.39
7.4.60.0110.01116.41
7.4.50.0080.00016.34
7.4.40.0080.00816.45
7.4.30.0130.00616.46
7.4.00.0060.00615.16
7.3.330.0060.00013.16
7.3.320.0000.00613.34
7.3.310.0000.00816.32
7.3.300.0070.00016.29
7.3.290.0100.00516.27
7.3.280.0050.01216.31
7.3.270.0040.01417.40
7.3.260.0070.01016.33
7.3.250.0140.00516.45
7.3.240.0170.00016.27
7.3.230.0070.01516.59
7.3.210.0070.01016.58
7.3.200.0130.00616.47
7.3.190.0070.01116.56
7.3.180.0100.00716.37
7.3.170.0030.01316.53
7.3.160.0100.00916.32
7.3.120.0030.01314.88
7.3.110.0110.00815.04
7.3.100.0000.01414.70
7.3.90.0070.01114.93
7.3.80.0030.01014.85
7.3.70.0060.01014.48
7.3.60.0060.00914.93
7.3.50.0100.00714.89
7.3.40.0000.01514.84
7.3.30.0100.00014.91
7.3.20.0060.01016.75
7.3.10.0050.00816.71
7.3.00.0070.00716.61
7.2.330.0060.01216.41
7.2.320.0140.00416.41
7.2.310.0130.00316.74
7.2.300.0060.01516.62
7.2.290.0090.01016.64
7.2.250.0030.01515.18
7.2.240.0130.00014.89
7.2.230.0070.01314.96
7.2.220.0130.00314.83
7.2.210.0030.00914.89
7.2.200.0000.01215.14
7.2.190.0040.01214.68
7.2.180.0030.00715.02
7.2.170.0030.00915.00
7.2.60.0060.01016.66
7.2.00.0070.00419.21
7.1.330.0060.00615.62
7.1.320.0060.00915.91
7.1.310.0070.00715.79
7.1.300.0070.00715.73
7.1.290.0030.00615.66
7.1.280.0060.00315.73
7.1.270.0100.00315.88
7.1.260.0030.01015.75
7.1.200.0070.00315.66
7.1.100.0000.00918.02
7.1.70.0000.01016.94
7.1.60.0130.01020.03
7.1.50.0100.01416.88
7.1.00.0030.07722.27
7.0.200.0500.00314.70
7.0.60.0070.07319.97
7.0.50.0100.03317.87
7.0.40.0200.06720.23
7.0.30.0500.07020.33
7.0.20.0330.07320.09
7.0.10.0100.04020.16
7.0.00.0030.04320.25
5.6.280.0000.07721.08
5.6.210.0030.08020.72
5.6.200.0030.08018.18
5.6.190.0070.04020.61
5.6.180.0200.05020.68
5.6.170.0200.07320.44
5.6.160.0100.08320.39
5.6.150.0030.08318.28
5.6.140.0030.08018.24
5.6.130.0030.04018.16
5.6.120.0070.04321.03
5.6.110.0030.09320.90
5.6.100.0100.07721.10
5.6.90.0100.08321.13
5.6.80.0070.04020.53
5.6.70.4600.03720.41
5.5.350.0070.03720.35
5.5.340.0100.04317.95
5.5.330.0000.09020.43
5.5.320.0370.07320.31
5.5.310.0170.06020.41
5.5.300.0100.03718.05
5.5.290.0030.07318.04
5.5.280.0100.08020.89
5.5.270.0030.08720.77
5.5.260.0200.08020.80
5.5.250.0000.05720.71
5.5.240.0030.07720.16
5.4.450.0500.05719.31
5.4.440.0500.07019.63
5.4.430.0530.05019.16
5.4.420.0500.05319.70
5.4.410.0470.05719.48
5.4.400.0470.05719.30
5.4.390.0670.05319.01
5.4.380.0570.04718.87
5.4.370.0530.05318.98
5.4.360.0770.04318.86
5.4.350.0570.04719.15
5.4.340.0400.06318.87
5.4.320.0500.06019.13
5.4.310.0570.04718.87
5.4.300.0500.05319.22
5.4.290.0600.05018.98
5.4.280.0600.04718.98
5.4.270.0800.05319.32
5.4.260.0570.04719.15
5.4.250.0670.03718.86
5.4.240.0800.04719.12
5.4.230.0670.06319.14
5.4.220.0670.07719.01
5.4.210.0630.04319.30
5.4.200.0670.03718.98
5.4.190.0670.05719.27
5.4.180.0600.04318.86
5.4.170.0770.05719.27
5.4.160.0430.05719.35
5.4.150.0470.05318.99
5.4.140.0470.05316.34
5.4.130.0630.04316.34
5.4.120.0600.04316.41
5.4.110.0700.04716.52
5.4.100.0600.04716.29
5.4.90.0730.03716.60
5.4.80.0630.04716.63
5.4.70.0270.04316.39
5.4.60.0300.07016.43
5.4.50.0030.07716.43
5.4.40.0070.06316.21
5.4.30.0000.03716.33
5.4.20.0130.03716.26

preferences:
41.91 ms | 401 KiB | 5 Q