3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Sett\Specification\Http { interface StatusInterface { public function __construct ( int $code = 200, string $message = '' ) : this; public function getCode () : int; public function getMessage () : string; public function __toString () : string; } } namespace Sett\Implementation\Http { use Sett\Specification\Http\StatusInterface; class Status implements StatusInterface { protected $code = 200; protected $message = ''; public function __construct ( int $code = 200, string $message = '' ) { $this->code = $code; $this->message = $message; } public function getCode () : int { return $this->code; } public function getMessage () : string { return $this->message; } public function __toString () { return "{$this->code} {$this->message}"; } } echo new \Sett\Implementation\Http\Status(404, "Not found"); }

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.36
8.3.50.0200.00621.92
8.3.40.0110.00418.81
8.3.30.0110.00318.67
8.3.20.0040.00420.13
8.3.10.0040.00423.65
8.3.00.0050.00317.34
8.2.180.0040.01418.27
8.2.170.0070.01022.96
8.2.160.0070.01019.10
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0070.00026.16
8.2.120.0060.00317.49
8.2.110.0120.00022.24
8.2.100.0090.00317.90
8.2.90.0000.00719.09
8.2.80.0080.00017.97
8.2.70.0030.00617.25
8.2.60.0000.00817.80
8.2.50.0090.00018.07
8.2.40.0040.00419.23
8.2.30.0030.00320.69
8.2.20.0070.00017.61
8.2.10.0000.00717.91
8.2.00.0030.00617.80
8.1.280.0110.00425.92
8.1.270.0000.00823.79
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00022.36
8.1.230.0110.00717.42
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0050.00317.22
8.1.180.0000.00918.10
8.1.170.0040.00419.08
8.1.160.0030.00521.91
8.1.150.0040.00418.75
8.1.140.0040.00419.44
8.1.130.0070.00017.63
8.1.120.0030.00317.38
8.1.110.0070.00017.30
8.1.100.0000.00817.23
8.1.90.0000.00717.32
8.1.80.0030.00517.21
8.1.70.0000.00717.27
8.1.60.0040.00417.33
8.1.50.0050.00517.40
8.1.40.0050.00317.28
8.1.30.0050.00317.54
8.1.20.0040.00417.41
8.1.10.0000.00817.32
8.1.00.0030.00917.28
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.32
8.0.270.0000.00717.04
8.0.260.0000.00717.08
8.0.250.0000.00716.77
8.0.240.0000.00816.77
8.0.230.0000.00716.93
8.0.220.0030.00316.82
8.0.210.0000.00816.88
8.0.200.0030.00616.89
8.0.190.0000.00716.79
8.0.180.0000.00816.89
8.0.170.0030.00616.84
8.0.160.0000.00716.89
8.0.150.0030.00516.80
8.0.140.0040.00416.79
8.0.130.0000.00613.25
8.0.120.0040.00416.84
8.0.110.0070.00016.80
8.0.100.0040.00416.87
8.0.90.0050.00216.78
8.0.80.0150.00016.77
8.0.70.0040.00416.68
8.0.60.0000.00716.71
8.0.50.0070.00016.63
8.0.30.0140.00517.03
8.0.20.0110.00717.40
8.0.10.0000.00716.83
8.0.00.0110.00816.75
7.4.330.0050.00015.08
7.4.320.0030.00416.51
7.4.300.0030.00316.45
7.4.290.0000.00616.54
7.4.280.0040.00416.34
7.4.270.0000.00716.47
7.4.260.0090.00016.49
7.4.250.0000.00816.48
7.4.240.0040.00316.49
7.4.230.0030.00316.54
7.4.220.0070.01016.66
7.4.210.0040.01116.66
7.4.200.0000.00716.34
7.4.160.0040.01216.27
7.4.150.0030.01317.40
7.4.140.0120.00917.86
7.4.130.0090.00916.49
7.4.120.0080.01016.46
7.4.110.0130.00516.40
7.4.100.0100.01016.36
7.4.90.0030.01316.45
7.4.80.0080.01319.39
7.4.70.0100.01016.17
7.4.60.0060.00916.52
7.4.50.0050.00316.26
7.4.40.0070.01016.20
7.4.30.0090.00916.54
7.4.00.0120.00314.99
7.3.330.0000.00613.06
7.3.320.0050.00013.17
7.3.310.0050.00316.20
7.3.300.0070.00016.29
7.3.290.0100.00616.20
7.3.280.0080.01116.23
7.3.270.0140.00317.40
7.3.260.0070.01016.35
7.3.250.0100.00716.38
7.3.240.0080.00816.20
7.3.230.0090.01216.39
7.3.210.0120.00816.38
7.3.200.0070.01016.32
7.3.190.0140.00316.27
7.3.180.0150.00616.36
7.3.170.0060.01016.27
7.3.160.0070.01116.56
7.2.330.0180.00016.54
7.2.320.0170.00016.42
7.2.310.0060.01016.51
7.2.300.0000.01716.32
7.2.290.0180.00016.41
7.2.80.0060.00316.52
7.2.60.0030.01016.78
7.1.200.0030.00615.60
7.1.100.0160.00017.94
7.1.70.0080.00416.82
7.1.60.0030.01219.43
7.1.50.0030.00916.86
7.1.00.0030.07722.40
7.0.200.0570.00314.80
7.0.60.0030.08720.06
7.0.50.0100.03317.88
7.0.40.0070.04720.08
7.0.30.0030.04720.05
7.0.20.0330.05720.03
7.0.10.0070.05720.22
7.0.00.0070.05320.25
5.6.280.0000.05320.91
5.6.210.0130.07720.48
5.6.200.0030.04718.18
5.6.190.0000.05020.42
5.6.180.0330.05720.61
5.6.170.0270.08020.55
5.6.160.0030.07320.50
5.6.150.0070.06718.21
5.6.140.0100.08018.20
5.6.130.0070.06318.28
5.6.120.0070.07021.05
5.6.110.0070.08321.14
5.6.100.0070.03720.89
5.6.90.0100.09720.96
5.6.80.0100.03320.38
5.5.350.0230.03720.33
5.5.340.0100.07718.00
5.5.330.0070.08720.47
5.5.320.0170.05020.32
5.5.310.0230.07320.50
5.5.300.0000.04717.97
5.5.290.0070.03717.98
5.5.280.0030.08320.74
5.5.270.0130.07720.87
5.5.260.0000.04320.86
5.5.250.0200.07320.68
5.5.240.0130.06020.28
5.4.450.0600.05719.61
5.4.440.0670.05719.61
5.4.430.0470.06319.58
5.4.420.0630.05019.47
5.4.410.0770.04019.07
5.4.400.0670.04319.17
5.4.390.0630.04319.15
5.4.380.0530.04719.30
5.4.370.0530.04719.26
5.4.360.0530.05319.06
5.4.350.0370.06019.14
5.4.340.0630.06019.26
5.4.320.0430.05719.13
5.4.310.0230.04318.84
5.4.300.0070.05719.14
5.4.290.0270.06319.05
5.4.280.0600.07018.87
5.4.270.0570.06019.25
5.4.260.0530.05019.22
5.4.250.0400.05019.14
5.4.240.0470.05318.84
5.4.230.0430.05719.05
5.4.220.0500.05019.27
5.4.210.0170.05718.86
5.4.200.0000.06319.14
5.4.190.0100.05719.36
5.4.180.0430.04719.27
5.4.170.0370.05018.96
5.4.160.0130.04718.96
5.4.150.0030.06019.04
5.4.140.0430.05016.47
5.4.130.0400.05316.57
5.4.120.0570.06016.56
5.4.110.0500.08016.52
5.4.100.0570.05316.19
5.4.90.0400.06316.42
5.4.80.0600.05016.52
5.4.70.0630.05316.40
5.4.60.0600.05016.39
5.4.50.0730.05316.49
5.4.40.0730.05716.22
5.4.30.0630.06316.59
5.4.20.0900.06716.38
5.4.10.0730.03716.61
5.4.00.0670.04315.90

preferences:
56.47 ms | 401 KiB | 5 Q