3v4l.org

run code in 300+ PHP versions simultaneously
<?php $maxOccu = 1; $adultCount = 1; $maxChildrenFree = 1; $childCount = 2; $remainingOccupancySlots = $maxOccu - $adultCount; $remainingChildrenToOccupySlots = $maxChildrenFree - $childCount; echo 'Occupancy remaining: ' . $remainingOccupancySlots; echo 'children to occupy slots: ' . $remainingChildrenToOccupySlots; if (($remainingOccupancySlots >= 0 && $remainingChildrenToOccupySlots <= 0) || ($remainingOccupancySlots >= $remainingChildrenToOccupySlots) ) { echo 'true'; }

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.70.0070.01418.43
8.3.60.0100.00316.50
8.3.50.0110.00316.48
8.3.40.0070.01118.58
8.3.30.0140.01018.50
8.3.20.0070.00020.21
8.3.10.0030.00623.57
8.3.00.0040.00423.52
8.2.190.0060.00916.58
8.2.180.0110.00418.16
8.2.170.0110.00422.96
8.2.160.0100.00320.35
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00820.24
8.2.120.0070.00026.35
8.2.110.0060.00319.39
8.2.100.0090.00317.91
8.2.90.0040.00819.19
8.2.80.0000.00718.03
8.2.70.0060.00317.63
8.2.60.0040.00419.21
8.2.50.0030.00618.10
8.2.40.0050.00220.38
8.2.30.0040.00419.30
8.2.20.0070.00018.06
8.2.10.0040.00418.07
8.2.00.0050.00218.16
8.1.280.0000.01525.92
8.1.270.0090.00623.97
8.1.260.0070.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00321.36
8.1.230.0040.00719.11
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0030.00518.10
8.1.170.0050.00218.59
8.1.160.0030.00518.89
8.1.150.0000.00820.31
8.1.140.0030.00319.06
8.1.130.0070.00018.89
8.1.120.0040.00417.44
8.1.110.0080.00017.42
8.1.100.0000.00817.45
8.1.90.0040.00417.36
8.1.80.0040.00417.33
8.1.70.0000.00717.43
8.1.60.0030.00517.53
8.1.50.0000.00817.41
8.1.40.0040.00417.49
8.1.30.0030.00517.60
8.1.20.0040.00417.59
8.1.10.0000.00717.47
8.1.00.0040.00417.29
8.0.300.0060.00318.77
8.0.290.0000.00816.75
8.0.280.0000.00718.44
8.0.270.0030.00317.23
8.0.260.0000.00718.73
8.0.250.0030.00316.84
8.0.240.0000.00616.88
8.0.230.0000.00716.86
8.0.220.0070.00016.89
8.0.210.0030.00316.82
8.0.200.0000.00616.85
8.0.190.0000.00816.95
8.0.180.0060.00616.93
8.0.170.0000.00716.80
8.0.160.0040.00416.73
8.0.150.0070.00016.74
8.0.140.0000.00916.78
8.0.130.0000.00513.37
8.0.120.0040.00416.91
8.0.110.0000.00816.81
8.0.100.0060.00316.95
8.0.90.0040.00416.77
8.0.80.0130.01016.79
8.0.70.0000.00716.68
8.0.60.0020.00516.88
8.0.50.0000.00716.76
8.0.30.0100.00917.11
8.0.20.0110.00917.40
8.0.10.0020.00516.86
8.0.00.0030.01416.64
7.4.330.0050.00015.55
7.4.320.0000.00616.57
7.4.300.0000.00616.41
7.4.290.0060.00316.60
7.4.280.0040.00416.51
7.4.270.0030.00316.61
7.4.260.0030.00516.39
7.4.250.0000.00716.48
7.4.240.0050.00216.49
7.4.230.0070.00016.34
7.4.220.0090.00916.66
7.4.210.0040.01216.54
7.4.200.0030.00316.63
7.4.160.0100.01016.40
7.4.150.0140.00317.40
7.4.140.0130.00617.86
7.4.130.0070.01116.40
7.4.120.0110.00816.53
7.4.110.0060.01016.63
7.4.100.0050.01516.55
7.4.90.0100.00616.49
7.4.80.0100.00719.39
7.4.70.0070.01016.34
7.4.60.0070.01016.39
7.4.50.0070.00716.48
7.4.40.0060.01016.71
7.4.30.0030.01316.49
7.4.00.0080.01014.93
7.3.330.0050.00013.00
7.3.320.0050.00013.03
7.3.310.0060.00016.02
7.3.300.0070.00016.13
7.3.290.0060.00816.23
7.3.280.0060.01316.23
7.3.270.0120.00617.40
7.3.260.0110.00816.33
7.3.250.0100.01016.22
7.3.240.0090.01216.31
7.3.230.0060.00916.45
7.3.210.0120.01216.49
7.3.200.0030.01216.05
7.3.190.0070.01316.45
7.3.180.0090.00616.40
7.3.170.0130.00316.20
7.3.160.0090.00616.50
7.3.120.0060.01314.74
7.3.110.0130.00314.96
7.3.100.0120.00614.84
7.3.90.0030.01314.63
7.3.80.0000.01514.83
7.3.70.0100.00714.64
7.3.60.0040.01114.78
7.3.50.0090.00614.61
7.3.40.0140.00314.60
7.3.30.0060.00614.59
7.3.20.0080.00316.33
7.3.10.0080.00516.58
7.3.00.0060.00616.47
7.2.330.0130.00316.55
7.2.320.0130.00316.65
7.2.310.0090.00916.46
7.2.300.0130.00416.44
7.2.290.0050.01416.38
7.2.250.0040.01515.00
7.2.240.0070.01115.02
7.2.230.0000.01414.93
7.2.220.0090.00914.77
7.2.210.0040.01215.10
7.2.200.0090.00315.05
7.2.190.0070.01014.71
7.2.180.0110.00314.93
7.2.170.0070.00714.96
7.2.130.0000.01116.98
7.2.120.0040.01117.02
7.2.110.0100.00316.92
7.2.100.0060.00616.71
7.2.90.0030.01016.91
7.2.80.0000.01217.04
7.2.70.0000.01216.98
7.2.60.0070.00616.90
7.2.50.0030.00816.87
7.2.40.0030.01016.90
7.2.30.0070.00716.98
7.2.20.0060.00816.84
7.2.10.0140.00316.80
7.2.00.0060.00616.89
7.1.330.0040.01115.64
7.1.320.0060.00315.79
7.1.310.0090.00915.79
7.1.300.0000.01115.56
7.1.290.0090.00315.64
7.1.280.0040.00715.73
7.1.270.0090.00415.63
7.1.260.0090.00615.54
7.1.250.0040.00815.90
7.1.200.0060.00615.66
7.1.110.0050.01118.02
7.1.100.0000.02018.21
7.1.90.0060.01018.09
7.1.80.0000.01718.18
7.1.70.0040.01117.10
7.1.60.0280.00834.84
7.1.50.0220.01034.54
7.1.40.0210.01834.08
7.1.30.0280.01034.54
7.1.20.0170.01434.68
7.1.10.0060.00916.52
7.1.00.0080.00816.57
7.0.250.0060.01217.68
7.0.240.0060.01117.73
7.0.230.0000.01517.65
7.0.220.0110.00417.57
7.0.210.0000.01416.62
7.0.200.0070.00716.47
7.0.190.0030.01216.65
7.0.180.0130.00616.21
7.0.170.0110.00316.25
7.0.160.0090.00616.17
7.0.150.0000.01416.05
7.0.140.0070.00716.30
7.0.130.0070.01016.46
7.0.120.0080.00516.56
7.0.110.0070.00716.27
7.0.100.0100.00316.38
7.0.90.0030.01016.33
7.0.80.0040.01116.30
7.0.70.0050.00816.39
7.0.60.0040.00816.19
7.0.50.0030.01016.23
7.0.40.0030.01016.50
7.0.30.0000.01516.60
7.0.20.0090.00616.48
7.0.10.0060.01016.44
7.0.00.0070.00716.32

preferences:
55.62 ms | 401 KiB | 5 Q