3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(-1); ini_set('display_errors', 'On'); interface Transip_DomainService { public const AVAILABILITY_INYOURACCOUNT = 'inyouraccount'; public const AVAILABILITY_UNAVAILABLE = 'unavailable'; public const AVAILABILITY_FREE = 'free'; public const AVAILABILITY_NOTFREE = 'notfree'; } $priority = [ Transip_DomainService::AVAILABILITY_FREE => 0, Transip_DomainService::AVAILABILITY_NOTFREE => 1, Transip_DomainService::AVAILABILITY_UNAVAILABLE => 2, Transip_DomainService::AVAILABILITY_INYOURACCOUNT => 3, ]; $domainCheckResults = [ (object) ['domainName' => 'a', 'status' => Transip_DomainService::AVAILABILITY_NOTFREE], (object) ['domainName' => 'b', 'status' => Transip_DomainService::AVAILABILITY_UNAVAILABLE], (object) ['domainName' => 'c', 'status' => Transip_DomainService::AVAILABILITY_INYOURACCOUNT], (object) ['domainName' => 'd', 'status' => Transip_DomainService::AVAILABILITY_FREE], (object) ['domainName' => 'e', 'status' => Transip_DomainService::AVAILABILITY_INYOURACCOUNT], (object) ['domainName' => 'f', 'status' => Transip_DomainService::AVAILABILITY_FREE], ]; usort($domainCheckResults, function ($a, $b) use ($priority) { return $priority[$a->status] <=> $priority[$b->status]; }); print_r($domainCheckResults);

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.5.00.0140.01020.22
8.4.150.0010.00114.05
8.4.140.0080.01317.86
8.4.130.0050.00417.99
8.4.120.0100.00924.27
8.4.110.0030.00619.00
8.4.100.0120.00817.66
8.4.90.0120.00720.63
8.4.80.0110.01018.97
8.4.70.0060.00220.68
8.4.60.0060.00520.78
8.4.50.0060.01420.53
8.4.40.0140.00719.23
8.4.30.0130.00618.00
8.4.20.0030.00620.39
8.4.10.0130.00717.72
8.3.280.0140.00618.77
8.3.270.0120.00816.59
8.3.260.0110.00916.64
8.3.250.0090.00918.76
8.3.240.0110.00816.55
8.3.230.0160.00516.81
8.3.220.0140.00520.85
8.3.210.0110.00816.69
8.3.200.0060.00616.69
8.3.190.0050.00416.69
8.3.180.0120.00818.74
8.3.170.0060.01218.96
8.3.160.0040.00420.34
8.3.150.0120.00616.67
8.3.140.0080.00019.17
8.3.130.0050.00318.64
8.3.120.0050.00519.10
8.3.110.0060.00320.94
8.3.100.0050.00518.43
8.3.90.0040.00418.43
8.3.80.0060.00318.68
8.3.70.0090.00916.88
8.3.60.0150.00618.43
8.3.50.0110.00618.35
8.3.40.0150.00018.79
8.3.30.0120.00318.83
8.3.20.0040.00421.47
8.3.10.0000.00823.53
8.3.00.0080.00023.68
8.2.290.0110.01017.21
8.2.280.0070.00418.45
8.2.270.0160.00319.04
8.2.260.0060.00316.89
8.2.250.0150.00016.82
8.2.240.0080.00017.18
8.2.230.0060.00322.58
8.2.220.0060.00324.06
8.2.210.0120.00626.77
8.2.200.0060.00317.00
8.2.190.0110.00418.29
8.2.180.0060.01216.63
8.2.170.0180.00022.96
8.2.160.0180.00019.04
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0080.00019.95
8.2.110.0040.00420.44
8.2.100.0080.00317.91
8.2.90.0000.00818.03
8.2.80.0000.00818.05
8.2.70.0050.00317.93
8.2.60.0030.00518.28
8.2.50.0040.00418.10
8.2.40.0000.00719.50
8.2.30.0040.00420.33
8.2.20.0000.00818.16
8.2.10.0000.00719.20
8.2.00.0040.00419.27
8.1.330.0130.00616.13
8.1.320.0100.00923.73
8.1.310.0070.01018.69
8.1.300.0160.00320.39
8.1.290.0000.00918.88
8.1.280.0090.00625.92
8.1.270.0090.00920.48
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00717.35
8.1.230.0080.00322.80
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.34
8.1.190.0060.00317.23
8.1.180.0050.00218.10
8.1.170.0000.00818.53
8.1.160.0000.00818.96
8.1.150.0000.00718.95
8.1.140.0000.00820.69
8.1.130.0000.00820.16
8.1.120.0030.00617.50
8.1.110.0040.00417.51
8.1.100.0040.00417.37
8.1.90.0020.00517.50
8.1.80.0030.00617.52
8.1.70.0040.00417.47
8.1.60.0040.00417.61
8.1.50.0000.00917.37
8.1.40.0040.00417.48
8.1.30.0070.00417.71
8.1.20.0030.00517.63
8.1.10.0040.00417.46
8.1.00.0020.00517.42
8.0.300.0040.00420.21
8.0.290.0000.01016.75
8.0.280.0070.00018.46
8.0.270.0040.00416.96
8.0.260.0000.00718.46
8.0.250.0000.00716.99
8.0.240.0040.00417.03
8.0.230.0030.00316.93
8.0.220.0030.00316.96
8.0.210.0060.00316.89
8.0.200.0030.00317.02
8.0.190.0030.00616.94
8.0.180.0000.00916.91
8.0.170.0060.00616.88
8.0.160.0000.00817.05
8.0.150.0000.00716.96
8.0.140.0040.00416.92
8.0.130.0030.00313.39
8.0.120.0030.00516.99
8.0.110.0030.00316.87
8.0.100.0040.00416.82
8.0.90.0070.00016.92
8.0.80.0090.01316.98
8.0.70.0050.00517.00
8.0.60.0050.00316.93
8.0.50.0030.00617.03
8.0.30.0100.00917.04
8.0.20.0160.00417.40
8.0.10.0040.00416.97
8.0.00.0120.00916.62
7.4.330.0050.00015.55
7.4.320.0030.00316.41
7.4.300.0070.00016.47
7.4.290.0070.00016.62
7.4.280.0030.00616.52
7.4.270.0000.00716.60
7.4.260.0000.00816.64
7.4.250.0040.00416.53
7.4.240.0070.00016.63
7.4.230.0070.00016.60
7.4.220.0040.00416.61
7.4.210.0110.00516.48
7.4.200.0030.00316.69
7.4.160.0070.00816.54
7.4.140.0100.01017.86
7.4.130.0140.00316.50
7.4.120.0140.00316.57
7.4.110.0110.01216.56
7.4.100.0130.01016.68
7.4.90.0130.00916.58
7.4.80.0110.00819.39
7.4.70.0090.00916.64
7.4.60.0110.01116.59
7.4.50.0000.01316.69
7.4.40.0040.01116.43
7.4.10.0110.00714.77
7.4.00.0090.00914.99
7.3.330.0050.00013.27
7.3.320.0000.00613.30
7.3.310.0030.00316.30
7.3.300.0070.00016.30
7.3.290.0030.00316.42
7.3.280.0070.00716.37
7.3.260.0070.01116.51
7.3.240.0080.00916.51
7.3.230.0090.00916.50
7.3.210.0120.00916.61
7.3.200.0100.00716.42
7.3.190.0080.00816.52
7.3.180.0090.00616.28
7.3.170.0130.00316.50
7.3.160.0110.00416.46
7.3.130.0030.01614.89
7.3.120.0110.00814.82
7.3.110.0110.00814.65
7.3.100.0070.00714.85
7.3.90.0040.01214.88
7.3.80.0050.00814.91
7.3.70.0060.00514.85
7.3.60.0030.00814.74
7.3.50.0060.00814.92
7.3.40.0110.00514.85
7.3.30.0040.00814.82
7.3.20.0060.01016.55
7.3.10.0420.01016.28
7.3.00.0350.00516.27
7.2.330.0130.01016.54
7.2.320.0030.01316.54
7.2.310.0110.00616.37
7.2.300.0100.00716.53
7.2.290.0080.01116.66
7.2.260.0100.00715.00
7.2.250.0100.01014.98
7.2.240.0070.01015.05
7.2.230.0010.01615.17
7.2.220.0040.01214.97
7.2.210.0040.01015.15
7.2.200.0060.00815.07
7.2.190.0070.00515.08
7.2.180.0080.00615.02
7.2.170.0110.00315.09
7.2.160.0070.00715.20
7.2.150.0070.00716.90
7.2.140.0060.00616.83
7.2.130.0300.00616.39
7.2.120.0260.00716.42
7.2.110.0180.01216.33
7.2.100.0240.00816.43
7.2.90.0240.00716.30
7.2.80.0220.00716.56
7.2.70.0230.00616.49
7.2.60.0230.00616.53
7.2.50.0220.00916.43
7.2.40.0240.00716.48
7.2.30.0310.00616.52
7.2.20.0240.00916.52
7.2.10.0270.00916.41
7.2.00.0230.01116.36
7.1.330.0080.00715.63
7.1.320.0060.00915.84
7.1.310.0060.01015.83
7.1.300.0040.00915.71
7.1.290.0070.00515.75
7.1.280.0050.00815.75
7.1.270.0050.00915.85
7.1.260.0060.00715.68
7.1.250.0300.00615.24
7.1.240.0030.01015.67
7.1.230.0060.01015.52
7.1.220.0070.00715.67
7.1.210.0100.00315.59
7.1.200.0070.00315.78
7.1.190.0060.00615.61
7.1.180.0040.01115.84
7.1.170.0030.01015.86
7.1.160.0140.00015.72
7.1.150.0060.00915.79
7.1.140.0090.00615.79
7.1.130.0030.01015.82
7.1.120.0030.01115.98
7.1.110.0000.01415.93
7.1.100.0060.00315.74
7.1.90.0030.00715.83
7.1.80.0040.00415.83
7.1.70.0030.01315.61
7.1.60.0110.00415.77
7.1.50.0090.00615.57
7.1.40.0060.00915.59
7.1.30.0060.00615.68
7.1.20.0040.00415.67
7.1.10.0040.00415.64
7.1.00.0000.01115.80

preferences:
31.45 ms | 403 KiB | 5 Q