3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price_check = '51'; if($price_check > '0' || $filter='0') if($price_check > '20' || $filter='0-20') if($price_check > '50' || $filter='20-50') if($price_check > '100' || $filter='50-100') if($price_check > '200' || $filter='100-200') if($price_check > '500' || $filter='200-500') 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.0000.01416.50
8.3.50.0140.00622.05
8.3.40.0070.01018.72
8.3.30.0110.00418.96
8.3.20.0080.00020.31
8.3.10.0070.00021.73
8.3.00.0080.00017.93
8.2.180.0100.01016.38
8.2.170.0140.00722.96
8.2.160.0100.00320.35
8.2.150.0070.00024.18
8.2.140.0090.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00421.03
8.2.110.0030.00622.20
8.2.100.0060.00617.72
8.2.90.0080.00018.87
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0000.01018.03
8.2.50.0030.00618.07
8.2.40.0030.00519.95
8.2.30.0070.00318.12
8.2.20.0040.00417.68
8.2.10.0050.00218.05
8.2.00.0060.00317.55
8.1.280.0140.00725.92
8.1.270.0060.00323.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00023.76
8.1.230.0110.00018.96
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0030.00617.25
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0040.00418.57
8.1.160.0070.00021.93
8.1.150.0000.00718.79
8.1.140.0040.00417.45
8.1.130.0040.00417.80
8.1.120.0070.00017.45
8.1.110.0030.00517.46
8.1.100.0070.00017.42
8.1.90.0030.00317.49
8.1.80.0080.00017.50
8.1.70.0040.00417.34
8.1.60.0080.00017.43
8.1.50.0030.00617.47
8.1.40.0050.00217.48
8.1.30.0000.00717.63
8.1.20.0040.00417.54
8.1.10.0070.00017.54
8.1.00.0000.00717.30
8.0.300.0030.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.34
8.0.270.0000.00717.25
8.0.260.0030.00317.30
8.0.250.0000.00716.94
8.0.240.0000.00716.97
8.0.230.0030.00516.83
8.0.220.0030.00316.76
8.0.210.0030.00316.87
8.0.200.0000.00616.98
8.0.190.0040.00416.84
8.0.180.0040.00416.95
8.0.170.0040.00416.86
8.0.160.0000.00716.87
8.0.150.0070.00016.72
8.0.140.0030.00316.74
8.0.130.0030.00513.27
8.0.120.0030.00616.69
8.0.110.0000.00816.79
8.0.100.0050.00316.71
8.0.90.0000.00716.84
8.0.80.0040.01116.95
8.0.70.0040.00416.82
8.0.60.0040.00416.75
8.0.50.0030.00516.85
8.0.30.0140.00817.12
8.0.20.0120.01417.40
8.0.10.0000.00717.05
8.0.00.0080.01016.61
7.4.330.0050.00015.07
7.4.320.0040.00416.61
7.4.300.0030.00316.56
7.4.290.0040.00416.63
7.4.280.0080.00016.63
7.4.270.0000.00716.59
7.4.260.0000.00716.45
7.4.250.0000.00716.32
7.4.240.0040.00416.41
7.4.230.0040.00416.68
7.4.220.0100.00916.67
7.4.210.0000.01316.49
7.4.200.0050.00216.58
7.4.160.0100.00716.67
7.4.150.0130.00517.40
7.4.140.0040.01317.86
7.4.130.0050.01116.49
7.4.120.0110.00516.56
7.4.110.0070.01016.61
7.4.100.0110.00816.57
7.4.90.0040.01316.59
7.4.80.0200.01019.39
7.4.70.0150.00616.69
7.4.60.0100.00716.47
7.4.50.0030.00516.43
7.4.40.0050.01016.21
7.4.30.0060.01016.48
7.4.00.0090.00915.09
7.3.330.0030.00313.05
7.3.320.0020.00213.13
7.3.310.0030.00316.07
7.3.300.0030.00316.10
7.3.290.0100.01016.12
7.3.280.0080.01116.20
7.3.270.0060.01017.40
7.3.260.0120.01216.20
7.3.250.0080.01016.25
7.3.240.0210.00316.49
7.3.230.0150.00316.46
7.3.210.0050.01216.42
7.3.200.0110.00719.39
7.3.190.0140.00316.26
7.3.180.0000.01516.57
7.3.170.0170.00016.27
7.3.160.0040.01216.27
7.3.120.0070.00714.85
7.2.330.0090.00916.57
7.2.320.0030.01516.52
7.2.310.0130.01016.75
7.2.300.0130.00316.65
7.2.290.0090.00816.61
7.2.00.0030.00919.16
7.1.100.0040.01117.95
7.1.70.0030.00316.70
7.1.60.0070.01719.25
7.1.50.0100.00316.73
7.1.00.0030.08722.48
7.0.200.0020.00516.97
7.0.140.0070.07022.00
7.0.60.0170.07319.84
7.0.50.0130.07317.77
7.0.40.0130.05719.90
7.0.30.0270.08320.16
7.0.20.0200.08020.04
7.0.10.0330.04320.04
7.0.00.0030.04720.20
5.6.280.0070.07021.10
5.6.210.0070.08020.74
5.6.200.0030.05718.17
5.6.190.0100.07720.53
5.6.180.3700.05020.58
5.6.170.0230.03320.41
5.6.160.0030.08720.41
5.6.150.0070.04018.11
5.6.140.0000.09018.15
5.6.130.0100.07718.18
5.6.120.0130.04720.98
5.6.110.0030.09020.97
5.6.100.0200.06720.96
5.6.90.0200.07020.93
5.6.80.0030.05320.36
5.6.70.0230.05020.37
5.5.350.0300.07720.44
5.5.340.0030.04317.98
5.5.330.0100.08020.19
5.5.320.0400.06320.28
5.5.310.0300.06320.30
5.5.300.0130.07317.98
5.5.290.0100.05318.01
5.5.280.0030.07020.64
5.5.270.0070.04020.79
5.5.260.0100.04020.86
5.5.250.0030.04020.65
5.5.240.4230.03320.34
5.4.450.0730.06719.32
5.4.440.0600.06319.51
5.4.430.0630.05719.45
5.4.420.0500.06319.26
5.4.410.0330.05719.09
5.4.400.0370.06718.75
5.4.390.0330.05718.53
5.4.380.0230.05018.46
5.4.370.0170.03718.55
5.4.360.0100.03318.54
5.4.350.0100.07511.97
5.4.340.0090.03511.96
5.4.320.0050.03912.45
5.4.310.0030.04512.45
5.4.300.0070.03512.45
5.4.290.0110.03412.45
5.4.280.0070.03812.35
5.4.270.0090.04912.34
5.4.260.0070.04412.34
5.4.250.0110.04112.34
5.4.240.0070.04612.35
5.4.230.0050.04712.34
5.4.220.0120.05812.34
5.4.210.0120.04512.34
5.4.200.0040.04012.34
5.4.190.0060.04612.33
5.4.180.0100.03612.33
5.4.170.0110.03612.34
5.4.160.0040.03812.34
5.4.150.0050.04112.34
5.4.140.0060.04512.02
5.4.130.0040.03912.01
5.4.120.0080.03711.96
5.4.110.0100.03311.96
5.4.100.0060.04211.96
5.4.90.0070.03611.96
5.4.80.0080.04111.96
5.4.70.0090.03711.96
5.4.60.0090.04611.96
5.4.50.0140.04211.96
5.4.40.0100.05811.95
5.4.30.0100.03911.95
5.4.20.0090.03711.95
5.4.10.0150.04311.95
5.4.00.0110.04111.44
5.3.290.0080.04012.80
5.3.280.0080.03912.71
5.3.270.0040.04212.72
5.3.260.0060.04212.71
5.3.250.0020.04512.72
5.3.240.0080.04312.72
5.3.230.0080.04312.71
5.3.220.0070.04112.68
5.3.210.0030.04712.68
5.3.200.0070.03512.68
5.3.190.0070.03612.68
5.3.180.0070.03812.67
5.3.170.0090.03712.67
5.3.160.0030.04412.68
5.3.150.0030.04412.68
5.3.140.0040.04312.66
5.3.130.0090.04312.66
5.3.120.0060.04312.66
5.3.110.0050.04212.66
5.3.100.0080.03812.12
5.3.90.0050.04012.08
5.3.80.0080.03812.08
5.3.70.0130.04212.07
5.3.60.0080.04712.06
5.3.50.0050.04112.00
5.3.40.0070.03912.00
5.3.30.0190.06311.95
5.3.20.0060.04811.72
5.3.10.0090.04611.69
5.3.00.0030.04511.68
5.2.170.0050.0309.18
5.2.160.0030.0319.18
5.2.150.0040.0329.18
5.2.140.0040.0329.17
5.2.130.0070.0279.14
5.2.120.0020.0309.14
5.2.110.0080.0259.14
5.2.100.0040.0309.14
5.2.90.0040.0299.14
5.2.80.0060.0289.13
5.2.70.0080.0269.14
5.2.60.0060.0369.09
5.2.50.0050.0299.05
5.2.40.0080.0269.04
5.2.30.0070.0289.01
5.2.20.0050.0299.00
5.2.10.0060.0288.92
5.2.00.0030.0318.78
5.1.60.0040.0248.06
5.1.50.0040.0258.06
5.1.40.0040.0258.04
5.1.30.0040.0268.39
5.1.20.0040.0278.41
5.1.10.0030.0288.13
5.1.00.0040.0258.13
5.0.50.0010.0246.61
5.0.40.0030.0206.47
5.0.30.0050.0306.29
5.0.20.0010.0216.26
5.0.10.0030.0206.23
5.0.00.0040.0356.23
4.4.90.0050.0144.78
4.4.80.0040.0174.75
4.4.70.0050.0194.75
4.4.60.0020.0224.75
4.4.50.0020.0224.77
4.4.40.0080.0374.71
4.4.30.0060.0164.76
4.4.20.0030.0164.84
4.4.10.0040.0144.85
4.4.00.0020.0254.76
4.3.110.0040.0154.67
4.3.100.0020.0164.67
4.3.90.0010.0164.63
4.3.80.0030.0244.58
4.3.70.0040.0154.63
4.3.60.0030.0184.63
4.3.50.0050.0194.63
4.3.40.0040.0254.54
4.3.30.0030.0183.29
4.3.20.0030.0153.26
4.3.10.0050.0133.22
4.3.00.0170.0237.08

preferences:
41.04 ms | 401 KiB | 5 Q