3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price_check = '500'; if($price_check > '0' || $filter='0') if($price_check > '500' || $filter='501') if($price_check > '200' || $filter='200-500') if($price_check > '100' || $filter='100-200') 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.0150.00316.50
8.3.50.0130.00321.98
8.3.40.0000.01518.79
8.3.30.0030.01019.08
8.3.20.0080.00020.34
8.3.10.0080.00021.73
8.3.00.0080.00017.93
8.2.180.0060.01616.75
8.2.170.0070.00722.96
8.2.160.0070.00720.48
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0040.01126.16
8.2.120.0000.00821.09
8.2.110.0060.00322.28
8.2.100.0110.00019.45
8.2.90.0000.00819.24
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0040.00817.93
8.2.50.0000.00918.07
8.2.40.0000.00718.16
8.2.30.0000.00817.96
8.2.20.0040.00417.73
8.2.10.0040.00418.18
8.2.00.0000.00817.66
8.1.280.0040.01125.92
8.1.270.0050.00323.76
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.84
8.1.230.0070.00418.99
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00417.35
8.1.190.0030.00517.13
8.1.180.0000.01018.10
8.1.170.0090.00018.61
8.1.160.0040.00422.00
8.1.150.0000.00718.75
8.1.140.0040.00417.45
8.1.130.0070.00017.87
8.1.120.0100.00017.36
8.1.110.0070.00017.49
8.1.100.0030.00317.43
8.1.90.0030.00317.46
8.1.80.0040.00417.36
8.1.70.0000.00717.37
8.1.60.0000.00717.46
8.1.50.0030.00617.50
8.1.40.0040.00417.39
8.1.30.0040.00417.59
8.1.20.0090.00017.54
8.1.10.0040.00417.37
8.1.00.0040.00417.46
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00518.39
8.0.270.0000.00717.25
8.0.260.0040.00417.25
8.0.250.0040.00416.82
8.0.240.0060.00016.90
8.0.230.0070.00016.97
8.0.220.0000.00716.93
8.0.210.0000.00616.78
8.0.200.0030.00316.87
8.0.190.0000.00716.89
8.0.180.0070.00016.96
8.0.170.0060.00316.94
8.0.160.0040.00416.91
8.0.150.0040.00416.79
8.0.140.0000.00716.84
8.0.130.0060.00013.28
8.0.120.0040.00416.72
8.0.110.0050.00316.84
8.0.100.0030.00516.82
8.0.90.0000.00716.73
8.0.80.0150.00616.77
8.0.70.0040.00416.83
8.0.60.0030.00316.89
8.0.50.0040.00416.80
8.0.30.0130.01017.12
8.0.20.0120.01217.40
8.0.10.0040.00416.84
8.0.00.0130.00416.76
7.4.330.0020.00215.00
7.4.320.0000.00616.53
7.4.300.0060.00016.61
7.4.290.0040.00416.40
7.4.280.0030.00516.63
7.4.270.0000.00716.55
7.4.260.0060.00316.34
7.4.250.0000.00716.57
7.4.240.0030.00516.51
7.4.230.0060.00016.29
7.4.220.0120.00616.54
7.4.210.0170.00016.57
7.4.200.0040.00416.57
7.4.160.0040.01216.49
7.4.150.0090.00917.40
7.4.140.0100.00917.86
7.4.130.0030.01716.56
7.4.120.0050.01216.53
7.4.110.0120.00616.28
7.4.100.0090.01316.36
7.4.90.0090.01316.52
7.4.80.0030.01719.39
7.4.70.0130.00316.43
7.4.60.0120.00316.41
7.4.50.0000.00416.55
7.4.40.0090.00616.41
7.4.30.0070.01016.68
7.4.00.0060.00915.18
7.3.330.0030.00313.06
7.3.320.0020.00212.87
7.3.310.0030.00416.11
7.3.300.0000.00716.19
7.3.290.0080.01116.14
7.3.280.0090.00816.18
7.3.270.0060.01217.40
7.3.260.0150.00916.64
7.3.240.0070.01016.43
7.3.230.0060.00916.44
7.3.210.0060.01116.21
7.3.200.0160.00016.40
7.3.190.0210.00316.25
7.3.180.0060.00916.30
7.3.170.0090.00616.54
7.3.160.0060.00916.20
7.3.120.0080.00814.79
7.3.10.0070.00716.36
7.3.00.0100.00716.63
7.2.330.0090.00916.36
7.2.320.0030.01316.39
7.2.310.0100.00616.58
7.2.300.0070.01016.70
7.2.290.0060.01016.64
7.2.130.0090.00716.71
7.2.120.0050.01016.82
7.2.110.0090.01016.67
7.2.100.0040.01216.70
7.2.90.0100.00316.89
7.2.80.0100.00716.75
7.2.70.0080.00716.81
7.2.60.0120.00516.80
7.2.50.0120.00416.69
7.2.40.0080.00516.89
7.2.30.0070.00816.72
7.2.20.0070.00916.78
7.2.10.0040.00916.71
7.2.00.0070.00817.68
7.1.250.0110.00315.59
7.1.240.0070.00715.56
7.1.230.0090.00615.63
7.1.220.0070.01015.63
7.1.210.0060.00615.34
7.1.200.0040.00815.52
7.1.190.0070.01315.53
7.1.180.0120.00615.71
7.1.170.0070.00715.55
7.1.160.0130.00615.44
7.1.150.0200.00015.83
7.1.140.0110.00315.70
7.1.130.0130.00315.56
7.1.120.0090.00915.49
7.1.110.0100.00715.72
7.1.100.0110.00316.65
7.1.90.0100.00315.56
7.1.80.0100.00715.74
7.1.70.0040.00816.25
7.1.60.0100.00817.42
7.1.50.0060.01316.16
7.1.40.0070.00715.40
7.1.30.0250.00215.69
7.1.20.0110.01115.38
7.1.10.0190.00315.69
7.1.00.0090.04019.00
7.0.330.0110.00415.26
7.0.320.0110.00615.24
7.0.310.0050.01015.35
7.0.300.0060.00615.29
7.0.290.0100.00715.34
7.0.280.0040.01115.13
7.0.270.0140.00315.34
7.0.260.0090.00615.32
7.0.250.0040.01115.37
7.0.240.0140.00715.36
7.0.230.0180.00315.12
7.0.220.0140.00315.58
7.0.210.0140.00715.22
7.0.200.0050.00716.15
7.0.190.0190.00515.41
7.0.180.0150.00815.27
7.0.170.0100.00815.25
7.0.160.0110.01115.25
7.0.150.0110.01115.46
7.0.140.0100.03818.56
7.0.130.0110.01315.25
7.0.120.0200.00015.09
7.0.110.0170.00915.25
7.0.100.0170.00715.25
7.0.90.0180.00015.26
7.0.80.0180.00515.38
7.0.70.0110.00715.44
7.0.60.0110.03917.44
7.0.50.0070.03716.54
7.0.40.0060.03116.56
7.0.30.0210.04516.82
7.0.20.0210.02216.92
7.0.10.0130.04216.76
7.0.00.0080.02316.69
5.6.380.0050.00514.33
5.6.370.0040.00914.41
5.6.360.0040.01214.08
5.6.350.0060.00614.34
5.6.340.0140.00014.49
5.6.330.0080.00314.10
5.6.320.0070.00414.43
5.6.310.0070.00714.30
5.6.300.0120.00613.79
5.6.290.0030.01314.45
5.6.280.0050.04017.50
5.6.270.0050.00514.19
5.6.260.0110.00014.27
5.6.250.0100.00313.91
5.6.240.0070.00414.44
5.6.230.0060.00614.14
5.6.220.0090.00614.14
5.6.210.0080.02817.54
5.6.200.0080.02616.04
5.6.190.0070.03317.16
5.6.180.0120.04217.17
5.6.170.0150.02817.25
5.6.160.0120.03917.34
5.6.150.0070.04616.04
5.6.140.0120.03716.23
5.6.130.0110.04216.29
5.6.120.0120.03717.89
5.6.110.0070.02717.55
5.6.100.0030.04817.57
5.6.90.0020.04417.57
5.6.80.0090.02017.25
5.6.70.0060.00514.34
5.6.60.0110.00814.20
5.6.50.0040.01213.97
5.6.40.0040.01414.14
5.6.30.0070.01214.11
5.6.20.0050.00814.07
5.6.10.0110.00514.00
5.6.00.0060.00614.20
5.5.380.0100.00311.20
5.5.370.0060.00611.19
5.5.360.0000.01411.34
5.5.350.0130.03415.74
5.5.340.0060.02214.41
5.5.330.0080.04315.65
5.5.320.0050.03215.72
5.5.310.0110.04315.53
5.5.300.0050.04414.46
5.5.290.0040.04614.57
5.5.280.0050.02815.88
5.5.270.0090.02516.02
5.5.260.0030.04315.82
5.5.250.0100.04115.83
5.5.240.0070.04115.61
5.5.230.0090.00310.91
5.5.220.0030.00510.90
5.5.210.0090.00311.09
5.5.200.0070.00610.92
5.5.190.0090.00510.90
5.5.180.0100.00010.90
5.5.170.0050.00510.90
5.5.160.0030.01010.98
5.5.150.0000.01110.90
5.5.140.0060.00610.93
5.5.130.0000.00811.02
5.5.120.0090.00310.90
5.5.110.0060.00610.90
5.5.100.0110.00010.98
5.5.90.0030.01011.01
5.5.80.0000.01310.90
5.5.70.0030.00910.90
5.5.60.0100.00310.90
5.5.50.0030.00611.00
5.5.40.0050.00510.95
5.5.30.0060.00611.24
5.5.20.0060.00310.90
5.5.10.0030.00610.90
5.5.00.0070.00511.00
5.4.450.0450.03215.27
5.4.440.0500.02815.28
5.4.430.0380.03015.28
5.4.420.0700.02315.33
5.4.410.0430.03314.97
5.4.400.0200.03614.79
5.4.390.0270.03214.78
5.4.380.0120.02214.67
5.4.370.0080.02714.77
5.4.360.0080.03014.69
5.4.350.0030.02811.44
5.4.340.0030.02311.43
5.4.330.0000.00810.90
5.4.320.0070.02511.67
5.4.310.0040.02411.67
5.4.300.0050.02311.67
5.4.290.0070.02111.68
5.4.280.0070.02111.62
5.4.270.0070.02111.62
5.4.260.0050.02211.62
5.4.250.0060.02311.62
5.4.240.0030.02411.62
5.4.230.0050.02211.62
5.4.220.0040.02211.62
5.4.210.0040.02211.62
5.4.200.0050.02311.62
5.4.190.0050.02211.62
5.4.180.0080.01911.62
5.4.170.0060.02211.62
5.4.160.0060.02111.62
5.4.150.0040.02011.63
5.4.140.0020.02511.47
5.4.130.0020.02411.46
5.4.120.0040.02211.43
5.4.110.0050.02611.43
5.4.100.0070.02511.52
5.4.90.0040.03011.43
5.4.80.0080.02311.47
5.4.70.0060.01911.43
5.4.60.0060.02211.43
5.4.50.0070.02111.43
5.4.40.0020.02411.42
5.4.30.0070.02011.42
5.4.20.0090.01811.42
5.4.10.0060.02011.44
5.4.00.0090.01811.17
5.3.290.0060.02511.85
5.3.280.0060.02311.80
5.3.270.0020.02411.81
5.3.260.0040.02511.81
5.3.250.0030.02411.81
5.3.240.0040.02311.81
5.3.230.0070.02111.80
5.3.220.0050.02211.79
5.3.210.0050.02411.79
5.3.200.0030.02611.79
5.3.190.0060.02111.79
5.3.180.0070.02511.79
5.3.170.0070.02411.78
5.3.160.0060.02211.79
5.3.150.0070.02011.79
5.3.140.0070.02111.78
5.3.130.0070.02311.78
5.3.120.0060.02311.78
5.3.110.0050.02311.78
5.3.100.0090.02111.51
5.3.90.0070.02111.49
5.3.80.0080.02111.49
5.3.70.0070.02211.49
5.3.60.0100.02011.48
5.3.50.0040.02311.45
5.3.40.0040.02211.45
5.3.30.0070.02011.42
5.3.20.0020.02611.31
5.3.10.0020.02311.29
5.3.00.0090.01711.29
5.2.170.0050.01610.04
5.2.160.0050.01510.04
5.2.150.0080.01410.04
5.2.140.0050.02110.04
5.2.130.0060.01610.02
5.2.120.0070.01510.02
5.2.110.0080.01410.02
5.2.100.0040.01810.02
5.2.90.0080.01410.02
5.2.80.0070.01510.02
5.2.70.0080.01410.02
5.2.60.0070.0229.99
5.2.50.0090.0219.98
5.2.40.0090.0159.97
5.2.30.0070.0179.96
5.2.20.0040.0179.95
5.2.10.0060.0149.91
5.2.00.0080.0149.84
5.1.60.0050.0149.48
5.1.50.0040.0169.48
5.1.40.0050.0129.47
5.1.30.0040.0159.64
5.1.20.0020.0169.65
5.1.10.0030.0169.52
5.1.00.0050.0149.52
5.0.50.0020.0128.76
5.0.40.0040.0108.69
5.0.30.0040.0168.59
5.0.20.0040.0118.58
5.0.10.0030.0118.57
5.0.00.0040.0158.56
4.4.90.0040.0107.84
4.4.80.0030.0107.82
4.4.70.0040.0077.83
4.4.60.0020.0097.83
4.4.50.0010.0117.83
4.4.40.0020.0167.80
4.4.30.0040.0077.83
4.4.20.0020.0097.87
4.4.10.0010.0117.87
4.4.00.0030.0137.83
4.3.110.0030.0097.79
4.3.100.0040.0097.78
4.3.90.0020.0107.77
4.3.80.0040.0147.74
4.3.70.0000.0117.77
4.3.60.0030.0097.76
4.3.50.0020.0107.76
4.3.40.0020.0137.72
4.3.30.0010.0107.09
4.3.20.0030.0087.08
4.3.10.0050.0077.06
4.3.00.0070.0149.01

preferences:
46.58 ms | 401 KiB | 5 Q