3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Name\Space; class Foo { public static function bar() { } } $reflection = new \ReflectionMethod('Name\\Space\\Foo', 'bar'); $closure = $reflection->getClosure(null); $reflection2 = new \ReflectionFunction($closure); echo PHP_EOL; echo PHP_EOL; $ReflectionClass = get_class($reflection); $ReflectionCeption = new \ReflectionClass($ReflectionClass); foreach ($ReflectionCeption->getMethods(\ReflectionMethod::IS_PUBLIC) as $Method) { if(!$Method->isStatic() && $Method->getNumberOfParameters() === 0) { echo sprintf('%s::%s(): ', $ReflectionClass, $Method->name); var_dump($Method->invoke($Reflection)); echo PHP_EOL; } }

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.00616.75
8.3.50.0110.00822.89
8.3.40.0000.01518.69
8.3.30.0080.00619.07
8.3.20.0080.00020.37
8.3.10.0040.00423.65
8.3.00.0040.00419.38
8.2.180.0130.00616.88
8.2.170.0070.01422.96
8.2.160.0000.01420.38
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0180.00026.16
8.2.120.0080.00020.97
8.2.110.0080.00421.04
8.2.100.0040.00818.03
8.2.90.0080.00019.22
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0030.00717.67
8.2.50.0030.00618.07
8.2.40.0000.00819.88
8.2.30.0020.00518.07
8.2.20.0070.00017.68
8.2.10.0070.00018.07
8.2.00.0040.00417.64
8.1.280.0070.00725.92
8.1.270.0030.00623.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00924.00
8.1.230.0110.00019.48
8.1.220.0000.00817.74
8.1.210.0000.01018.77
8.1.200.0070.00317.23
8.1.190.0000.00817.25
8.1.180.0050.00318.10
8.1.170.0040.00418.61
8.1.160.0020.00522.03
8.1.150.0040.00418.91
8.1.140.0000.00717.52
8.1.130.0070.00017.85
8.1.120.0040.00417.57
8.1.110.0000.00817.55
8.1.100.0050.00217.41
8.1.90.0040.00417.47
8.1.80.0070.00017.44
8.1.70.0000.00817.41
8.1.60.0040.00417.54
8.1.50.0040.00417.45
8.1.40.0000.00817.51
8.1.30.0000.00817.61
8.1.20.0040.00417.64
8.1.10.0040.00417.62
8.1.00.0040.00417.57
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0000.00718.52
8.0.270.0030.00317.27
8.0.260.0040.00417.25
8.0.250.0000.00716.91
8.0.240.0040.00416.97
8.0.230.0070.00017.04
8.0.220.0000.00717.00
8.0.210.0000.00716.89
8.0.200.0000.00616.96
8.0.190.0030.00917.09
8.0.180.0000.00816.98
8.0.170.0000.00716.88
8.0.160.0000.00716.99
8.0.150.0040.00416.89
8.0.140.0040.00416.86
8.0.130.0030.00613.40
8.0.120.0080.00016.98
8.0.110.0040.00416.96
8.0.100.0030.00516.85
8.0.90.0040.00416.88
8.0.80.0060.00916.97
8.0.70.0000.00716.77
8.0.60.0070.00016.98
8.0.50.0000.00716.87
8.0.30.0110.00917.02
8.0.20.0070.01217.40
8.0.10.0070.00017.16
8.0.00.0150.00916.79
7.4.330.0050.00015.10
7.4.320.0040.00416.52
7.4.300.0000.00716.61
7.4.290.0030.00316.52
7.4.280.0040.00416.52
7.4.270.0080.00016.62
7.4.260.0030.00316.54
7.4.250.0040.00416.59
7.4.240.0030.00316.60
7.4.230.0040.00416.71
7.4.220.0120.01316.50
7.4.210.0080.00516.57
7.4.200.0000.00816.56
7.4.160.0140.00316.50
7.4.150.0110.00817.40
7.4.140.0100.00717.86
7.4.130.0100.01016.56
7.4.120.0040.01316.52
7.4.110.0090.00916.46
7.4.100.0070.01016.53
7.4.90.0140.00316.66
7.4.80.0150.00319.39
7.4.70.0170.00616.64
7.4.60.0130.00316.63
7.4.50.0000.00416.54
7.4.40.0090.00616.48
7.4.30.0080.00816.46
7.4.00.0070.00714.87
7.3.330.0000.00513.25
7.3.320.0030.00313.23
7.3.310.0000.00816.27
7.3.300.0000.00716.34
7.3.290.0100.00716.37
7.3.280.0120.00416.35
7.3.270.0180.01017.40
7.3.260.0090.00916.23
7.3.250.0040.01316.36
7.3.240.0130.00916.69
7.3.230.0040.01616.50
7.3.210.0110.00916.41
7.3.200.0000.01719.39
7.3.190.0110.00716.66
7.3.180.0090.00616.43
7.3.170.0060.01016.49
7.3.160.0080.00816.60
7.3.10.0090.00616.37
7.3.00.0060.00616.49
7.2.330.0150.00416.53
7.2.320.0060.01116.85
7.2.310.0110.00716.58
7.2.300.0110.01116.80
7.2.290.0100.00716.80
7.2.130.0130.00016.91
7.2.120.0000.01516.76
7.2.110.0030.01017.00
7.2.100.0070.00717.08
7.2.90.0100.00317.09
7.2.80.0080.00316.81
7.2.70.0000.01316.95
7.2.60.0050.00916.97
7.2.50.0030.00616.87
7.2.40.0060.01017.16
7.2.30.0040.01116.98
7.2.20.0070.00317.00
7.2.10.0030.01016.90
7.2.00.0050.00518.11
7.1.250.0100.00315.64
7.1.200.0030.01015.84
7.1.100.0520.00415.68
7.1.70.0030.01716.96
7.1.60.0090.01519.40
7.1.50.0060.01616.69
7.1.00.0000.08022.43
7.0.200.0000.00716.75
7.0.140.0030.07322.10
7.0.60.0130.07720.04
7.0.50.0030.06017.89
7.0.40.0030.08720.11
7.0.30.0300.05020.30
7.0.20.0400.07020.06
7.0.10.0030.07720.23
7.0.00.0030.05020.23
5.6.280.0030.07021.08
5.6.210.0130.05720.54
5.6.200.0100.07318.15
5.6.190.0070.06020.55
5.6.180.0330.04720.33
5.6.170.0230.04320.55
5.6.160.0000.09020.52
5.6.150.0130.06718.19
5.6.140.0030.06718.28
5.6.130.0000.04318.14
5.6.120.0100.04321.02
5.6.110.0130.07721.13
5.6.100.0100.08020.95
5.6.90.0070.08321.07
5.6.80.0070.06020.36
5.5.350.4300.04020.50
5.5.340.0070.06018.07
5.5.330.0170.07320.59
5.5.320.0300.03720.46
5.5.310.0300.07720.41
5.5.300.0130.04717.98
5.5.290.0170.07717.99
5.5.280.0170.07020.81
5.5.270.0170.06720.88
5.5.260.0100.08020.88
5.5.250.0130.08020.79
5.5.240.0230.06720.27
5.4.450.1000.05719.48
5.4.440.0500.05719.32
5.4.430.0600.05019.59
5.4.420.0470.06319.50
5.4.410.0030.06018.98
5.4.400.0430.05318.79
5.4.390.0500.06318.79
5.4.380.0000.06018.61
5.4.370.0070.04018.70
5.4.360.0070.05318.73
5.4.350.0130.07012.04
5.4.340.0100.03912.04
5.4.320.0070.03912.53
5.4.310.0060.03812.52
5.4.300.0070.03512.53
5.4.290.0070.03712.52
5.4.280.0070.03412.41
5.4.270.0070.03512.41
5.4.260.0050.03812.42
5.4.250.0060.03712.42
5.4.240.0040.03912.42
5.4.230.0060.03812.41
5.4.220.0120.03112.41
5.4.210.0070.05012.41
5.4.200.0080.03612.41
5.4.190.0080.03412.40
5.4.180.0070.03412.41
5.4.170.0050.03712.41
5.4.160.0040.03812.42
5.4.150.0070.03512.41
5.4.140.0050.03812.09
5.4.130.0030.03912.08
5.4.120.0070.03512.04
5.4.110.0040.03712.04
5.4.100.0040.04312.04
5.4.90.0040.03812.03
5.4.80.0050.03812.03
5.4.70.0020.03912.03
5.4.60.0040.03612.04
5.4.50.0050.03612.04
5.4.40.0050.03512.02
5.4.30.0050.03612.01
5.4.20.0040.04512.02
5.4.10.0080.04812.02
5.4.00.0090.03311.50
5.3.290.0070.03712.80
5.3.280.0050.04212.71
5.3.270.0040.04212.72
5.3.260.0040.04112.72
5.3.250.0080.03512.72
5.3.240.0050.03912.72
5.3.230.0090.03412.71
5.3.220.0060.03612.68
5.3.210.0080.03612.68
5.3.200.0030.03912.68
5.3.190.0100.03312.68
5.3.180.0030.03912.68
5.3.170.0060.03712.67
5.3.160.0040.03912.67
5.3.150.0080.03712.67
5.3.140.0050.03712.66
5.3.130.0060.04012.66
5.3.120.0100.03812.66
5.3.110.0080.03612.66
5.3.100.0080.03712.14
5.3.90.0070.04112.12
5.3.80.0080.04412.12
5.3.70.0120.03112.12
5.3.60.0080.03312.10
5.3.50.0040.03712.05
5.3.40.0050.03712.05
5.3.30.0040.03712.01
5.3.20.0050.03711.79
5.3.10.0050.03511.75
5.3.00.0080.03411.75
5.2.170.0040.0319.18
5.2.160.0040.0299.18
5.2.150.0030.0319.18
5.2.140.0040.0319.18
5.2.130.0040.0349.14
5.2.120.0050.0319.14
5.2.110.0060.0279.14
5.2.100.0060.0279.14
5.2.90.0020.0319.14
5.2.80.0040.0319.14
5.2.70.0090.0289.14
5.2.60.0030.0369.09
5.2.50.0030.0309.05
5.2.40.0030.0299.04
5.2.30.0020.0319.01
5.2.20.0070.0269.00
5.2.10.0030.0298.92
5.2.00.0050.0288.78
5.1.60.0040.0248.06
5.1.50.0050.0238.07
5.1.40.0060.0288.05
5.1.30.0070.0248.40
5.1.20.0050.0298.42
5.1.10.0060.0238.14
5.1.00.0040.0258.14
5.0.50.0030.0206.62
5.0.40.0040.0186.48
5.0.30.0040.0306.29
5.0.20.0040.0186.26
5.0.10.0060.0176.25
5.0.00.0050.0286.23
4.4.90.0010.0164.78
4.4.80.0020.0154.75
4.4.70.0000.0184.75
4.4.60.0020.0164.75
4.4.50.0030.0204.77
4.4.40.0030.0314.71
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0020.0164.84
4.4.00.0010.0264.75
4.3.110.0000.0184.67
4.3.100.0050.0124.66
4.3.90.0020.0154.64
4.3.80.0040.0234.58
4.3.70.0000.0174.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0030.0234.54
4.3.30.0010.0173.29
4.3.20.0020.0173.26
4.3.10.0030.0143.22
4.3.00.0030.0207.13

preferences:
80.43 ms | 401 KiB | 5 Q