3v4l.org

run code in 300+ PHP versions simultaneously
<?php class JiraStatusMapper { /** * @var array */ protected static $map = [ 0 => JiraTicketStatus::OPEN, ]; /** * @param int $id * * @return string */ public static function getJiraStatusByPackageStatusId(int $id) { $status = self::$map[$id]; if (!$status) { throw new \OutOfRangeException(); } return $status; } } var_dump(\JiraStatusMapper::getJiraStatusByPackageStatusId(0));

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.0060.00918.43
8.3.50.0150.00016.38
8.3.40.0070.00718.79
8.3.30.0070.00718.45
8.3.20.0080.00420.34
8.3.10.0040.00423.65
8.3.00.0060.00319.38
8.2.180.0110.00416.88
8.2.170.0110.01122.96
8.2.160.0100.01020.22
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00620.99
8.2.120.0070.00026.35
8.2.110.0060.00321.01
8.2.100.0080.00317.97
8.2.90.0040.00419.21
8.2.80.0090.00017.97
8.2.70.0040.00417.63
8.2.60.0060.00317.93
8.2.50.0080.00018.10
8.2.40.0030.00620.61
8.2.30.0000.00821.03
8.2.20.0000.00717.88
8.2.10.0040.00418.11
8.2.00.0040.00418.05
8.1.280.0270.00425.92
8.1.270.0060.00322.01
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0070.00419.13
8.1.230.0040.00819.04
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00317.23
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0090.00018.46
8.1.160.0020.00518.81
8.1.150.0040.00418.81
8.1.140.0050.00319.39
8.1.130.0000.00818.77
8.1.120.0070.00017.38
8.1.110.0040.00417.23
8.1.100.0070.00017.28
8.1.90.0000.00717.38
8.1.80.0070.00017.34
8.1.70.0070.00017.23
8.1.60.0000.00917.41
8.1.50.0000.00817.35
8.1.40.0000.00817.45
8.1.30.0060.00317.49
8.1.20.0030.00617.64
8.1.10.0030.00917.44
8.1.00.0000.00717.45
8.0.300.0040.00419.97
8.0.290.0000.00716.63
8.0.280.0070.00018.35
8.0.270.0070.00017.14
8.0.260.0030.00316.77
8.0.250.0030.00317.00
8.0.240.0000.01016.85
8.0.230.0000.00716.99
8.0.220.0000.00816.81
8.0.210.0000.00716.93
8.0.200.0040.00416.89
8.0.190.0050.00316.97
8.0.180.0030.00516.95
8.0.170.0000.00716.82
8.0.160.0030.00516.95
8.0.150.0040.00416.89
8.0.140.0070.00016.90
8.0.130.0030.00313.34
8.0.120.0050.00316.90
8.0.110.0040.00416.96
8.0.100.0050.00216.81
8.0.90.0000.00916.93
8.0.80.0090.00617.00
8.0.70.0050.00316.96
8.0.60.0000.00716.91
8.0.50.0050.00316.79
8.0.30.0080.01017.08
8.0.20.0120.00817.40
8.0.10.0030.00517.07
8.0.00.0080.00816.68
7.4.330.0030.00315.55
7.4.320.0000.00616.46
7.4.300.0040.00416.47
7.4.290.0000.00916.44
7.4.280.0050.00216.55
7.4.270.0040.00416.55
7.4.260.0020.00516.46
7.4.250.0040.00416.30
7.4.240.0050.00316.59
7.4.230.0000.00716.30
7.4.220.0030.01716.58
7.4.210.0110.00316.57
7.4.200.0030.00316.66
7.4.160.0100.00516.48
7.4.150.0080.01517.40
7.4.140.0100.00917.86
7.4.130.0030.01616.55
7.4.120.0130.00616.40
7.4.110.0130.00316.44
7.4.100.0110.00816.47
7.4.90.0190.00016.36
7.4.80.0100.00719.39
7.4.70.0150.00616.57
7.4.60.0040.01216.54
7.4.50.0030.00916.55
7.4.40.0070.00916.34
7.4.30.0000.01616.59
7.4.00.0070.01015.04
7.3.330.0000.00613.39
7.3.320.0030.00313.36
7.3.310.0040.00416.26
7.3.300.0060.00016.24
7.3.290.0030.00316.43
7.3.280.0110.00716.36
7.3.270.0130.00617.40
7.3.260.0070.01116.40
7.3.250.0160.01416.38
7.3.240.0060.01116.43
7.3.230.0120.00616.54
7.3.210.0060.00916.38
7.3.200.0160.00316.43
7.3.190.0080.00816.39
7.3.180.0110.00716.44
7.3.170.0070.01316.52
7.3.160.0120.00916.53
7.3.120.0040.01414.89
7.3.110.0080.00814.82
7.3.100.0040.01114.85
7.3.90.0050.01014.93
7.3.80.0040.00514.85
7.3.70.0050.00714.64
7.3.60.0020.01014.76
7.3.50.0020.01114.90
7.3.40.0060.00614.73
7.3.30.0090.00314.83
7.3.20.0080.00616.55
7.3.10.0060.00616.54
7.3.00.0070.00616.61
7.2.330.0070.01116.60
7.2.320.0140.00916.63
7.2.310.0070.01116.68
7.2.300.0040.01316.39
7.2.290.0070.01016.48
7.2.250.0130.00714.63
7.2.240.0050.01314.92
7.2.230.0060.00614.99
7.2.220.0050.01014.88
7.2.210.0060.00715.01
7.2.200.0050.00714.68
7.2.190.0100.00614.94
7.2.180.0030.01114.90
7.2.170.0050.00914.92
7.2.160.0070.01114.57
7.2.150.0090.00616.48
7.2.140.0120.00316.66
7.2.130.0080.00516.80
7.2.120.0050.00916.63
7.2.110.0060.00516.74
7.2.100.0050.00816.85
7.2.90.0090.00516.95
7.2.80.0050.00716.63
7.2.70.0060.00616.89
7.2.60.0070.00516.72
7.2.50.0050.00716.78
7.2.40.0090.00516.64
7.2.30.0050.01116.80
7.2.20.0040.00916.82
7.2.10.0090.00516.86
7.2.00.0040.01117.49
7.1.330.0060.00915.65
7.1.320.0050.00615.73
7.1.310.0070.00515.64
7.1.300.0070.00615.68
7.1.290.0020.01115.67
7.1.280.0100.00315.53
7.1.270.0070.00615.63
7.1.260.0000.01415.56
7.1.250.0000.01215.66
7.1.200.0040.01115.72
7.1.100.0030.01217.88
7.1.70.0030.01017.10
7.1.60.0300.00034.94
7.1.50.0250.00434.72
7.1.40.0260.01034.50
7.1.30.0170.01034.51
7.1.20.0200.01034.36
7.1.10.0100.00316.32
7.1.00.0090.00316.50
7.0.200.0040.00816.57
7.0.190.0040.00816.62
7.0.180.0100.00316.18
7.0.170.0060.00616.27
7.0.160.0030.01016.28
7.0.150.0060.00616.11
7.0.140.0040.00816.34
7.0.130.0070.00716.69
7.0.120.0070.00716.59
7.0.110.0100.00716.28
7.0.100.0090.00916.23
7.0.90.0000.01416.24
7.0.80.0000.01316.19
7.0.70.0060.00916.32
7.0.60.0040.01115.96
7.0.50.0090.00616.24
7.0.40.0000.01416.62
7.0.30.0060.00916.43
7.0.20.0100.00316.41
7.0.10.0000.01316.39
7.0.00.0030.00916.11

preferences:
46.33 ms | 401 KiB | 5 Q