3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class Foo { public function __construct() { $closure = static function () : void { $this->bar(); }; $closure(); } public function bar() : void {} } new Foo();

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.40.0040.01118.65
8.3.30.0130.00318.86
8.3.20.0040.00419.15
8.3.10.0000.00823.41
8.3.00.0000.00823.48
8.2.170.0060.00922.96
8.2.160.0090.00620.16
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00420.39
8.2.120.0040.00426.35
8.2.110.0060.00320.38
8.2.100.0070.00717.72
8.2.90.0050.00317.75
8.2.80.0000.00918.73
8.2.70.0100.00017.63
8.2.60.0090.00018.04
8.2.50.0050.00318.07
8.2.40.0000.00818.22
8.2.30.0000.00818.12
8.2.20.0070.00018.11
8.2.10.0030.00518.05
8.2.00.0030.00319.45
8.1.270.0030.00622.10
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00318.81
8.1.230.0040.00717.64
8.1.220.0080.00017.79
8.1.210.0030.00518.77
8.1.200.0060.00317.36
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0000.00718.64
8.1.160.0000.00818.93
8.1.150.0000.00718.88
8.1.140.0040.00419.05
8.1.130.0040.00418.95
8.1.120.0030.00717.39
8.1.110.0000.01017.45
8.1.100.0080.00017.45
8.1.90.0040.00417.38
8.1.80.0000.00717.36
8.1.70.0030.00317.42
8.1.60.0050.00317.58
8.1.50.0040.00417.52
8.1.40.0060.00317.56
8.1.30.0030.00617.54
8.1.20.0060.00617.63
8.1.10.0050.00217.62
8.1.00.0000.00717.48
8.0.300.0060.00318.77
8.0.290.0000.00816.63
8.0.280.0000.00718.38
8.0.270.0030.00317.10
8.0.260.0000.00617.17
8.0.250.0030.00716.95
8.0.240.0000.00717.00
8.0.230.0050.00316.98
8.0.220.0030.00316.94
8.0.210.0040.00416.86
8.0.200.0040.00416.89
8.0.190.0040.00416.87
8.0.180.0040.00416.88
8.0.170.0080.00016.87
8.0.160.0030.00517.04
8.0.150.0000.00716.82
8.0.140.0040.00416.93
8.0.130.0030.00313.32
8.0.120.0080.00016.87
8.0.110.0000.00716.81
8.0.100.0080.00016.91
8.0.90.0000.00716.93
8.0.80.0060.01016.91
8.0.70.0000.00717.00
8.0.60.0080.00016.98
8.0.50.0080.00016.98
8.0.30.0090.00917.05
8.0.20.0100.01617.40
8.0.10.0000.00716.90
8.0.00.0130.00817.03
7.4.330.0000.00515.55
7.4.320.0060.00016.52
7.4.300.0030.00316.44
7.4.290.0030.00316.54
7.4.280.0040.00416.63
7.4.270.0070.00016.41
7.4.260.0000.00716.40
7.4.250.0030.00316.36
7.4.240.0040.00416.40
7.4.230.0030.00316.59
7.4.220.0040.00416.57
7.4.210.0080.00716.44
7.4.200.0000.00716.59
7.4.160.0090.01016.59
7.4.140.0130.00817.86
7.4.130.0060.01316.56
7.4.120.0120.00816.48
7.4.110.0070.01016.48
7.4.100.0090.01216.62
7.4.90.0070.01116.52
7.4.80.0090.00919.39
7.4.70.0110.00816.51
7.4.60.0120.00316.64
7.4.50.0100.00316.54
7.4.40.0130.00316.57
7.4.00.0060.01114.77
7.3.330.0000.00513.31
7.3.320.0070.00013.38
7.3.310.0000.00716.22
7.3.300.0000.00716.40
7.3.290.0000.00616.39
7.3.280.0060.00916.36
7.3.260.0100.00916.47
7.3.240.0110.00816.46
7.3.230.0140.00416.58
7.3.210.0170.01016.55
7.3.200.0000.01616.60
7.3.190.0090.00916.33
7.3.180.0200.00016.44
7.3.170.0060.00916.44
7.3.160.0040.01116.61
7.3.120.0100.00614.80
7.3.110.0110.00714.72
7.3.100.0040.00814.50
7.3.90.0070.01014.54
7.3.80.0060.00914.80
7.3.70.0000.01314.55
7.3.60.0000.01514.88
7.3.50.0060.01014.88
7.3.40.0030.01014.65
7.3.30.0030.01014.69
7.3.20.0090.00416.73
7.3.10.0090.00416.59
7.3.00.0120.00316.43
7.2.330.0090.00916.78
7.2.320.0230.00016.52
7.2.310.0120.00616.36
7.2.300.0100.01016.33
7.2.290.0100.00716.27
7.2.250.0120.00615.23
7.2.240.0130.00714.78
7.2.230.0070.01115.11
7.2.220.0070.01315.08
7.2.210.0040.01114.82
7.2.200.0070.00714.82
7.2.190.0120.00615.00
7.2.180.0080.00415.07
7.2.170.0060.01314.85
7.2.130.0090.00616.49
7.2.120.0120.00316.43
7.2.110.0080.00416.58
7.2.100.0090.00316.68
7.2.90.0070.01016.53
7.2.80.0460.00815.08
7.2.70.0460.01015.34
7.2.60.0520.00615.16
7.2.50.1290.00615.27
7.2.40.1340.01115.25
7.2.30.0680.00715.40
7.2.20.1120.00615.24
7.2.10.0530.01315.22
7.2.00.0510.00815.17
7.1.330.0030.00915.77
7.1.320.0070.00715.71
7.1.310.0070.00715.82
7.1.300.0060.00615.39
7.1.290.0040.01215.69
7.1.280.0060.00615.46
7.1.270.0120.00615.53
7.1.260.0030.00615.66
7.1.250.0070.00715.41
7.1.200.0670.00713.79
7.1.190.0620.01213.75
7.1.180.1910.00813.70
7.1.170.0630.00613.72
7.1.160.2000.00613.80
7.1.150.0640.00613.61
7.1.140.0630.00613.82
7.1.130.0690.00813.78
7.1.120.2150.00613.57
7.1.110.1820.00813.70
7.1.100.1980.00613.45
7.1.90.1540.00313.46
7.1.80.2110.00813.65
7.1.70.1740.00913.66
7.1.60.2090.00531.76
7.1.50.2230.00931.61
7.1.40.1700.01131.79
7.1.30.2240.01431.64
7.1.20.2190.01031.63
7.1.10.2420.01113.56
7.1.00.2000.00513.79

preferences:
57.32 ms | 400 KiB | 5 Q