3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price_check = '101'; if($price_check > '0' || $filter='0') if($price_check < '20' || $filter='20-50') if($price_check < '50' || $filter='50-100') if($price_check < '100' || $filter='100-200') if($price_check < '200' || $filter='200-500') if($price_check < '500' || $filter='501') 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.0070.00716.63
8.3.50.0200.00822.05
8.3.40.0140.00718.70
8.3.30.0120.00319.18
8.3.20.0040.00420.39
8.3.10.0050.00321.82
8.3.00.0050.00317.91
8.2.180.0140.01016.38
8.2.170.0150.00322.96
8.2.160.0130.00020.39
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00021.05
8.2.110.0030.00622.25
8.2.100.0070.00417.72
8.2.90.0020.00519.09
8.2.80.0080.00017.97
8.2.70.0080.00017.38
8.2.60.0070.00317.93
8.2.50.0070.00318.07
8.2.40.0030.00519.88
8.2.30.0070.00418.21
8.2.20.0040.00417.68
8.2.10.0000.00718.03
8.2.00.0000.00817.66
8.1.280.0040.01125.92
8.1.270.0060.00323.84
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00923.82
8.1.230.0000.01119.05
8.1.220.0090.00017.79
8.1.210.0060.00318.77
8.1.200.0000.00917.35
8.1.190.0050.00317.13
8.1.180.0050.00318.10
8.1.170.0040.00418.59
8.1.160.0000.00721.96
8.1.150.0040.00418.79
8.1.140.0050.00217.51
8.1.130.0000.00717.83
8.1.120.0030.00517.35
8.1.110.0070.00017.46
8.1.100.0040.00417.35
8.1.90.0030.00317.46
8.1.80.0000.00717.32
8.1.70.0000.00817.43
8.1.60.0030.00617.54
8.1.50.0050.00217.49
8.1.40.0000.00717.54
8.1.30.0040.00417.59
8.1.20.0040.00417.71
8.1.10.0040.00417.44
8.1.00.0070.00017.46
8.0.300.0080.00318.77
8.0.290.0070.00016.63
8.0.280.0000.00718.35
8.0.270.0000.00717.29
8.0.260.0000.00617.30
8.0.250.0000.00716.84
8.0.240.0000.00716.93
8.0.230.0050.00316.84
8.0.220.0040.00416.93
8.0.210.0030.00316.90
8.0.200.0030.00316.94
8.0.190.0000.00816.89
8.0.180.0020.00516.95
8.0.170.0030.00516.84
8.0.160.0000.00816.89
8.0.150.0000.00816.86
8.0.140.0040.00416.87
8.0.130.0030.00313.32
8.0.120.0000.00716.84
8.0.110.0040.00416.88
8.0.100.0000.00716.83
8.0.90.0040.00416.78
8.0.80.0090.00616.75
8.0.70.0040.00416.88
8.0.60.0000.00816.88
8.0.50.0020.00516.84
8.0.30.0170.00616.97
8.0.20.0100.00817.40
8.0.10.0050.00317.10
8.0.00.0130.00616.89
7.4.330.0000.00515.14
7.4.320.0000.00616.49
7.4.300.0030.00316.64
7.4.290.0000.00816.43
7.4.280.0000.00816.42
7.4.270.0000.00716.58
7.4.260.0000.00716.41
7.4.250.0040.00416.39
7.4.240.0010.00616.55
7.4.230.0070.00016.48
7.4.220.0060.01416.60
7.4.210.0100.00716.54
7.4.200.0040.00416.50
7.4.160.0090.00616.39
7.4.150.0030.01517.40
7.4.140.0120.00517.86
7.4.130.0100.00616.53
7.4.120.0080.00816.59
7.4.110.0110.00616.44
7.4.100.0100.01416.41
7.4.90.0140.00316.57
7.4.80.0100.01119.39
7.4.70.0090.00616.49
7.4.60.0070.01116.50
7.4.50.0000.00816.44
7.4.40.0060.01016.58
7.4.30.0040.01116.66
7.4.00.0070.01014.82
7.3.330.0000.00513.08
7.3.320.0020.00213.09
7.3.310.0030.00316.27
7.3.300.0000.00716.18
7.3.290.0100.00316.18
7.3.280.0100.00716.23
7.3.270.0040.01417.40
7.3.260.0080.00816.19
7.3.250.0060.01116.29
7.3.240.0070.01116.39
7.3.230.0090.00616.53
7.3.210.0060.01216.29
7.3.200.0100.00719.39
7.3.190.0170.00516.24
7.3.180.0090.01216.57
7.3.170.0060.00916.46
7.3.160.0130.00316.27
7.3.120.0040.01114.79
7.3.10.0100.00716.17
7.3.00.0070.01116.35
7.2.330.0100.00716.24
7.2.320.0130.01016.48
7.2.310.0000.01716.29
7.2.300.0090.00616.50
7.2.290.0100.01116.32
7.2.130.0050.00516.47
7.2.120.0070.01116.57
7.2.110.0160.00816.42
7.2.100.0150.00616.19
7.2.90.0150.00816.38
7.2.80.0170.01016.46
7.2.70.0120.00816.40
7.2.60.0070.00716.50
7.2.50.0070.01716.33
7.2.40.0120.00716.71
7.2.30.0070.01016.71
7.2.20.0160.00316.85
7.2.10.0140.00616.83
7.2.00.0100.00616.68
7.1.250.0060.00915.16
7.1.100.0080.00317.96
7.1.70.0050.00317.11
7.1.60.0160.00619.25
7.1.50.0070.01016.81
7.1.00.0030.07722.30
7.0.200.0000.00716.84
7.0.140.0030.07322.10
7.0.60.0170.07019.81
7.0.50.0070.06017.84
7.0.40.0030.04720.41
7.0.30.0300.08020.07
7.0.20.0270.08020.09
7.0.10.0130.08020.13
7.0.00.0130.06020.18
5.6.280.0000.07720.90
5.6.210.0130.08020.54
5.6.200.0000.06018.12
5.6.190.0100.08320.39
5.6.180.0230.04720.45
5.6.170.0330.07020.44
5.6.160.0100.03720.49
5.6.150.0130.04318.12
5.6.140.0030.08018.11
5.6.130.0070.05718.18
5.6.120.0100.04020.98
5.6.110.0100.08321.10
5.6.100.0170.06321.09
5.6.90.0030.04321.09
5.6.80.0070.09020.52
5.5.350.0170.06320.43
5.5.340.0070.07317.93
5.5.330.0030.04320.23
5.5.320.0030.05020.20
5.5.310.0230.08020.29
5.5.300.0030.06018.02
5.5.290.0070.03717.91
5.5.280.0070.04020.64
5.5.270.0030.06020.86
5.5.260.0000.04720.84
5.5.250.0100.07720.69
5.5.240.0070.04720.25
5.4.450.3100.03719.51
5.4.440.0970.04319.58
5.4.430.3300.03719.25
5.4.420.3670.04319.36
5.4.410.3370.03719.36
5.4.400.4070.03318.87
5.4.390.3830.04319.00
5.4.380.3670.03318.98
5.4.370.3930.03319.09
5.4.360.3930.03319.16
5.4.350.3830.03719.00
5.4.340.3530.04719.09
5.4.320.3830.02718.92
5.4.310.4400.04018.88
5.4.300.3870.04018.92
5.4.290.4000.03719.26
5.4.280.3870.04318.96
5.4.270.5030.04018.88
5.4.260.4730.03019.04
5.4.250.4170.03318.86
5.4.240.3970.03018.96
5.4.230.4100.04319.04
5.4.220.4130.03719.05
5.4.210.3570.04319.17
5.4.200.3700.03018.88
5.4.190.3800.03319.12
5.4.180.3630.04019.18
5.4.170.3700.04319.11
5.4.160.3670.03019.23
5.4.150.4030.03719.15
5.4.140.3630.03716.43
5.4.130.3930.03016.43
5.4.120.3730.03716.43
5.4.110.3900.03716.24
5.4.100.3630.04016.32
5.4.90.2270.04016.13
5.4.80.4270.04016.39
5.4.70.4530.03716.37
5.4.60.4700.03016.22
5.4.50.3800.02716.32
5.4.40.3670.03316.56
5.4.30.3800.03716.32
5.4.20.3630.03016.38
5.4.10.3170.03016.20
5.4.00.3430.03315.88
5.3.290.4530.04314.59
5.3.280.3900.03714.68
5.3.270.4070.02714.53
5.3.260.3870.04314.55
5.3.250.3900.03714.54
5.3.240.3770.04314.42
5.3.230.3930.03314.52
5.3.220.3670.03314.45
5.3.210.3670.03714.65
5.3.200.3870.03714.52
5.3.190.3930.03714.65
5.3.180.3830.03314.48
5.3.170.4400.03714.58
5.3.160.4230.03714.55
5.3.150.4170.03314.49
5.3.140.3870.03314.48
5.3.130.3600.03714.51
5.3.120.3600.03714.49
5.3.110.3770.03314.48
5.3.100.3630.03713.98
5.3.90.3670.03313.98
5.3.80.4000.04013.83
5.3.70.3670.03313.94
5.3.60.2670.03713.94
5.3.50.0000.03713.76
5.3.40.1330.03313.92
5.3.30.3700.03313.88
5.3.20.3970.03713.67
5.3.10.4130.03313.61
5.3.00.4870.04313.56
5.2.170.0000.03011.02
5.2.160.0000.03011.11
5.2.150.3070.02711.13
5.2.140.3000.03311.09
5.2.130.3230.03011.03
5.2.120.3030.02711.09
5.2.110.3370.03011.09
5.2.100.3070.03011.09
5.2.90.3500.04011.04
5.2.80.2900.02011.10
5.2.70.3030.03011.08
5.2.60.3330.02711.05
5.2.50.3130.02310.84
5.2.40.2630.02310.98
5.2.30.2730.03010.79
5.2.20.2770.02710.77
5.2.10.2700.02710.86
5.2.00.1430.03010.71
5.1.60.0100.04710.01
5.1.50.0000.0309.98
5.1.40.0070.0309.88
5.1.30.0700.02310.34
5.1.20.2770.02710.34
5.1.10.2600.02710.06
5.1.00.2830.02310.13
5.0.50.1170.0238.59
5.0.40.1200.0208.45
5.0.30.1300.0308.20
5.0.20.1570.0238.34
5.0.10.1530.0178.23
5.0.00.1570.0378.15
4.4.90.1230.0136.04
4.4.80.1470.0176.04
4.4.70.1400.0176.04
4.4.60.1200.0176.04
4.4.50.1470.0176.04
4.4.40.0030.0436.04
4.4.30.0030.0176.04
4.4.20.1470.0176.04
4.4.10.1470.0136.04
4.4.00.1470.0276.04
4.3.110.1300.0176.04
4.3.100.1700.0076.04
4.3.90.1470.0176.04
4.3.80.1270.0276.04
4.3.70.1430.0176.04
4.3.60.1230.0176.04
4.3.50.1470.0176.04
4.3.40.1470.0306.04
4.3.30.0770.0136.04
4.3.20.0700.0236.04
4.3.10.0630.0136.04
4.3.00.0730.0206.04

preferences:
43.06 ms | 401 KiB | 5 Q