3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class bar { public const FLAG = 0b0010; public static function foo(string $v, int $flags) { if ((($flags & self::FLAG) && !isset($v[0]))) { return true; } return false; } } var_dump(bar::foo('', 0b0010));

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.0090.00618.18
8.3.50.0030.01216.35
8.3.40.0160.00318.75
8.3.30.0100.00618.58
8.3.20.0060.00318.58
8.3.10.0060.00321.73
8.3.00.0030.00521.86
8.2.180.0170.00316.38
8.2.170.0130.00322.96
8.2.160.0070.00719.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00321.11
8.2.120.0000.00726.35
8.2.110.0070.00422.08
8.2.100.0040.00817.84
8.2.90.0000.00817.84
8.2.80.0040.00417.97
8.2.70.0040.00417.93
8.2.60.0040.00418.09
8.2.50.0000.00818.10
8.2.40.0040.00419.53
8.2.30.0040.00419.16
8.2.20.0070.00017.98
8.2.10.0000.00817.94
8.2.00.0080.00017.71
8.1.280.0070.01825.92
8.1.270.0060.00320.38
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00419.14
8.1.230.0050.00521.01
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0100.00017.35
8.1.190.0000.00817.41
8.1.180.0040.00418.10
8.1.170.0000.00918.54
8.1.160.0000.00918.86
8.1.150.0050.00218.93
8.1.140.0000.00820.58
8.1.130.0000.00820.32
8.1.120.0040.00417.50
8.1.110.0000.00817.35
8.1.100.0000.00817.39
8.1.90.0050.00317.41
8.1.80.0030.00617.31
8.1.70.0030.00317.31
8.1.60.0040.00417.57
8.1.50.0040.00417.46
8.1.40.0040.00417.37
8.1.30.0000.00817.49
8.1.20.0040.00417.61
8.1.10.0000.00817.53
8.1.00.0000.00817.46
8.0.300.0040.00419.66
8.0.290.0080.00016.63
8.0.280.0030.00318.29
8.0.270.0070.00017.17
8.0.260.0030.00320.10
8.0.250.0030.00316.84
8.0.240.0000.00616.86
8.0.230.0030.00616.95
8.0.220.0030.00316.86
8.0.210.0040.00416.77
8.0.200.0000.00616.98
8.0.190.0040.00416.93
8.0.180.0040.00416.93
8.0.170.0000.00816.90
8.0.160.0040.00416.87
8.0.150.0030.00316.87
8.0.140.0040.00416.69
8.0.130.0000.00613.23
8.0.120.0070.00016.84
8.0.110.0070.00016.74
8.0.100.0040.00416.88
8.0.90.0000.00716.95
8.0.80.0060.01116.81
8.0.70.0040.00416.77
8.0.60.0080.00016.68
8.0.50.0040.00416.73
8.0.30.0120.00816.92
8.0.20.0060.01317.40
8.0.10.0000.00717.02
8.0.00.0080.01316.84
7.4.330.0020.00215.55
7.4.320.0000.00616.51
7.4.300.0030.00316.52
7.4.290.0090.00016.56
7.4.280.0040.00416.48
7.4.270.0040.00416.54
7.4.260.0070.00016.50
7.4.250.0050.00216.44
7.4.240.0050.00316.50
7.4.230.0030.00316.39
7.4.220.0040.00416.33
7.4.210.0050.01116.49
7.4.200.0030.00316.44
7.4.160.0110.00916.41
7.4.140.0100.00917.86
7.4.130.0120.01216.52
7.4.120.0110.00816.54
7.4.110.0120.00916.33
7.4.100.0000.01716.54
7.4.90.0360.01016.45
7.4.80.0150.00919.39
7.4.70.0120.00416.34
7.4.60.0060.01016.58
7.4.50.0070.00716.38
7.4.40.0070.01116.36
7.4.00.0070.00815.14
7.3.330.0060.00013.25
7.3.320.0050.00013.06
7.3.310.0000.00716.23
7.3.300.0030.00316.25
7.3.290.0040.00416.25
7.3.280.0050.01016.23
7.3.260.0090.01016.38
7.3.240.0120.00716.31
7.3.230.0080.00816.36
7.3.210.0170.00016.50
7.3.200.0170.00316.53
7.3.190.0070.01016.35
7.3.180.0120.00616.56
7.3.170.0110.01016.44
7.3.160.0090.00916.45
7.3.120.0090.00914.45
7.3.110.0070.00714.79
7.3.100.0030.01214.89
7.3.90.0070.00714.77
7.3.80.0060.01014.79
7.3.70.0050.00514.67
7.3.60.0040.01214.55
7.3.50.0030.01014.75
7.3.40.0090.00614.82
7.3.30.0040.01114.59
7.3.20.0120.00316.76
7.3.10.0060.00316.28
7.3.00.0060.00616.56
7.2.330.0090.00916.37
7.2.320.0040.02216.70
7.2.310.0090.01516.83
7.2.300.0100.01416.60
7.2.290.0090.01216.80
7.2.250.0070.01014.70
7.2.240.0090.00914.55
7.2.230.0000.01314.90
7.2.220.0100.01015.01
7.2.210.0090.00914.69
7.2.200.0030.00914.74
7.2.190.0060.01214.57
7.2.180.0060.00615.11
7.2.170.0070.00414.88
7.2.100.1070.00314.73
7.2.90.0800.00714.81
7.2.80.0750.00614.79
7.2.70.1090.00315.00
7.2.60.0920.00314.82
7.2.50.0750.01414.93
7.2.40.0980.00314.87
7.2.30.1130.00315.00
7.2.20.0980.01015.16
7.2.10.1260.01015.02
7.2.00.0950.00715.05
7.1.330.0040.00815.43
7.1.320.0060.00615.71
7.1.310.0090.00915.82
7.1.300.0060.01015.88
7.1.290.0060.00915.73
7.1.280.0100.00315.70
7.1.270.0000.01015.52
7.1.260.0090.00315.74
7.1.220.0950.01013.90
7.1.210.0910.01013.80
7.1.200.0780.00314.06
7.1.190.1210.00313.61
7.1.180.1770.00713.82
7.1.170.0890.01313.64
7.1.160.0840.00614.06
7.1.150.0920.01013.85
7.1.140.1290.00313.68
7.1.130.1210.01313.82
7.1.120.1090.01013.67
7.1.110.1290.00313.73
7.1.100.1070.00313.92
7.1.90.0920.01314.00
7.1.80.0980.00713.67
7.1.70.1290.01113.85
7.1.60.1410.01931.98
7.1.50.1120.01731.90
7.1.40.1560.01031.86
7.1.30.1540.01032.01
7.1.20.1200.00731.87
7.1.10.1090.00313.62
7.1.00.1060.01013.34
5.6.380.0110.00414.38

preferences:
76.68 ms | 404 KiB | 6 Q