3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price_check = '50'; if($price_check > '0' || $filter='0') if($price_check > '500' || $filter='20-50') if($price_check > '200' || $filter='50-100') if($price_check > '100' || $filter='100-200') if($price_check > '50' || $filter='200-500') if($price_check > '20' || $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.0130.00418.43
8.3.50.0140.00421.99
8.3.40.0070.00718.72
8.3.30.0150.00619.04
8.3.20.0040.01120.30
8.3.10.0040.00421.66
8.3.00.0050.00319.79
8.2.180.0030.01316.38
8.2.170.0170.00322.96
8.2.160.0110.00320.20
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00726.16
8.2.120.0000.00821.03
8.2.110.0060.00322.25
8.2.100.0050.00819.63
8.2.90.0090.00019.05
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0060.00318.05
8.2.50.0050.00318.07
8.2.40.0060.00318.16
8.2.30.0030.00618.17
8.2.20.0000.00817.68
8.2.10.0050.00218.16
8.2.00.0050.00317.67
8.1.280.0170.00325.92
8.1.270.0090.00023.82
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00718.45
8.1.230.0030.00718.98
8.1.220.0050.00517.74
8.1.210.0050.00318.77
8.1.200.0090.00017.35
8.1.190.0050.00317.11
8.1.180.0000.00718.10
8.1.170.0030.00518.64
8.1.160.0040.00422.00
8.1.150.0000.00718.80
8.1.140.0000.01017.41
8.1.130.0000.00817.83
8.1.120.0070.00017.50
8.1.110.0040.00417.48
8.1.100.0000.00717.35
8.1.90.0000.00717.44
8.1.80.0000.00717.52
8.1.70.0000.00717.32
8.1.60.0040.00417.57
8.1.50.0040.00417.50
8.1.40.0040.00417.52
8.1.30.0040.00417.59
8.1.20.0050.00317.54
8.1.10.0080.00017.49
8.1.00.0080.00017.48
8.0.300.0080.00018.77
8.0.290.0080.00316.75
8.0.280.0000.00718.54
8.0.270.0070.00017.25
8.0.260.0000.00617.18
8.0.250.0030.00316.97
8.0.240.0000.00716.84
8.0.230.0000.00816.93
8.0.220.0030.00316.82
8.0.210.0040.00416.95
8.0.200.0030.00316.81
8.0.190.0020.00516.92
8.0.180.0070.00016.87
8.0.170.0040.00416.88
8.0.160.0040.00416.84
8.0.150.0040.00416.81
8.0.140.0040.00416.76
8.0.130.0060.00013.33
8.0.120.0050.00316.72
8.0.110.0000.00716.96
8.0.100.0050.00216.91
8.0.90.0080.00016.82
8.0.80.0040.01216.88
8.0.70.0000.00816.75
8.0.60.0040.00316.82
8.0.50.0000.00716.94
8.0.30.0070.01217.03
8.0.20.0110.00817.40
8.0.10.0050.00216.93
8.0.00.0060.01116.81
7.4.330.0050.00015.14
7.4.320.0000.00716.59
7.4.300.0060.00016.64
7.4.290.0000.00716.46
7.4.280.0040.00416.50
7.4.270.0040.00416.51
7.4.260.0060.00016.48
7.4.250.0060.00316.47
7.4.240.0020.00516.62
7.4.230.0030.00316.63
7.4.220.0040.01516.52
7.4.210.0110.00716.60
7.4.200.0040.00416.60
7.4.160.0060.01016.64
7.4.150.0100.01017.40
7.4.140.0100.01317.86
7.4.130.0100.01116.46
7.4.120.0110.00716.53
7.4.110.0080.00816.44
7.4.100.0190.00316.50
7.4.90.0000.01716.55
7.4.80.0110.01119.39
7.4.70.0130.00316.53
7.4.60.0160.00316.56
7.4.50.0000.00916.61
7.4.40.0070.01016.30
7.4.30.0060.00916.58
7.4.00.0040.01114.77
7.3.330.0000.00613.05
7.3.320.0050.00013.21
7.3.310.0060.00016.18
7.3.300.0060.00016.02
7.3.290.0070.01416.19
7.3.280.0110.00716.16
7.3.270.0100.00717.40
7.3.260.0120.00616.48
7.3.250.0120.01016.51
7.3.240.0000.02116.50
7.3.230.0160.00616.52
7.3.210.0160.00016.43
7.3.200.0070.01019.39
7.3.190.0040.01316.28
7.3.180.0040.01116.10
7.3.170.0120.00316.49
7.3.160.0160.00016.39
7.3.120.0090.00614.71
7.3.00.0030.01016.53
7.2.330.0040.01316.74
7.2.320.0140.01016.65
7.2.310.0040.01616.71
7.2.300.0070.01016.59
7.2.290.0100.00716.52
7.2.130.0040.01116.96
7.2.120.0060.00616.66
7.2.110.0060.00616.58
7.2.100.0030.00916.78
7.2.90.0070.00716.68
7.2.80.0080.00316.61
7.2.70.0090.00616.56
7.2.60.0030.01016.71
7.2.50.0070.00716.97
7.2.40.0000.01216.85
7.2.30.0000.00916.81
7.2.20.0040.00816.92
7.2.10.0060.01016.89
7.2.00.0040.00716.85
7.1.250.0030.00715.20
7.1.240.0060.00315.47
7.1.230.0030.00715.72
7.1.220.0040.00715.26
7.1.210.0060.01015.53
7.1.200.0070.00715.46
7.1.190.0060.00615.59
7.1.180.0030.00915.52
7.1.170.0050.00515.38
7.1.160.0100.00315.50
7.1.150.0040.01115.85
7.1.140.0060.00615.55
7.1.130.0040.00715.66
7.1.120.0070.00415.65
7.1.110.0070.00315.72
7.1.100.0040.00815.79
7.1.90.0040.00715.82
7.1.80.0070.01015.66
7.1.70.0030.00616.40
7.1.60.0060.01317.41
7.1.50.0060.00816.02
7.1.40.0100.00615.41
7.1.30.0000.01015.80
7.1.20.0030.00715.71
7.1.10.0030.00615.65
7.1.00.0070.04019.10
7.0.330.0030.00715.38
7.0.320.0030.01015.13
7.0.310.0030.00715.00
7.0.300.0040.00715.41
7.0.290.0000.01015.05
7.0.280.0050.00515.24
7.0.270.0090.00615.23
7.0.260.0100.00715.41
7.0.250.0030.00615.20
7.0.240.0080.00815.46
7.0.230.0050.00514.95
7.0.220.0040.00815.02
7.0.210.0070.00315.04
7.0.200.0030.00516.00
7.0.190.0070.00315.35
7.0.180.0000.01115.20
7.0.170.0040.01215.09
7.0.160.0120.00315.39
7.0.150.0050.00314.97
7.0.140.0030.03918.60
7.0.130.0070.00715.18
7.0.120.0000.01015.09
7.0.110.0100.00714.86
7.0.100.0000.00915.20
7.0.90.0070.00315.29
7.0.80.0120.00015.12
7.0.70.0060.00315.12
7.0.60.0020.02717.63
7.0.50.0040.02216.52
7.0.40.0030.05116.79
7.0.30.0030.03216.79
7.0.20.0200.03716.68
7.0.10.0060.04816.63
7.0.00.0090.04016.86
5.6.380.0040.00814.18
5.6.370.0030.00714.32
5.6.360.0080.00414.54
5.6.350.0070.00714.04
5.6.340.0100.00314.30
5.6.330.0000.01314.22
5.6.320.0040.00814.31
5.6.310.0080.00414.35
5.6.300.0050.00514.26
5.6.290.0030.00714.07
5.6.280.0050.03817.63
5.6.270.0030.00714.42
5.6.260.0040.01114.23
5.6.250.0120.00614.30
5.6.240.0030.00614.05
5.6.230.0030.00914.20
5.6.220.0110.00014.04
5.6.210.0090.04117.38
5.6.200.0070.03016.03
5.6.190.0100.02817.44
5.6.180.1920.02817.46
5.6.170.0190.04017.26
5.6.160.0070.03317.31
5.6.150.0070.02816.19
5.6.140.0040.02416.32
5.6.130.0120.03716.29
5.6.120.0030.02317.57
5.6.110.0050.04517.50
5.6.100.0080.02617.35
5.6.90.0050.02317.56
5.6.80.0080.02217.16
5.6.70.0000.01014.02
5.6.60.0100.00314.08
5.6.50.0030.00714.07
5.6.40.0000.01113.95
5.6.30.0080.00013.97
5.6.20.0000.01214.02
5.6.10.0040.00713.87
5.6.00.0030.00714.04
5.5.380.0000.00910.90
5.5.370.0040.01110.90
5.5.360.0050.00310.90
5.5.350.0120.04015.79
5.5.340.0080.02314.57
5.5.330.0060.02915.76
5.5.320.1600.02315.60
5.5.310.0190.03415.55
5.5.300.0080.03914.46
5.5.290.0050.02014.42
5.5.280.0050.04015.82
5.5.270.0030.02915.77
5.5.260.0070.04415.86
5.5.250.0080.04315.79
5.5.240.2120.01815.61
5.5.230.0030.00310.90
5.5.220.0000.00610.98
5.5.210.0000.00710.90
5.5.200.0040.00410.90
5.5.190.0080.00410.90
5.5.180.0040.00410.90
5.5.170.0030.00310.95
5.5.160.0000.00610.90
5.5.150.0030.00610.90
5.5.140.0030.00510.90
5.5.130.0000.00910.90
5.5.120.0000.00910.90
5.5.110.0070.00410.90
5.5.100.0030.00610.90
5.5.90.0000.00710.98
5.5.80.0030.00610.90
5.5.70.0030.00610.90
5.5.60.0000.00710.90
5.5.50.0060.00610.90
5.5.40.0030.00710.90
5.5.30.0030.00610.90
5.5.20.0030.00610.90
5.5.10.0030.00310.90
5.5.00.0040.00810.90
5.4.450.0100.02215.24
5.4.440.0170.02515.08
5.4.430.0110.02815.08
5.4.420.0200.02315.23
5.4.410.0070.02915.12
5.4.400.0230.03014.99
5.4.390.0250.02914.92
5.4.380.0100.02814.82
5.4.370.0090.02714.71
5.4.360.0070.04114.70
5.4.350.0110.02814.75
5.4.340.0100.02714.75
5.4.330.0000.00710.92
5.4.320.0040.02211.68
5.4.310.0030.02411.67
5.4.300.0030.02211.68
5.4.290.0060.01911.67
5.4.280.0040.02811.62
5.4.270.0060.02111.62
5.4.260.0070.01911.62
5.4.250.0020.02211.63
5.4.240.0040.02111.62
5.4.230.0070.01911.62
5.4.220.0040.02211.62
5.4.210.0060.02111.62
5.4.200.0040.02111.62
5.4.190.0060.01811.62
5.4.180.0040.02111.62
5.4.170.0050.02011.62
5.4.160.0080.01811.62
5.4.150.0070.02011.62
5.4.140.0030.02411.46
5.4.130.0050.01911.46
5.4.120.0040.02211.43
5.4.110.0020.02011.43
5.4.100.0030.02211.43
5.4.90.0030.02111.43
5.4.80.0040.02111.43
5.4.70.0060.01911.43
5.4.60.0040.01911.43
5.4.50.0040.02011.43
5.4.40.0020.02211.42
5.4.30.0050.01911.42
5.4.20.0040.02211.42
5.4.10.0050.01911.42
5.4.00.0030.02211.17
5.3.290.0050.02211.85
5.3.280.0080.01911.80
5.3.270.0060.02211.81
5.3.260.0020.02411.81
5.3.250.0040.02011.81
5.3.240.0050.02111.81
5.3.230.0040.02111.80
5.3.220.0020.02311.79
5.3.210.0060.02211.79
5.3.200.0050.02111.79
5.3.190.0040.02111.79
5.3.180.0040.02211.79
5.3.170.0080.01711.79
5.3.160.0060.01811.79
5.3.150.0050.02011.79
5.3.140.0060.02111.78
5.3.130.0020.02611.78
5.3.120.0050.02111.78
5.3.110.0030.02511.78
5.3.100.0050.02011.51
5.3.90.0050.02111.49
5.3.80.0070.02011.49
5.3.70.0050.02211.49
5.3.60.0050.01911.48
5.3.50.0050.01811.45
5.3.40.0050.02011.45
5.3.30.0020.02211.42
5.3.20.0020.02111.31
5.3.10.0070.01811.29
5.3.00.0010.02211.29
5.2.170.0080.01410.04
5.2.160.0050.01510.04
5.2.150.0020.01910.04
5.2.140.0050.01610.04
5.2.130.0050.01810.02
5.2.120.0040.01510.02
5.2.110.0020.01810.02
5.2.100.0030.01610.02
5.2.90.0040.01710.02
5.2.80.0030.01910.02
5.2.70.0020.01910.02
5.2.60.0040.0169.99
5.2.50.0050.0159.98
5.2.40.0040.0159.96
5.2.30.0020.0179.95
5.2.20.0040.0169.95
5.2.10.0050.0149.91
5.2.00.0040.0179.84
5.1.60.0030.0179.48
5.1.50.0020.0159.48
5.1.40.0020.0179.47
5.1.30.0050.0159.64
5.1.20.0020.0179.65
5.1.10.0030.0159.52
5.1.00.0050.0149.52
5.0.50.0050.0108.76
5.0.40.0040.0108.69
5.0.30.0050.0218.59
5.0.20.0020.0158.58
5.0.10.0050.0168.57
5.0.00.0020.0228.56
4.4.90.0030.0107.84
4.4.80.0050.0107.83
4.4.70.0040.0117.82
4.4.60.0030.0117.83
4.4.50.0040.0107.83
4.4.40.0010.0197.80
4.4.30.0040.0107.83
4.4.20.0020.0147.87
4.4.10.0040.0087.87
4.4.00.0030.0147.83
4.3.110.0030.0107.79
4.3.100.0020.0097.78
4.3.90.0050.0077.76
4.3.80.0040.0147.74
4.3.70.0010.0107.76
4.3.60.0040.0077.76
4.3.50.0030.0097.76
4.3.40.0040.0137.72
4.3.30.0020.0117.09
4.3.20.0020.0107.08
4.3.10.0010.0117.06
4.3.00.0020.01113.08

preferences:
43.62 ms | 401 KiB | 5 Q