3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Creator { public function create(): void; } class EchoCreator implements Creator { public function create(): void { echo 'Hello world!'; } } trait CreatorAble { abstract protected function creator(): Creator; public function useCreator(): void { $this->creator()->create(); } } final class SomeClass { private $creator; use CreatorAble; public function __construct(Creator $creator) { $this->creator = $creator; } private function creator(): Creator { return $this->creator; } } (new SomeClass(new EchoCreator))->useCreator();

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.00918.43
8.3.50.0100.01016.45
8.3.40.0150.00418.83
8.3.30.0040.01118.67
8.3.20.0030.00520.29
8.3.10.0040.00422.04
8.3.00.0000.00819.56
8.2.180.0090.00916.36
8.2.170.0040.01222.96
8.2.160.0110.00421.02
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0070.00020.52
8.2.120.0000.00826.35
8.2.110.0080.00322.23
8.2.100.0090.00317.72
8.2.90.0050.00319.26
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0030.00618.05
8.2.50.0000.00819.16
8.2.40.0000.00720.42
8.2.30.0020.00519.26
8.2.20.0050.00317.99
8.2.10.0000.00718.07
8.2.00.0060.00318.05
8.1.280.0190.00325.92
8.1.270.0040.00423.99
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0040.00423.92
8.1.230.0060.00622.20
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0060.00317.10
8.1.180.0030.00618.10
8.1.170.0050.00318.57
8.1.160.0000.00819.00
8.1.150.0050.00318.82
8.1.140.0070.00019.59
8.1.130.0070.00020.67
8.1.120.0030.00517.30
8.1.110.0000.00917.36
8.1.100.0090.00017.40
8.1.90.0050.00317.36
8.1.80.0040.00417.35
8.1.70.0080.00017.36
8.1.60.0040.00417.63
8.1.50.0040.00417.58
8.1.40.0080.00017.45
8.1.30.0050.00217.52
8.1.20.0000.00817.72
8.1.10.0060.00317.45
8.1.00.0030.00617.39
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0000.00818.52
8.0.270.0000.00717.27
8.0.260.0030.00318.98
8.0.250.0070.00017.01
8.0.240.0000.00716.93
8.0.230.0000.00717.04
8.0.220.0040.00416.96
8.0.210.0000.00716.83
8.0.200.0000.00617.02
8.0.190.0000.00817.02
8.0.180.0040.00417.06
8.0.170.0000.00716.99
8.0.160.0070.00316.98
8.0.150.0000.00816.89
8.0.140.0040.00416.98
8.0.130.0000.00513.35
8.0.120.0000.00716.91
8.0.110.0030.00516.78
8.0.100.0000.00816.95
8.0.90.0030.00516.96
8.0.80.0030.01416.92
8.0.70.0050.00316.83
8.0.60.0080.00016.96
8.0.50.0040.00416.84
8.0.30.0120.00717.17
8.0.20.0110.01117.40
8.0.10.0040.00416.96
8.0.00.0120.00616.92
7.4.330.0000.00415.55
7.4.320.0030.00316.57
7.4.300.0060.00016.53
7.4.290.0030.00316.45
7.4.280.0030.00616.44
7.4.270.0060.00016.59
7.4.260.0000.00716.58
7.4.250.0040.00416.55
7.4.240.0030.00316.46
7.4.230.0030.00316.58
7.4.220.0140.00316.55
7.4.210.0030.01016.38
7.4.200.0030.00516.29
7.4.160.0050.01216.43
7.4.150.0110.00717.40
7.4.140.0110.01117.86
7.4.130.0070.01116.53
7.4.120.0110.00616.49
7.4.110.0030.01416.32
7.4.100.0060.01216.32
7.4.90.0090.00916.43
7.4.80.0170.00319.39
7.4.70.0060.00316.51
7.4.60.0080.00816.56
7.4.50.0030.01316.38
7.4.40.0100.00716.39
7.4.30.0120.00416.57
7.4.00.0060.01015.09
7.3.330.0000.00513.23
7.3.320.0000.00513.21
7.3.310.0000.00716.23
7.3.300.0040.00416.21
7.3.290.0060.00716.17
7.3.280.0080.00816.22
7.3.270.0110.01117.40
7.3.260.0120.00816.32
7.3.250.0090.00916.45
7.3.240.0080.00816.40
7.3.230.0060.01216.52
7.3.210.0030.01416.51
7.3.200.0130.00316.33
7.3.190.0120.00316.45
7.3.180.0030.01516.43
7.3.170.0080.00816.28
7.3.160.0100.01016.31
7.3.120.0060.00914.82
7.3.110.0030.01014.60
7.3.100.0030.01214.99
7.3.90.0100.00714.79
7.3.80.0100.00714.86
7.3.70.0060.01014.75
7.3.60.0100.00314.79
7.3.50.0080.00614.57
7.3.40.0030.00614.79
7.3.30.0030.01014.66
7.3.20.0030.01216.73
7.3.10.0050.01016.53
7.3.00.0050.00816.40
7.2.330.0120.00616.47
7.2.320.0130.00316.71
7.2.310.0130.00916.72
7.2.300.0080.00816.86
7.2.290.0130.00416.71
7.2.250.0070.01114.94
7.2.240.0100.01014.77
7.2.230.0040.01615.02
7.2.220.0030.00815.18
7.2.210.0070.00315.02
7.2.200.0000.01414.96
7.2.190.0060.00314.93
7.2.180.0070.00714.93
7.2.170.0030.00615.18
7.2.130.0060.00616.90
7.2.120.0200.00416.61
7.2.110.0090.00616.75
7.2.100.0040.00716.59
7.2.90.0120.00316.93
7.2.80.0060.00616.59
7.2.70.0120.00616.70
7.2.60.0100.00516.97
7.2.50.0060.00616.85
7.2.40.0070.01416.71
7.2.30.0070.01116.52
7.2.20.0090.00416.70
7.2.10.0160.00316.90
7.2.00.0060.00916.86
7.1.330.0090.00615.64
7.1.320.0040.00715.71
7.1.310.0070.00715.88
7.1.300.0000.01415.71
7.1.290.0060.00915.83
7.1.280.0040.00815.74
7.1.270.0070.00715.47
7.1.260.0090.00615.80
7.1.250.0060.00915.55
7.1.200.0100.00015.77
7.1.80.3530.01016.03
7.1.70.0090.00915.44
7.1.60.0250.01433.27
7.1.50.0170.02333.00
7.1.40.0240.01032.47
7.1.30.0220.01932.32
7.1.20.0210.01532.70
7.1.10.0110.01214.66
7.1.00.0180.00514.75
7.0.200.3880.01615.09
7.0.190.0080.01114.70
7.0.180.0200.00614.32
7.0.170.0040.01714.61
7.0.160.0120.00714.60
7.0.150.0050.01514.65
7.0.140.0350.00814.41
7.0.130.0060.01415.01
7.0.120.0130.01014.71
7.0.110.0130.01014.61
7.0.100.0140.01014.63
7.0.90.0080.01514.42
7.0.80.4060.00714.55
7.0.70.0150.00714.42
7.0.60.0100.01614.27
7.0.50.3760.01314.59
7.0.40.3820.01814.64
7.0.30.3810.01614.73
7.0.20.4070.01314.48
7.0.10.3730.00914.49
7.0.00.3420.01014.57

preferences:
64 ms | 401 KiB | 5 Q