3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price_check = '500'; $filter='501'; if($price_check > '0' || $filter='0'){ 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.0070.00718.56
8.3.50.0110.00721.97
8.3.40.0110.00418.86
8.3.30.0070.01019.13
8.3.20.0040.00420.34
8.3.10.0000.00721.82
8.3.00.0050.00317.79
8.2.180.0140.00416.50
8.2.170.0160.00022.96
8.2.160.0100.00320.35
8.2.150.0000.00724.18
8.2.140.0020.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00419.57
8.2.110.0000.00922.21
8.2.100.0040.00817.84
8.2.90.0070.00019.23
8.2.80.0030.00617.97
8.2.70.0040.00417.59
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0000.00819.95
8.2.30.0000.00817.95
8.2.20.0040.00417.80
8.2.10.0040.00418.01
8.2.00.0050.00217.82
8.1.280.0030.01525.92
8.1.270.0080.00023.97
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0000.00923.97
8.1.230.0040.00719.16
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00818.54
8.1.160.0030.00521.98
8.1.150.0040.00418.83
8.1.140.0000.00717.51
8.1.130.0000.00817.83
8.1.120.0050.00217.53
8.1.110.0030.00517.31
8.1.100.0040.00417.48
8.1.90.0040.00417.36
8.1.80.0070.00017.46
8.1.70.0030.00317.46
8.1.60.0040.00417.62
8.1.50.0000.00917.42
8.1.40.0030.00617.41
8.1.30.0040.00417.66
8.1.20.0030.00717.74
8.1.10.0000.00817.57
8.1.00.0000.00717.44
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.32
8.0.270.0000.00717.27
8.0.260.0060.00017.16
8.0.250.0070.00017.00
8.0.240.0000.00716.97
8.0.230.0040.00416.86
8.0.220.0000.00716.89
8.0.210.0000.00716.79
8.0.200.0000.00616.95
8.0.190.0000.00716.94
8.0.180.0030.00516.79
8.0.170.0040.00416.93
8.0.160.0070.00016.86
8.0.150.0030.00316.96
8.0.140.0000.00716.86
8.0.130.0000.00513.41
8.0.120.0040.00416.79
8.0.110.0040.00416.82
8.0.100.0040.00416.93
8.0.90.0000.00716.84
8.0.80.0060.00916.96
8.0.70.0040.00416.75
8.0.60.0030.00316.72
8.0.50.0050.00316.74
8.0.30.0170.00616.99
8.0.20.0120.01017.40
8.0.10.0000.00716.89
8.0.00.0100.00716.67
7.4.330.0020.00215.00
7.4.320.0030.00316.61
7.4.300.0000.00616.60
7.4.290.0080.00016.65
7.4.280.0070.00016.64
7.4.270.0050.00316.52
7.4.260.0030.00716.45
7.4.250.0000.00716.50
7.4.240.0040.00416.61
7.4.230.0070.00016.57
7.4.220.0110.01616.63
7.4.210.0050.00916.54
7.4.200.0000.00816.64
7.4.160.0100.01016.63
7.4.150.0140.00517.40
7.4.140.0070.01017.86
7.4.130.0130.00516.41
7.4.120.0090.00716.38
7.4.110.0090.00916.56
7.4.100.0140.00816.34
7.4.90.0150.00316.52
7.4.80.0030.01619.39
7.4.70.0110.00716.58
7.4.60.0090.00916.48
7.4.50.0020.00216.22
7.4.40.0040.01216.56
7.4.30.0060.01116.37
7.4.00.0040.01414.95
7.3.330.0070.00013.07
7.3.320.0000.00513.14
7.3.310.0000.00716.27
7.3.300.0040.00416.19
7.3.290.0120.00916.19
7.3.280.0080.00816.20
7.3.270.0090.00917.40
7.3.260.0090.01216.27
7.3.250.0110.00716.33
7.3.240.0080.00816.34
7.3.230.0080.00816.49
7.3.210.0060.01016.09
7.3.200.0120.00619.39
7.3.190.0030.01316.20
7.3.180.0040.01216.49
7.3.170.0060.01116.29
7.3.160.0120.00316.29
7.3.120.0070.01414.56
7.3.110.0060.01014.53
7.3.100.0000.01714.82
7.3.90.0100.00714.82
7.3.80.0100.00715.01
7.3.70.0080.01114.77
7.3.60.0080.01314.37
7.3.50.0140.00314.91
7.3.40.0110.00514.56
7.3.30.0080.00814.59
7.3.20.0000.01216.57
7.3.10.0080.00516.66
7.3.00.0000.01316.57
7.2.330.0030.02116.25
7.2.320.0160.00616.30
7.2.310.0090.01216.53
7.2.300.0100.00716.44
7.2.290.0030.01316.59
7.2.240.0060.01114.78
7.2.230.0040.01414.94
7.2.220.0080.00814.97
7.2.210.0000.01715.06
7.2.200.0030.01814.95
7.2.190.0110.00914.98
7.2.180.0100.01015.09
7.2.170.0090.00914.82
7.2.160.0000.01414.57
7.2.150.0150.00316.70
7.2.140.0040.00916.58
7.2.130.0000.01316.66
7.2.120.0070.01516.93
7.2.110.0090.00616.50
7.2.100.0060.01516.82
7.2.90.0090.00616.94
7.2.80.0030.01016.59
7.2.70.0030.01016.64
7.2.60.0060.00916.96
7.2.50.0030.01016.62
7.2.40.0030.01216.65
7.2.30.0060.00916.73
7.2.20.0130.00016.61
7.2.10.0070.00316.87
7.2.00.0060.00916.89
7.1.330.0080.00815.34
7.1.320.0000.01515.60
7.1.310.0080.00415.81
7.1.300.0140.00515.38
7.1.290.0030.00615.31
7.1.280.0090.00315.63
7.1.270.0060.00615.66
7.1.260.0080.00815.52
7.1.250.0100.00715.41
7.1.70.0040.00417.09
7.1.60.0070.01819.25
7.1.50.0030.01716.96
7.1.00.0070.07322.30
7.0.200.0100.00716.57
7.0.140.0070.07021.99
7.0.60.0070.06020.08
7.0.50.0100.06017.79
7.0.40.0030.04320.08
7.0.30.0330.07020.01
7.0.20.0230.08320.04
7.0.10.0030.07720.33
7.0.00.0070.05720.09
5.6.280.0000.07721.06
5.6.210.0070.08720.47
5.6.200.0130.08018.12
5.6.190.0100.04320.56
5.6.180.0200.08020.41
5.6.170.0230.04320.46
5.6.160.0070.09020.50
5.6.150.0170.07718.22
5.6.140.0070.05018.18
5.6.130.0070.04318.10
5.6.120.0030.08721.01
5.6.110.0130.08021.08
5.6.100.0070.08320.98
5.6.90.0000.09020.99
5.6.80.0070.03720.37
5.5.350.0270.07020.44
5.5.340.0170.04317.98
5.5.330.0100.05020.37
5.5.320.0430.06020.32
5.5.310.0170.04720.29
5.5.300.0030.08717.94
5.5.290.0130.06717.92
5.5.280.0100.07720.79
5.5.270.0070.03720.86
5.5.260.0070.08320.72
5.5.250.0100.08720.76
5.5.240.0030.07720.23
5.4.450.0500.05319.52
5.4.440.0700.06319.47
5.4.430.0870.05319.47
5.4.420.0070.05719.25
5.4.410.0130.05019.39
5.4.400.0200.04719.17
5.4.390.0100.05319.18
5.4.380.1000.06318.75
5.4.370.0700.05018.59
5.4.360.1170.04718.64
5.4.350.0900.06018.51
5.4.340.0870.06018.73
5.4.320.0060.03712.45
5.4.310.0070.03812.45
5.4.300.0080.03512.45
5.4.290.0060.03712.45
5.4.280.0040.03612.35
5.4.270.0050.03712.35
5.4.260.0050.03912.35
5.4.250.0090.03512.35
5.4.240.0040.03812.34
5.4.230.0110.04312.34
5.4.220.0050.03712.34
5.4.210.0040.03712.34
5.4.200.0050.04212.34
5.4.190.0080.03412.34
5.4.180.0070.03412.34
5.4.170.0060.03612.35
5.4.160.0050.04112.34
5.4.150.0060.04012.34
5.4.140.0090.03812.02
5.4.130.0080.03612.01
5.4.120.0110.05511.96
5.4.110.0090.04211.96
5.4.100.0080.07211.96
5.4.90.0140.06511.96
5.4.80.0110.05511.96
5.4.70.0150.06911.96
5.4.60.0100.06411.96
5.4.50.0090.04811.96
5.4.40.0080.03911.95
5.4.30.0110.04511.95
5.4.20.0090.04311.95
5.4.10.0200.08211.95
5.4.00.0090.05311.44
5.3.290.0090.03812.80
5.3.280.0090.06012.71
5.3.270.0180.06212.73
5.3.260.0070.07512.72
5.3.250.0080.03912.72
5.3.240.0060.03812.72
5.3.230.0030.04312.71
5.3.220.0050.04112.68
5.3.210.0050.05012.68
5.3.200.0060.04512.68
5.3.190.0090.03612.68
5.3.180.0090.03412.68
5.3.170.0090.04412.67
5.3.160.0050.04212.68
5.3.150.0090.04412.67
5.3.140.0090.04012.66
5.3.130.0070.03912.66
5.3.120.0070.04312.66
5.3.110.0060.04812.66
5.3.100.0080.04412.12
5.3.90.0040.04112.08
5.3.80.0090.03812.07
5.3.70.0080.04812.07
5.3.60.0050.03912.06
5.3.50.0040.04012.00
5.3.40.0060.04312.00
5.3.30.0040.03811.94
5.3.20.0040.04111.72
5.3.10.0090.05411.69
5.3.00.0070.04011.68
5.2.170.0090.0269.18
5.2.160.0070.0309.18
5.2.150.0030.0339.18
5.2.140.0100.0369.18
5.2.130.0080.0289.13
5.2.120.0020.0309.14
5.2.110.0020.0319.14
5.2.100.0070.0259.14
5.2.90.0040.0299.14
5.2.80.0060.0289.14
5.2.70.0050.0319.13
5.2.60.0040.0309.09
5.2.50.0030.0329.06
5.2.40.0040.0309.03
5.2.30.0050.0299.01
5.2.20.0040.0299.00
5.2.10.0050.0288.92
5.2.00.0040.0338.78
5.1.60.0030.0258.06
5.1.50.0050.0238.05
5.1.40.0050.0238.04
5.1.30.0030.0278.39
5.1.20.0040.0278.41
5.1.10.0020.0288.13
5.1.00.0030.0268.14
5.0.50.0050.0196.61
5.0.40.0060.0176.47
5.0.30.0030.0316.29
5.0.20.0050.0196.26
5.0.10.0050.0186.23
5.0.00.0020.0316.23
4.4.90.0000.0174.78
4.4.80.0050.0134.75
4.4.70.0040.0144.76
4.4.60.0040.0144.76
4.4.50.0040.0144.77
4.4.40.0010.0274.71
4.4.30.0020.0164.76
4.4.20.0050.0134.84
4.4.10.0030.0164.85
4.4.00.0030.0254.76
4.3.110.0030.0154.67
4.3.100.0030.0154.66
4.3.90.0050.0124.63
4.3.80.0040.0234.58
4.3.70.0020.0154.63
4.3.60.0040.0134.63
4.3.50.0030.0164.63
4.3.40.0040.0234.53
4.3.30.0020.0173.28
4.3.20.0010.0173.26
4.3.10.0030.0183.21
4.3.00.0130.0208.85

preferences:
39.26 ms | 401 KiB | 5 Q