3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price_check = '.1'; $filter='501'; 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.60.0140.00316.63
8.3.50.0090.00922.05
8.3.40.0090.00618.65
8.3.30.0100.00319.13
8.3.20.0070.00020.39
8.3.10.0000.00721.91
8.3.00.0030.00618.03
8.2.180.0140.00716.50
8.2.170.0070.00722.96
8.2.160.0060.01020.38
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0140.00326.16
8.2.120.0080.00020.93
8.2.110.0090.00020.93
8.2.100.0080.00417.78
8.2.90.0040.00417.84
8.2.80.0080.00017.97
8.2.70.0030.00617.49
8.2.60.0080.00017.93
8.2.50.0050.00318.07
8.2.40.0000.00919.95
8.2.30.0070.00318.13
8.2.20.0040.00417.56
8.2.10.0000.00718.07
8.2.00.0040.00417.74
8.1.280.0110.00325.92
8.1.270.0040.00424.02
8.1.260.0080.00026.35
8.1.250.0070.00728.09
8.1.240.0000.00922.54
8.1.230.0070.00420.89
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00717.23
8.1.190.0040.00417.13
8.1.180.0050.00318.10
8.1.170.0080.00018.43
8.1.160.0070.00022.07
8.1.150.0050.00218.88
8.1.140.0070.00017.38
8.1.130.0030.00317.71
8.1.120.0000.00717.35
8.1.110.0000.00717.33
8.1.100.0040.00417.46
8.1.90.0000.00717.44
8.1.80.0000.00717.46
8.1.70.0030.00317.41
8.1.60.0000.00917.61
8.1.50.0080.00017.46
8.1.40.0050.00317.53
8.1.30.0000.00817.53
8.1.20.0080.00017.60
8.1.10.0000.00717.39
8.1.00.0080.00017.46
8.0.300.0040.00420.04
8.0.290.0060.00316.75
8.0.280.0000.00718.44
8.0.270.0040.00417.13
8.0.260.0030.00317.18
8.0.250.0000.00716.98
8.0.240.0000.00616.91
8.0.230.0030.00316.95
8.0.220.0030.00316.82
8.0.210.0030.00316.86
8.0.200.0030.00316.94
8.0.190.0030.00316.94
8.0.180.0070.00016.91
8.0.170.0050.00316.93
8.0.160.0040.00416.88
8.0.150.0030.00516.76
8.0.140.0040.00716.74
8.0.130.0030.00313.20
8.0.120.0000.00716.75
8.0.110.0070.00016.88
8.0.100.0040.00416.93
8.0.90.0000.00716.71
8.0.80.0030.01716.95
8.0.70.0040.00416.95
8.0.60.0020.00516.78
8.0.50.0040.00416.95
8.0.30.0080.01017.09
8.0.20.0120.01017.40
8.0.10.0040.00417.12
8.0.00.0100.00716.62
7.4.330.0000.00515.01
7.4.320.0060.00016.64
7.4.300.0000.00616.36
7.4.290.0070.00016.52
7.4.280.0000.00716.63
7.4.270.0050.00316.61
7.4.260.0070.00316.63
7.4.250.0040.00416.32
7.4.240.0000.00716.52
7.4.230.0030.00316.38
7.4.220.0030.01416.41
7.4.210.0030.01716.63
7.4.200.0050.00316.39
7.4.160.0090.00616.38
7.4.150.0060.01217.40
7.4.140.0070.00917.86
7.4.130.0110.00516.41
7.4.120.0080.00816.55
7.4.110.0070.01016.55
7.4.100.0130.01016.39
7.4.90.0030.01416.56
7.4.80.0130.00319.39
7.4.70.0110.00916.39
7.4.60.0120.00616.25
7.4.50.0000.00416.54
7.4.40.0100.00616.43
7.4.30.0140.00816.44
7.4.00.0060.00914.83
7.3.330.0020.00313.03
7.3.320.0000.00512.98
7.3.310.0000.00716.26
7.3.300.0000.00616.23
7.3.290.0060.01216.20
7.3.280.0080.01016.24
7.3.270.0150.00317.40
7.3.260.0170.00616.34
7.3.250.0110.00816.31
7.3.240.0140.00716.26
7.3.230.0100.00616.45
7.3.210.0100.00716.48
7.3.200.0110.00719.39
7.3.190.0090.01016.54
7.3.180.0090.00616.52
7.3.170.0060.01116.53
7.3.160.0080.00816.21
7.3.120.0110.00414.79
7.3.00.0110.00416.60
7.2.330.0140.00316.68
7.2.320.0080.00816.74
7.2.310.0160.00916.61
7.2.300.0130.00416.60
7.2.290.0090.00916.60
7.2.130.0000.01216.43
7.2.120.0090.00416.61
7.2.110.0030.01016.74
7.2.100.0060.00916.66
7.2.90.0080.00816.70
7.2.80.0070.00716.55
7.2.70.0140.01116.73
7.2.60.0120.00016.69
7.2.50.0090.00716.76
7.2.40.0120.00316.82
7.2.30.0130.00016.65
7.2.20.0030.00716.81
7.2.10.0090.00917.03
7.2.00.0020.01017.97
7.1.250.0150.00015.84
7.1.240.0080.00415.53
7.1.230.0100.00715.68
7.1.220.0030.01015.50
7.1.210.0150.00015.51
7.1.200.0040.00815.67
7.1.190.0100.00515.61
7.1.180.0140.00315.34
7.1.170.0070.01015.65
7.1.160.0080.00815.38
7.1.150.0090.00915.54
7.1.140.0000.01315.54
7.1.130.0040.00815.65
7.1.120.0040.00415.54
7.1.110.0070.00715.40
7.1.100.0060.00816.75
7.1.90.0090.00915.44
7.1.80.0070.00715.58
7.1.70.0070.00716.34
7.1.60.0060.01117.36
7.1.50.0080.01015.95
7.1.40.0040.01115.32
7.1.30.0140.00315.76
7.1.20.0000.01115.68
7.1.10.0090.00615.57
7.1.00.0050.03918.82
7.0.330.0070.00715.44
7.0.320.0150.00415.21
7.0.310.0120.00215.36
7.0.300.0080.00815.36
7.0.290.0120.00315.50
7.0.280.0190.00015.31
7.0.270.0080.00415.05
7.0.260.0060.00315.17
7.0.250.0090.00315.12
7.0.240.0070.00715.50
7.0.230.0080.00515.38
7.0.220.0120.00315.21
7.0.210.0100.00315.28
7.0.200.0080.00716.13
7.0.190.0060.00615.50
7.0.180.0040.00915.26
7.0.170.0070.00715.15
7.0.160.0070.00315.42
7.0.150.0040.00715.23
7.0.140.0020.03818.71
7.0.130.0080.00315.52
7.0.120.0000.00915.49
7.0.110.0070.00415.16
7.0.100.0080.03517.60
7.0.90.0090.03817.56
7.0.80.0120.03917.56
7.0.70.0070.04217.67
7.0.60.0080.04517.49
7.0.50.0130.03617.90
7.0.40.0030.04816.78
7.0.30.0050.03916.84
7.0.20.0070.02216.65
7.0.10.0070.04416.66
7.0.00.0080.04216.59
5.6.380.0090.00314.32
5.6.370.0070.00714.09
5.6.360.0110.00814.14
5.6.350.0150.00414.58
5.6.340.0040.01114.36
5.6.330.0080.00814.48
5.6.320.0060.00614.20
5.6.310.0070.00714.07
5.6.300.0100.00514.27
5.6.290.0070.00714.11
5.6.280.0130.03417.64
5.6.270.0060.00914.59
5.6.260.0080.00814.18
5.6.250.0120.03817.31
5.6.240.0120.04017.34
5.6.230.0110.04117.39
5.6.220.0060.04617.43
5.6.210.0070.04817.42
5.6.200.0130.03817.74
5.6.190.0100.04317.63
5.6.180.0130.03817.55
5.6.170.0070.04017.50
5.6.160.0070.04817.72
5.6.150.0070.02717.56
5.6.140.0040.03717.59
5.6.130.0140.03717.67
5.6.120.0130.03817.58
5.6.110.0070.04517.70
5.6.100.0060.04317.70
5.6.90.0100.04217.56
5.6.80.0070.03817.34
5.6.70.0090.04217.25
5.6.60.0090.03117.21
5.6.50.0050.03517.27
5.6.40.0120.03217.27
5.6.30.0030.04717.37
5.6.20.0070.04117.31
5.6.10.0120.03817.32
5.6.00.0110.04117.29
5.5.380.0130.03315.61
5.5.370.0080.03315.83
5.5.360.0080.04515.75
5.5.350.0070.04015.70
5.5.340.0050.04215.88
5.5.330.0080.04315.89
5.5.320.0110.02315.87
5.5.310.0120.03215.85
5.5.300.0070.04215.97
5.5.290.0080.04215.88
5.5.280.0060.04115.81
5.5.270.0090.03215.91
5.5.260.0030.04715.90
5.5.250.0130.03715.76
5.5.240.0080.04215.59
5.5.230.0070.03215.56
5.5.220.0040.04515.51
5.5.210.0110.03615.56
5.5.200.0020.04415.65
5.5.190.0080.03715.63
5.5.180.0040.04515.48
5.5.170.0040.00410.90
5.5.160.0060.02515.55
5.5.150.0100.03815.58
5.5.140.0050.04415.56
5.5.130.0020.04215.58
5.5.120.0050.04615.44
5.5.110.0100.04215.55
5.5.100.0060.03115.56
5.5.90.0070.02215.52
5.5.80.0070.02915.48
5.5.70.0130.03315.50
5.5.60.0060.04115.50
5.5.50.0090.03215.51
5.5.40.0070.04515.56
5.5.30.0080.03715.54
5.5.20.0080.03715.48
5.5.10.0060.03815.52
5.5.00.0030.04615.50
5.4.450.0030.02615.08
5.4.440.0100.03815.12
5.4.430.0100.03715.25
5.4.420.0070.04315.15
5.4.410.0060.03315.10
5.4.400.0040.04014.92
5.4.390.0100.03515.03
5.4.380.0140.03214.98
5.4.370.0050.04014.92
5.4.360.0050.04114.98
5.4.350.0030.04215.03
5.4.340.0060.04314.85
5.4.330.0050.00010.90
5.4.320.0070.04015.05
5.4.310.0080.03314.99
5.4.300.0080.03814.97
5.4.290.0030.04014.97
5.4.280.0080.02315.04
5.4.270.0030.04314.94
5.4.260.0100.03814.98
5.4.250.0080.04214.93
5.4.240.0100.03314.96
5.4.230.0030.04414.92
5.4.220.0070.04214.88
5.4.210.0070.04014.97
5.4.200.0050.04115.00
5.4.190.0100.03714.86
5.4.180.0070.04214.97
5.4.170.0070.04215.06
5.4.160.0110.03314.89
5.4.150.0060.03515.00
5.4.140.0010.03613.64
5.4.130.0090.02713.61
5.4.120.0070.02213.58
5.4.110.0050.04213.61
5.4.100.0060.03113.61
5.4.90.0000.02913.69
5.4.80.0040.02313.66
5.4.70.0050.02213.57
5.4.60.0010.02313.61
5.4.50.0070.01513.65
5.4.40.0030.02013.60
5.4.30.0070.01513.59
5.4.20.0020.02813.56
5.4.10.0050.02013.55
5.4.00.0070.01713.28
5.3.290.0050.03912.76
5.3.280.0050.03912.67
5.3.270.0050.04212.72
5.3.260.0100.03712.73
5.3.250.0030.04112.74
5.3.240.0020.03912.75
5.3.230.0060.03112.68
5.3.220.0080.02712.71
5.3.210.0090.03012.71
5.3.200.0070.02312.71
5.3.190.0070.01812.73
5.3.180.0030.02012.64
5.3.170.0020.02712.71
5.3.160.0030.01812.71
5.3.150.0050.01912.73
5.3.140.0050.01712.70
5.3.130.0070.02012.64
5.3.120.0050.01912.68
5.3.110.0060.01812.70
5.3.100.0070.02512.42
5.3.90.0060.02012.42
5.3.80.0040.01912.43
5.3.70.0020.02212.38
5.3.60.0010.02112.42
5.3.50.0010.02812.35
5.3.40.0070.01712.40
5.3.30.0080.01612.38
5.3.20.0030.01812.18
5.3.10.0000.02412.23
5.3.00.0020.02112.20
5.2.170.0050.01311.25
5.2.160.0000.02011.25
5.2.150.0020.01711.25
5.2.140.0020.01811.25
5.2.130.0060.01211.25
5.2.120.0070.01511.25
5.2.110.0020.02411.25
5.2.100.0060.01311.25
5.2.90.0020.01711.25
5.2.80.0050.01511.25
5.2.70.0030.01611.25
5.2.60.0020.01711.25
5.2.50.0050.01511.25
5.2.40.0050.02311.25
5.2.30.0030.01611.25
5.2.20.0030.02111.25
5.2.10.0020.01811.25
5.2.00.0030.01611.25
5.1.60.0040.01311.25
5.1.50.0020.01711.25
5.1.40.0000.02211.25
5.1.30.0010.02111.25
5.1.20.0020.01611.25
5.1.10.0040.01711.25
5.1.00.0050.01411.25
5.0.50.0030.01311.25
5.0.40.0050.01811.25
5.0.30.0020.01911.25
5.0.20.0020.01211.25
5.0.10.0010.01111.25
5.0.00.0000.03511.25
4.4.90.0060.01711.25
4.4.80.0010.01011.25
4.4.70.0020.02011.25
4.4.60.0030.01511.25
4.4.50.0030.00611.25
4.4.40.0020.01311.25
4.4.30.0020.01511.25
4.4.20.0020.01711.25
4.4.10.0000.01311.25
4.4.00.0050.01011.25
4.3.110.0020.00811.25
4.3.100.0040.00711.25
4.3.90.0000.01011.25
4.3.80.0020.01211.25
4.3.70.0000.01011.25
4.3.60.0000.01011.25
4.3.50.0020.01611.25
4.3.40.0030.02011.25
4.3.30.0020.01611.25
4.3.20.0030.01311.25
4.3.10.0000.01111.25
4.3.00.0020.01011.25

preferences:
44.73 ms | 401 KiB | 5 Q