3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price_check = '50.00'; if($price_check > '0' || $filter='0'){ if($price_check > '20' || $filter='0-20'){ if($price_check > '50' || $filter='20-50'){ if($price_check > '100' || $filter='50-100'){ if($price_check > '200' || $filter='100-200'){ if($price_check > '500' || $filter='200-500'){ //$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.40.0110.00418.83
8.3.30.0070.00718.79
8.3.20.0040.00420.16
8.3.10.0040.00421.87
8.3.00.0080.00017.80
8.2.170.0130.00722.96
8.2.160.0100.00320.55
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.02
8.2.110.0060.00322.17
8.2.100.0000.01121.07
8.2.90.0000.00719.26
8.2.80.0000.00817.97
8.2.70.0080.00017.75
8.2.60.0040.00817.67
8.2.50.0040.00418.07
8.2.40.0000.00819.88
8.2.30.0030.00717.93
8.2.20.0080.00017.78
8.2.10.0000.00718.17
8.2.00.0000.00717.75
8.1.270.0090.00023.83
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.97
8.1.230.0120.00019.01
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.22
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.47
8.1.160.0070.00021.88
8.1.150.0070.00018.91
8.1.140.0020.00517.30
8.1.130.0030.00517.76
8.1.120.0070.00017.35
8.1.110.0000.00717.33
8.1.100.0070.00017.39
8.1.90.0000.00717.46
8.1.80.0030.00517.33
8.1.70.0050.00217.36
8.1.60.0030.00617.61
8.1.50.0000.00817.42
8.1.40.0040.00417.55
8.1.30.0050.00317.62
8.1.20.0000.00717.70
8.1.10.0020.00517.41
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.31
8.0.270.0000.00717.25
8.0.260.0000.00617.35
8.0.250.0070.00016.89
8.0.240.0030.00316.91
8.0.230.0040.00416.93
8.0.220.0020.00516.89
8.0.210.0030.00316.86
8.0.200.0070.00016.80
8.0.190.0070.00016.93
8.0.180.0080.00016.81
8.0.170.0040.00416.88
8.0.160.0040.00416.87
8.0.150.0000.00716.89
8.0.140.0040.00416.91
8.0.130.0030.00313.32
8.0.120.0070.00016.75
8.0.110.0000.00716.88
8.0.100.0000.00716.79
8.0.90.0070.00016.94
8.0.80.0100.01016.87
8.0.70.0050.00216.73
8.0.60.0000.00816.72
8.0.50.0080.00016.95
8.0.30.0060.01617.06
8.0.20.0170.00317.40
8.0.10.0000.00716.81
8.0.00.0120.00516.69
7.4.330.0020.00215.08
7.4.320.0060.00016.45
7.4.300.0030.00316.50
7.4.290.0000.00716.50
7.4.280.0050.00316.50
7.4.270.0070.00016.40
7.4.260.0060.00316.43
7.4.250.0000.00716.54
7.4.240.0040.00416.59
7.4.230.0030.00316.69
7.4.220.0110.00716.52
7.4.210.0090.00616.53
7.4.200.0070.00016.33
7.4.160.0050.01116.46
7.4.150.0100.00717.40
7.4.140.0120.00517.86
7.4.130.0080.00816.53
7.4.120.0120.00516.41
7.4.110.0170.00616.53
7.4.100.0160.00616.56
7.4.90.0140.00416.47
7.4.80.0190.00019.39
7.4.70.0090.00616.61
7.4.60.0100.00716.59
7.4.50.0000.00416.68
7.4.40.0030.01316.25
7.4.30.0060.00916.50
7.4.00.0030.01314.64
7.3.330.0040.00413.03
7.3.320.0060.00012.92
7.3.310.0000.00716.18
7.3.300.0040.00416.22
7.3.290.0030.01016.18
7.3.280.0070.00916.20
7.3.270.0110.00617.40
7.3.260.0060.01216.26
7.3.250.0120.00616.16
7.3.240.0060.01016.21
7.3.230.0120.00916.39
7.3.210.0110.01116.44
7.3.200.0090.00919.39
7.3.190.0060.01016.50
7.3.180.0160.00016.41
7.3.170.0110.00616.27
7.3.160.0000.01616.27
7.3.120.0060.00614.71
7.2.330.0100.00716.70
7.2.320.0110.00616.37
7.2.310.0120.00916.50
7.2.300.0090.00616.27
7.2.290.0120.00916.34
7.2.60.0210.00616.83
7.2.00.0040.01119.02
7.1.200.0120.00015.66
7.1.100.0000.01417.68
7.1.70.0000.00717.09
7.1.60.0090.01519.25
7.1.50.0160.00316.51
7.1.00.0100.07022.31
7.0.200.0020.00716.61
7.0.140.0000.07721.98
7.0.100.0100.08019.96
7.0.90.0030.07319.92
7.0.80.0070.09319.88
7.0.70.0100.08319.95
7.0.60.0070.07719.92
7.0.50.0130.07320.20
7.0.40.0130.08020.15
7.0.30.0030.05320.05
7.0.20.0100.08320.19
7.0.10.0030.07020.14
7.0.00.0030.08020.09
5.6.280.0070.07021.04
5.6.250.0170.03720.81
5.6.240.0070.10020.63
5.6.230.0000.05720.59
5.6.220.0170.07020.61
5.6.210.0070.05720.65
5.6.200.0100.06320.91
5.6.190.0070.08721.05
5.6.180.0070.08721.08
5.6.170.0030.08321.02
5.6.160.0170.04321.05
5.6.150.0030.04721.00
5.6.140.0030.08021.14
5.6.130.0070.08321.04
5.6.120.0170.07720.94
5.6.110.0130.07021.05
5.6.100.0070.04321.02
5.6.90.0100.07721.05
5.6.80.0100.06020.48
5.6.70.0030.08320.42
5.6.60.0100.07020.38
5.6.50.0070.07020.33
5.6.40.0100.07320.39
5.6.30.0170.07320.45
5.6.20.0170.06020.42
5.6.10.0130.07320.48
5.6.00.0070.06720.45
5.5.380.0030.05720.35
5.5.370.0030.05320.41
5.5.360.0070.05320.41
5.5.350.0100.04720.36
5.5.340.0130.08020.88
5.5.330.0030.09020.89
5.5.320.0100.07320.63
5.5.310.0070.05320.79
5.5.300.0100.06720.79
5.5.290.0130.06320.79
5.5.280.0170.04320.75
5.5.270.0230.06320.82
5.5.260.0030.09320.74
5.5.250.0030.05020.68
5.5.240.0130.07720.15
5.5.230.0070.05020.30
5.5.220.0130.06320.20
5.5.210.0100.07320.25
5.5.200.0170.07020.26
5.5.190.0130.04020.26
5.5.180.0030.08320.18
5.5.160.0130.08720.20
5.5.150.0070.05720.21
5.5.140.0100.05320.22
5.5.130.0000.08320.11
5.5.120.0170.07020.11
5.5.110.0130.05020.19
5.5.100.0100.04020.09
5.5.90.0070.06020.12
5.5.80.0070.08320.06
5.5.70.0200.07020.05
5.5.60.0000.08320.07
5.5.50.0100.07320.00
5.5.40.0100.07020.08
5.5.30.0030.05320.13
5.5.20.0130.04320.12
5.5.10.0000.07720.10
5.5.00.0070.04720.10
5.4.450.0030.04319.44
5.4.440.0000.05019.27
5.4.430.0000.08319.29
5.4.420.0100.07319.36
5.4.410.0070.07719.24
5.4.400.0000.05719.12
5.4.390.0030.08319.05
5.4.380.0130.07019.03
5.4.370.0100.05019.14
5.4.360.0030.06719.05
5.4.350.0070.08319.10
5.4.340.0030.08718.96
5.4.320.0130.07319.23
5.4.310.0100.06019.07
5.4.300.0130.07319.10
5.4.290.0130.06719.24
5.4.280.0030.08018.98
5.4.270.0070.04019.09
5.4.260.0030.06318.94
5.4.250.0130.05019.11
5.4.240.0070.07719.06
5.4.230.0100.07018.97
5.4.220.0000.05019.09
5.4.210.0200.06019.22
5.4.200.0070.04319.05
5.4.190.0070.04719.13
5.4.180.0100.07319.04
5.4.170.0030.08019.04
5.4.160.0070.07318.92
5.4.150.0100.07719.02
5.4.140.0070.05016.13
5.4.130.0100.04316.11
5.4.120.0100.06716.28
5.4.110.0100.05316.31
5.4.100.0100.06316.36
5.4.90.0070.07016.36
5.4.80.0070.07016.43
5.4.70.0100.07016.42
5.4.60.0030.07716.32
5.4.50.0070.04016.30
5.4.40.0170.06316.36
5.4.30.0070.07016.28
5.4.20.0100.06016.32
5.4.10.0070.07016.19
5.4.00.0030.07715.73
5.3.290.0130.05714.63
5.3.280.0000.08314.55
5.3.270.0070.04714.59
5.3.260.0070.07314.43
5.3.250.0070.04714.46
5.3.240.0070.07714.59
5.3.230.0070.07314.59
5.3.220.0000.04714.54
5.3.210.0100.07314.55
5.3.200.0030.07014.41
5.3.190.0070.04014.52
5.3.180.0130.07014.39
5.3.170.0100.07314.54
5.3.160.0030.06714.47
5.3.150.0030.04714.39
5.3.140.0000.07014.46
5.3.130.0070.04714.52
5.3.120.0030.05714.52
5.3.110.0030.08014.46
5.3.100.0070.06713.98
5.3.90.0130.06714.04
5.3.80.0100.03714.00
5.3.70.0030.06013.88
5.3.60.0130.06713.98
5.3.50.0170.06713.79
5.3.40.0030.06313.89
5.3.30.0030.04313.89
5.3.20.0100.06713.59
5.3.10.0100.03313.60
5.3.00.0130.04313.59
5.2.170.0070.05011.88
5.2.160.0030.03711.88
5.2.150.0030.06711.88
5.2.140.0030.03311.88
5.2.130.0030.05711.88
5.2.120.0000.04011.88
5.2.110.0070.04011.88
5.2.100.0070.05311.88
5.2.90.0030.04311.88
5.2.80.0000.04711.88
5.2.70.0070.06011.88
5.2.60.0070.05311.88
5.2.50.0030.05711.88
5.2.40.0070.06011.88
5.2.30.0100.05711.88
5.2.20.0030.06011.88
5.2.10.0030.05311.88
5.2.00.0130.05011.88
5.1.60.0030.02711.88
5.1.50.0130.03311.88
5.1.40.0100.03311.88
5.1.30.0100.05711.88
5.1.20.0070.05311.88
5.1.10.0030.03011.88
5.1.00.0070.04011.88
5.0.50.0000.02011.88
5.0.40.0030.04311.88
5.0.30.0000.05711.88
5.0.20.0000.04311.88
5.0.10.0000.03711.88
5.0.00.0000.06011.88
4.4.90.0070.03011.88
4.4.80.0000.03011.88
4.4.70.0070.03311.88
4.4.60.0030.02711.88
4.4.50.0000.02011.88
4.4.40.0000.03311.88
4.4.30.0030.03011.88
4.4.20.0030.03011.88
4.4.10.0000.01711.88
4.4.00.0030.02711.88
4.3.110.0030.02311.88
4.3.100.0030.01711.88
4.3.90.0030.02311.88
4.3.80.0030.04711.88
4.3.70.0000.03011.88
4.3.60.0000.03711.88
4.3.50.0070.03011.88
4.3.40.0000.05011.88
4.3.30.0000.02711.88
4.3.20.0000.03711.88
4.3.10.0030.02711.88
4.3.00.0030.03311.88

preferences:
38.13 ms | 400 KiB | 5 Q