3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price_check = '500.01'; if($price_check > '0') $filter='501'; if($price_check > '500' || $filter='200-500') if($price_check > '200' || $filter='100-200') if($price_check > '100' || $filter='50-100' ) if($price_check > '50' || $filter='20-50' ) if($price_check > '20' || $filter='0-20' ) echo $filter;

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.0100.01018.31
8.3.50.0260.00222.04
8.3.40.0150.00018.85
8.3.30.0100.00318.89
8.3.20.0050.00220.52
8.3.10.0000.00821.76
8.3.00.0040.00417.80
8.2.180.0120.00916.63
8.2.170.0110.00422.96
8.2.160.0070.00720.42
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00221.02
8.2.110.0150.00322.20
8.2.100.0030.00919.63
8.2.90.0050.00219.21
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0000.00917.89
8.2.50.0080.00018.07
8.2.40.0030.00618.34
8.2.30.0090.00318.05
8.2.20.0080.00017.55
8.2.10.0000.00717.97
8.2.00.0040.00417.77
8.1.280.0120.00325.92
8.1.270.0030.00623.87
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.01623.97
8.1.230.0080.00419.16
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0000.00917.23
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0080.00018.70
8.1.160.0040.00422.07
8.1.150.0040.00418.87
8.1.140.0000.00717.32
8.1.130.0000.00717.83
8.1.120.0060.00317.48
8.1.110.0050.00217.45
8.1.100.0070.00017.47
8.1.90.0030.00517.49
8.1.80.0040.00417.34
8.1.70.0000.00717.47
8.1.60.0030.00617.50
8.1.50.0090.00017.52
8.1.40.0000.00717.51
8.1.30.0040.00417.60
8.1.20.0040.00417.69
8.1.10.0050.00217.41
8.1.00.0030.00617.34
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.32
8.0.270.0040.00417.25
8.0.260.0060.00017.25
8.0.250.0000.00716.88
8.0.240.0000.00716.94
8.0.230.0030.00316.95
8.0.220.0030.00316.95
8.0.210.0000.00716.89
8.0.200.0030.00316.81
8.0.190.0000.00816.93
8.0.180.0020.00516.84
8.0.170.0040.00416.88
8.0.160.0000.00716.77
8.0.150.0040.00416.82
8.0.140.0060.00316.78
8.0.130.0030.00313.40
8.0.120.0040.00416.90
8.0.110.0040.00416.71
8.0.100.0070.00016.87
8.0.90.0000.00716.90
8.0.80.0080.00816.84
8.0.70.0040.00416.72
8.0.60.0070.00016.88
8.0.50.0040.00416.91
8.0.30.0080.01317.02
8.0.20.0090.01017.40
8.0.10.0040.00416.88
8.0.00.0090.00816.74
7.4.330.0020.00215.02
7.4.320.0030.00316.50
7.4.300.0030.00316.45
7.4.290.0030.00316.58
7.4.280.0050.00316.50
7.4.270.0070.00016.60
7.4.260.0050.00516.55
7.4.250.0070.00016.60
7.4.240.0020.00616.46
7.4.230.0040.00416.32
7.4.220.0090.00916.45
7.4.210.0090.00616.40
7.4.200.0030.00316.60
7.4.160.0130.00316.37
7.4.150.0120.01217.40
7.4.140.0080.01017.86
7.4.130.0100.01416.62
7.4.120.0060.01116.45
7.4.110.0080.00816.40
7.4.100.0160.00316.47
7.4.90.0090.00916.40
7.4.80.0090.00919.39
7.4.70.0090.00616.45
7.4.60.0090.01216.49
7.4.50.0030.00616.24
7.4.40.0090.00616.61
7.4.30.0110.00516.38
7.4.00.0030.00614.76
7.3.330.0000.00712.94
7.3.320.0000.00513.09
7.3.310.0000.00716.12
7.3.300.0070.00016.03
7.3.290.0070.01116.15
7.3.280.0090.00716.21
7.3.270.0090.00917.40
7.3.260.0060.01216.29
7.3.240.0130.00316.47
7.3.230.0130.00316.39
7.3.210.0080.01516.42
7.3.200.0030.01219.39
7.3.190.0120.01216.03
7.3.180.0090.00616.57
7.3.170.0130.00316.46
7.3.160.0140.00716.23
7.3.120.0060.00614.67
7.2.330.0130.01316.54
7.2.320.0130.00416.58
7.2.310.0140.00316.50
7.2.300.0160.00916.56
7.2.290.0040.01516.73
7.2.00.0030.00919.08
7.1.100.0060.00317.98
7.1.70.0000.00716.70
7.1.60.0140.01019.25
7.1.50.0120.01216.88
7.1.00.0070.07322.40
7.0.200.0000.00816.88
7.0.140.0030.07321.92
7.0.60.0030.05319.95
7.0.50.0030.08717.80
7.0.40.0170.05020.24
7.0.30.0170.04719.95
7.0.20.0300.08720.33
7.0.10.0100.05720.11
7.0.00.0100.04020.08
5.6.280.0070.07020.81
5.6.210.0100.06320.69
5.6.200.0070.03718.08
5.6.190.0100.05720.27
5.6.180.0370.07320.32
5.6.170.0230.08020.47
5.6.160.0130.05020.51
5.6.150.0030.04718.18
5.6.140.0030.04018.21
5.6.130.0100.04018.22
5.6.120.0030.08721.11
5.6.110.0030.04320.97
5.6.100.0100.04321.11
5.6.90.0030.08720.96
5.6.80.0170.07020.39
5.5.350.3830.03720.34
5.5.340.0100.07317.95
5.5.330.0070.06020.19
5.5.320.0370.06020.13
5.5.310.0170.04320.13
5.5.300.0100.07717.91
5.5.290.0070.05717.96
5.5.280.0000.04320.68
5.5.270.0030.04020.75
5.5.260.0070.06720.78
5.5.250.0200.06720.54
5.5.240.0130.04020.18
5.4.450.0170.04719.57
5.4.440.0300.03319.56
5.4.430.0200.04719.27
5.4.420.0470.04719.47
5.4.410.0300.05319.45
5.4.400.0370.04319.08
5.4.390.1000.04019.09
5.4.380.0400.06018.70
5.4.370.0400.07318.61
5.4.360.0400.06018.70
5.4.350.0370.05718.52
5.4.340.0570.05018.72
5.4.320.0080.03412.45
5.4.310.0120.06112.45
5.4.300.0120.05712.46
5.4.290.0090.03612.45
5.4.280.0070.05512.35
5.4.270.0130.05212.34
5.4.260.0100.05012.35
5.4.250.0120.04712.34
5.4.240.0110.03512.35
5.4.230.0060.04112.34
5.4.220.0080.03812.34
5.4.210.0100.03412.34
5.4.200.0110.04912.34
5.4.190.0070.04112.33
5.4.180.0120.04712.34
5.4.170.0100.03412.34
5.4.160.0100.03312.34
5.4.150.0080.03712.34
5.4.140.0070.03612.02
5.4.130.0080.03312.01
5.4.120.0080.04511.97
5.4.110.0060.03611.96
5.4.100.0100.04511.97
5.4.90.0080.04911.96
5.4.80.0080.04611.96
5.4.70.0040.03811.96
5.4.60.0080.03511.96
5.4.50.0070.04511.96
5.4.40.0130.04811.95
5.4.30.0050.03911.95
5.4.20.0100.03511.95
5.4.10.0100.04011.95
5.4.00.0160.05011.44
5.3.290.0120.03712.80
5.3.280.0110.05212.71
5.3.270.0120.05012.73
5.3.260.0090.04912.71
5.3.250.0060.03712.72
5.3.240.0060.03712.72
5.3.230.0040.04112.71
5.3.220.0090.03812.68
5.3.210.0080.05212.68
5.3.200.0100.04112.68
5.3.190.0090.05012.68
5.3.180.0050.04512.67
5.3.170.0120.05212.67
5.3.160.0170.04412.67
5.3.150.0140.04712.68
5.3.140.0140.04512.66
5.3.130.0180.05212.65
5.3.120.0190.07812.66
5.3.110.0080.05512.66
5.3.100.0100.05312.12
5.3.90.0090.05312.08
5.3.80.0080.05012.08
5.3.70.0090.04112.07
5.3.60.0080.03712.06
5.3.50.0080.05012.00
5.3.40.0120.03612.00
5.3.30.0130.05711.94
5.3.20.0200.06611.72
5.3.10.0120.06011.69
5.3.00.0060.04111.68
5.2.170.0080.0339.18
5.2.160.0120.0349.18
5.2.150.0100.0349.18
5.2.140.0090.0559.18
5.2.130.0100.0539.13
5.2.120.0040.0509.13
5.2.110.0140.0609.14
5.2.100.0140.0469.13
5.2.90.0070.0289.14
5.2.80.0050.0339.13
5.2.70.0100.0279.13
5.2.60.0080.0299.09
5.2.50.0120.0379.05
5.2.40.0090.0359.03
5.2.30.0080.0419.01
5.2.20.0100.0469.00
5.2.10.0070.0418.92
5.2.00.0050.0428.78
5.1.60.0060.0338.06
5.1.50.0050.0358.05
5.1.40.0080.0248.04
5.1.30.0050.0288.39
5.1.20.0030.0308.41
5.1.10.0060.0268.13
5.1.00.0110.0498.14
5.0.50.0030.0236.61
5.0.40.0060.0266.48
5.0.30.0050.0476.29
5.0.20.0070.0256.29
5.0.10.0120.0396.26
5.0.00.0070.0376.25
4.4.90.0020.0184.77
4.4.80.0040.0154.76
4.4.70.0030.0174.75
4.4.60.0040.0154.76
4.4.50.0010.0214.77
4.4.40.0040.0314.71
4.4.30.0000.0184.76
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0030.0254.75
4.3.110.0070.0174.67
4.3.100.0040.0204.66
4.3.90.0040.0184.63
4.3.80.0040.0254.58
4.3.70.0050.0144.63
4.3.60.0070.0124.63
4.3.50.0030.0174.63
4.3.40.0040.0284.54
4.3.30.0030.0173.30
4.3.20.0030.0183.28
4.3.10.0040.0143.25
4.3.00.0030.02315.26

preferences:
41.78 ms | 400 KiB | 5 Q