3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new class { /** @var \PHPStan\Parser\Parser */ private $parser; /** @var \PHPStan\Parser\FunctionCallStatementFinder */ private $functionCallStatementFinder; public function create(\PHPStan\Reflection\ClassReflection $declaringClass, \ReflectionMethod $reflection) : \PHPStan\Reflection\Php\PhpMethodReflection { return new \PHPStan\Reflection\Php\PhpMethodReflection($declaringClass, $reflection, $this->parser, $this->functionCallStatementFinder, true); } }; $obj2 = new class { /** @var \PHPStan\Parser\Parser */ private $parser; /** @var \PHPStan\Parser\FunctionCallStatementFinder */ private $functionCallStatementFinder; public function create(\PHPStan\Reflection\ClassReflection $declaringClass, \ReflectionMethod $reflection) : \PHPStan\Reflection\Php\PhpMethodReflection { return new \PHPStan\Reflection\Php\PhpMethodReflection($declaringClass, $reflection, $this->parser, $this->functionCallStatementFinder, true); } }; var_dump((new \ReflectionClass($obj))->getName()); var_dump((new \ReflectionClass($obj2))->getName());

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.00716.63
8.3.50.0110.01116.53
8.3.40.0140.00718.60
8.3.30.0160.00018.45
8.3.20.0070.00720.31
8.3.10.0040.01421.81
8.3.00.0040.00421.50
8.2.180.0060.00918.43
8.2.170.0110.00322.96
8.2.160.0170.00320.27
8.2.150.0130.00624.18
8.2.140.0150.00324.66
8.2.130.0040.00420.97
8.2.120.0040.00426.35
8.2.110.0120.00319.34
8.2.100.0070.00317.91
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0030.00717.67
8.2.50.0060.00318.09
8.2.40.0060.00620.58
8.2.30.0070.00019.32
8.2.20.0080.00017.64
8.2.10.0000.00717.97
8.2.00.0050.00218.11
8.1.280.0070.01025.92
8.1.270.0140.00422.19
8.1.260.0070.00028.09
8.1.250.0140.00328.09
8.1.240.0060.00322.07
8.1.230.0000.01120.94
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0020.00517.22
8.1.180.0030.00518.10
8.1.170.0040.00418.32
8.1.160.0070.00020.77
8.1.150.0090.00018.93
8.1.140.0030.00519.49
8.1.130.0000.00717.70
8.1.120.0040.00417.32
8.1.110.0000.00817.43
8.1.100.0040.00417.38
8.1.90.0000.00717.34
8.1.80.0030.00617.41
8.1.70.0000.00717.36
8.1.60.0080.00017.55
8.1.50.0060.00317.47
8.1.40.0000.00817.46
8.1.30.0040.00417.59
8.1.20.0000.00917.61
8.1.10.0030.00617.56
8.1.00.0040.00417.33
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0030.00318.35
8.0.270.0000.00817.32
8.0.260.0040.00417.13
8.0.250.0060.00016.96
8.0.240.0000.00716.83
8.0.230.0050.00216.97
8.0.220.0050.00316.77
8.0.210.0000.00716.86
8.0.200.0030.00717.02
8.0.190.0040.00416.84
8.0.180.0070.00016.94
8.0.170.0000.00916.95
8.0.160.0040.00416.97
8.0.150.0070.00016.75
8.0.140.0040.00416.77
8.0.130.0050.00013.36
8.0.120.0030.00516.86
8.0.110.0000.00816.73
8.0.100.0040.00416.77
8.0.90.0040.00416.78
8.0.80.0030.01116.85
8.0.70.0050.00316.70
8.0.60.0000.00716.91
8.0.50.0000.00816.91
8.0.30.0140.00616.97
8.0.20.0100.00917.40
8.0.10.0040.00417.09
8.0.00.0100.00916.67
7.4.330.0000.00516.71
7.4.320.0000.00616.66
7.4.300.0000.00716.67
7.4.290.0030.00316.61
7.4.280.0040.00416.35
7.4.270.0000.00816.59
7.4.260.0000.00716.48
7.4.250.0000.00716.57
7.4.240.0070.00016.50
7.4.230.0050.00216.70
7.4.220.0070.01116.51
7.4.210.0040.01116.62
7.4.200.0000.00716.51
7.4.160.0130.00316.32
7.4.150.0070.01017.40
7.4.140.0100.01017.86
7.4.130.0130.00416.45
7.4.120.0060.01416.53
7.4.110.0070.01016.52
7.4.100.0100.00716.32
7.4.90.0090.00716.32
7.4.80.0080.00819.39
7.4.70.0090.00616.56
7.4.60.0110.00516.54
7.4.50.0120.00416.55
7.4.40.0060.01616.49
7.4.30.0100.01016.58
7.4.00.0110.00415.17
7.3.330.0000.00513.23
7.3.320.0050.00013.17
7.3.310.0000.00716.17
7.3.300.0040.00416.06
7.3.290.0030.00316.13
7.3.280.0080.01016.15
7.3.270.0140.00417.40
7.3.260.0060.01516.46
7.3.250.0170.00616.38
7.3.240.0070.01416.44
7.3.230.0140.01016.44
7.3.210.0130.00316.25
7.3.200.0100.00719.39
7.3.190.0170.00016.51
7.3.180.0130.00316.11
7.3.170.0160.00016.27
7.3.160.0080.00816.06
7.2.330.0150.00416.33
7.2.320.0070.01116.54
7.2.310.0110.00616.55
7.2.300.0040.01316.64
7.2.290.0100.01016.62
7.2.60.0040.01116.74
7.2.00.0030.00618.80
7.1.200.0130.00015.70
7.1.100.0060.00618.17
7.1.70.0030.00517.13
7.1.60.0070.01819.40
7.1.50.0070.01116.84
7.1.00.0030.07722.44
7.0.200.0490.00314.69
7.0.60.0100.08721.66
7.0.50.0030.05017.88
7.0.40.0000.07020.23
7.0.30.0170.06720.24
7.0.20.0170.07320.17
7.0.10.0030.04320.06
7.0.00.0030.08320.16
5.6.280.0030.05321.09
5.6.210.0100.03720.51
5.6.200.0200.04318.27
5.6.190.0100.06720.67
5.6.180.0170.06020.55
5.6.170.0230.05720.54
5.6.160.0130.08020.46
5.6.150.0100.07718.16
5.6.140.0070.07018.23
5.6.130.0130.06318.15
5.6.120.0070.04020.89
5.6.110.0070.03721.02
5.6.100.0030.04320.88
5.6.90.0070.04020.99
5.6.80.0030.06020.40
5.5.350.0030.07720.41
5.5.340.0100.07717.99
5.5.330.0070.04320.47
5.5.320.0530.03320.31
5.5.310.0300.06020.34
5.5.300.0100.05717.95
5.5.290.0070.08318.09
5.5.280.0070.04020.76
5.5.270.0100.04320.79
5.5.260.0030.06720.87
5.5.250.0000.04320.49
5.5.240.0200.05720.27

preferences:
40.6 ms | 401 KiB | 5 Q