3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price_check = '0'; $filter='105'; 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') if($price_check <= '0') $filter=0; 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.70.0120.00316.58
8.3.60.0100.01018.30
8.3.50.0080.01122.05
8.3.40.0110.00418.55
8.3.30.0110.00319.09
8.3.20.0000.00820.32
8.3.10.0050.00321.77
8.3.00.0040.00418.03
8.2.180.0160.00016.47
8.2.170.0120.00322.96
8.2.160.0100.01020.15
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0070.00020.98
8.2.110.0060.00322.27
8.2.100.0070.00421.07
8.2.90.0070.00019.05
8.2.80.0060.00317.97
8.2.70.0050.00317.50
8.2.60.0090.00017.91
8.2.50.0050.00318.07
8.2.40.0100.00018.16
8.2.30.0080.00018.06
8.2.20.0040.00417.67
8.2.10.0000.00718.14
8.2.00.0060.00317.67
8.1.280.0120.00325.92
8.1.270.0060.00323.91
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.69
8.1.230.0030.00919.16
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0060.00318.50
8.1.160.0040.00421.88
8.1.150.0030.00618.91
8.1.140.0000.00817.45
8.1.130.0030.00317.82
8.1.120.0000.00717.44
8.1.110.0040.00417.43
8.1.100.0050.00317.49
8.1.90.0030.00517.49
8.1.80.0050.00217.37
8.1.70.0030.00517.43
8.1.60.0000.00817.62
8.1.50.0000.00817.42
8.1.40.0000.00717.45
8.1.30.0050.00317.60
8.1.20.0040.00417.58
8.1.10.0040.00417.45
8.1.00.0000.00817.29
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.34
8.0.270.0000.00717.26
8.0.260.0030.00317.24
8.0.250.0040.00216.90
8.0.240.0030.00316.82
8.0.230.0000.00616.84
8.0.220.0070.00016.86
8.0.210.0030.00316.91
8.0.200.0040.00416.91
8.0.190.0040.00416.96
8.0.180.0040.00416.94
8.0.170.0050.00216.91
8.0.160.0070.00016.80
8.0.150.0070.00016.87
8.0.140.0040.00416.78
8.0.130.0000.00613.29
8.0.120.0040.00416.77
8.0.110.0070.00016.82
8.0.100.0040.00416.77
8.0.90.0000.00716.78
8.0.80.0070.01416.80
8.0.70.0000.00716.94
8.0.60.0070.00016.95
8.0.50.0070.00016.98
8.0.30.0160.00417.08
8.0.20.0120.00717.40
8.0.10.0060.00316.88
8.0.00.0060.01216.96
7.4.330.0020.00215.16
7.4.320.0000.00716.62
7.4.300.0030.00316.56
7.4.290.0070.00016.52
7.4.280.0050.00616.48
7.4.270.0040.00416.55
7.4.260.0030.00616.59
7.4.250.0000.00716.47
7.4.240.0030.00416.48
7.4.230.0030.00316.69
7.4.220.0150.00316.56
7.4.210.0070.00716.44
7.4.200.0000.00716.33
7.4.160.0070.01016.55
7.4.150.0120.00617.40
7.4.140.0090.01217.86
7.4.130.0050.01116.44
7.4.120.0060.01316.40
7.4.110.0210.00016.47
7.4.100.0070.01116.58
7.4.90.0100.00716.47
7.4.80.0150.00719.39
7.4.70.0040.01116.35
7.4.60.0140.00316.49
7.4.50.0000.00416.66
7.4.40.0100.00716.65
7.4.30.0060.01016.52
7.4.00.0040.01215.04
7.3.330.0070.00213.03
7.3.320.0000.00613.10
7.3.310.0030.00316.28
7.3.300.0060.00016.16
7.3.290.0060.01216.18
7.3.280.0080.00716.20
7.3.270.0070.01017.40
7.3.260.0060.01816.57
7.3.250.0100.00716.22
7.3.240.0060.00916.22
7.3.230.0080.00816.40
7.3.210.0120.00416.28
7.3.200.0110.00719.39
7.3.190.0100.01016.30
7.3.180.0070.01016.18
7.3.170.0070.01016.27
7.3.160.0080.00816.23
7.3.120.0070.01014.73
7.3.110.0030.01015.04
7.3.100.0040.01214.80
7.3.90.0030.00614.70
7.3.80.0000.00914.26
7.3.70.0070.00714.79
7.3.60.0070.00714.80
7.3.50.0000.01214.35
7.3.40.0080.00814.76
7.3.30.0090.00614.62
7.3.20.0030.01216.37
7.3.10.0030.00916.44
7.3.00.0000.01316.50
7.2.330.0100.00716.64
7.2.320.0130.00316.36
7.2.310.0070.01116.57
7.2.300.0060.01116.55
7.2.290.0100.01316.71
7.2.250.0040.01415.13
7.2.240.0030.01314.93
7.2.230.0080.00414.95
7.2.220.0070.00314.73
7.2.210.0070.00715.12
7.2.200.0060.00914.76
7.2.190.0080.00614.88
7.2.180.0030.01314.91
7.2.170.0060.01314.91
7.2.130.0090.00316.80
7.2.120.0040.01116.98
7.2.110.0050.00516.84
7.2.100.0060.01217.01
7.2.90.0040.01517.00
7.2.80.0060.01216.73
7.2.70.0130.00516.88
7.2.60.0030.01216.99
7.2.50.0030.00916.90
7.2.40.0060.00316.83
7.2.30.0150.00016.96
7.2.20.0040.01116.92
7.2.10.0000.01416.80
7.2.00.0070.00918.10
7.1.330.0100.00315.59
7.1.320.0090.00615.54
7.1.310.0030.00915.52
7.1.300.0040.00415.65
7.1.290.0070.00715.57
7.1.280.0030.01015.52
7.1.270.0090.00915.70
7.1.260.0040.00815.39
7.1.250.0030.01015.68
7.1.100.0030.01017.79
7.1.70.0000.00717.06
7.1.60.0090.01519.25
7.1.50.0000.01216.60
7.1.00.0000.07722.40
7.0.200.0000.00716.55
7.0.140.0030.07322.21
7.0.60.0070.04320.02
7.0.50.0170.07717.79
7.0.40.0070.08319.90
7.0.30.0230.03720.12
7.0.20.0400.07319.99
7.0.10.0070.04020.17
7.0.00.0100.08020.12
5.6.280.0030.07321.05
5.6.210.0100.03320.76
5.6.200.0030.04018.22
5.6.190.0130.08020.45
5.6.180.0200.04320.45
5.6.170.0200.05320.41
5.6.160.0030.04020.48
5.6.150.0070.08018.16
5.6.140.0070.04018.18
5.6.130.0030.05318.21
5.6.120.0130.07320.97
5.6.110.0270.06720.99
5.6.100.0130.08020.95
5.6.90.0130.05020.95
5.6.80.0100.06320.52
5.5.350.0270.08020.38
5.5.340.0030.06317.88
5.5.330.0000.04320.40
5.5.320.0300.06720.26
5.5.310.0200.07320.28
5.5.300.0070.07317.92
5.5.290.0030.08317.93
5.5.280.0130.07720.77
5.5.270.0130.06320.75
5.5.260.0100.08020.75
5.5.250.0100.05720.68
5.5.240.0070.06720.26
5.4.450.0200.05019.41
5.4.440.0500.02719.45
5.4.430.0200.04719.21
5.4.420.0230.04719.41
5.4.410.0170.04719.32
5.4.400.0200.04319.16
5.4.390.0200.04719.10
5.4.380.1130.07318.46
5.4.370.1070.05318.52
5.4.360.1200.05318.74
5.4.350.1030.05018.46
5.4.340.0870.06018.72
5.4.320.0030.03912.45
5.4.310.0020.04212.45
5.4.300.0040.03812.45
5.4.290.0070.03812.45
5.4.280.0040.03712.34
5.4.270.0070.03512.35
5.4.260.0070.03712.34
5.4.250.0080.03512.34
5.4.240.0060.03612.35
5.4.230.0080.03512.34
5.4.220.0030.03912.34
5.4.210.0070.03512.34
5.4.200.0050.03812.34
5.4.190.0050.03512.34
5.4.180.0040.03812.33
5.4.170.0030.03912.34
5.4.160.0060.03612.34
5.4.150.0070.03512.34
5.4.140.0060.03612.02
5.4.130.0040.03712.01
5.4.120.0090.03211.96
5.4.110.0090.03311.96
5.4.100.0030.03711.96
5.4.90.0050.03711.96
5.4.80.0080.03411.96
5.4.70.0030.03811.96
5.4.60.0060.03411.96
5.4.50.0080.03211.96
5.4.40.0040.03911.95
5.4.30.0070.03711.95
5.4.20.0030.03711.95
5.4.10.0030.03811.95
5.4.00.0030.03811.43
5.3.290.0040.04412.80
5.3.280.0020.04112.71
5.3.270.0040.04012.72
5.3.260.0060.03812.72
5.3.250.0060.03712.72
5.3.240.0070.03712.72
5.3.230.0050.03912.71
5.3.220.0040.03912.68
5.3.210.0060.03912.68
5.3.200.0070.03612.68
5.3.190.0070.03712.68
5.3.180.0050.03812.67
5.3.170.0080.03412.67
5.3.160.0050.03812.67
5.3.150.0090.03512.67
5.3.140.0020.04012.66
5.3.130.0060.03912.66
5.3.120.0100.03512.66
5.3.110.0070.03812.66
5.3.100.0040.03812.12
5.3.90.0060.03512.08
5.3.80.0070.03612.07
5.3.70.0020.04112.07
5.3.60.0060.03612.06
5.3.50.0040.03712.00
5.3.40.0040.03812.00
5.3.30.0060.03411.94
5.3.20.0030.03811.72
5.3.10.0030.03911.70
5.3.00.0080.05011.68
5.2.170.0090.0339.19
5.2.160.0030.0319.18
5.2.150.0070.0349.18
5.2.140.0070.0329.18
5.2.130.0040.0299.13
5.2.120.0060.0349.14
5.2.110.0030.0309.14
5.2.100.0040.0299.14
5.2.90.0080.0269.14
5.2.80.0050.0309.13
5.2.70.0050.0309.14
5.2.60.0040.0319.08
5.2.50.0050.0329.05
5.2.40.0040.0329.03
5.2.30.0060.0299.01
5.2.20.0030.0309.00
5.2.10.0090.0248.93
5.2.00.0000.0348.79
5.1.60.0050.0238.07
5.1.50.0020.0288.07
5.1.40.0040.0258.06
5.1.30.0060.0248.41
5.1.20.0070.0248.43
5.1.10.0040.0268.15
5.1.00.0040.0328.15
5.0.50.0050.0276.63
5.0.40.0090.0226.48
5.0.30.0060.0306.30
5.0.20.0040.0256.27
5.0.10.0030.0216.25
5.0.00.0020.0326.24
4.4.90.0040.0144.78
4.4.80.0020.0164.75
4.4.70.0030.0154.75
4.4.60.0020.0164.76
4.4.50.0040.0144.77
4.4.40.0040.0244.71
4.4.30.0040.0154.76
4.4.20.0030.0154.84
4.4.10.0030.0154.84
4.4.00.0020.0254.76
4.3.110.0020.0164.67
4.3.100.0040.0144.67
4.3.90.0020.0154.63
4.3.80.0020.0254.58
4.3.70.0030.0144.63
4.3.60.0030.0144.62
4.3.50.0010.0174.63
4.3.40.0030.0244.53
4.3.30.0020.0163.29
4.3.20.0010.0173.27
4.3.10.0030.0153.23
4.3.00.0030.01715.26

preferences:
34.23 ms | 401 KiB | 5 Q