3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price_check = '0'; if($price_check > '0' || $filter='0'){ if($price_check > '500' || $filter='200-500'){ $filter='501'; 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'){ }}}}} } 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.0120.00418.43
8.3.50.0140.00522.11
8.3.40.0040.01118.91
8.3.30.0100.00719.18
8.3.20.0040.00420.21
8.3.10.0000.00821.80
8.3.00.0050.00317.93
8.2.180.0060.01516.38
8.2.170.0100.01022.96
8.2.160.0000.01420.38
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00726.16
8.2.120.0000.00720.90
8.2.110.0070.00420.91
8.2.100.0060.00617.78
8.2.90.0000.00819.05
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0000.00818.10
8.2.40.0000.00920.42
8.2.30.0030.00618.04
8.2.20.0000.00817.75
8.2.10.0000.00718.11
8.2.00.0000.00717.74
8.1.280.0120.00625.92
8.1.270.0060.00323.91
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.69
8.1.230.0080.00317.42
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.01017.23
8.1.190.0060.00317.54
8.1.180.0000.00818.10
8.1.170.0030.00618.59
8.1.160.0040.00422.09
8.1.150.0070.00018.88
8.1.140.0050.00317.45
8.1.130.0030.00317.82
8.1.120.0100.00017.37
8.1.110.0030.00517.30
8.1.100.0040.00417.52
8.1.90.0040.00417.37
8.1.80.0030.00517.39
8.1.70.0030.00317.35
8.1.60.0000.00817.47
8.1.50.0000.00817.49
8.1.40.0040.00417.45
8.1.30.0050.00317.63
8.1.20.0070.00017.70
8.1.10.0080.00017.43
8.1.00.0000.00817.52
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0040.00417.17
8.0.260.0040.00417.25
8.0.250.0060.00016.86
8.0.240.0030.00316.91
8.0.230.0000.00816.93
8.0.220.0000.00716.79
8.0.210.0000.00616.91
8.0.200.0000.00616.95
8.0.190.0030.00316.99
8.0.180.0070.00016.91
8.0.170.0060.00316.84
8.0.160.0030.00316.89
8.0.150.0030.00316.80
8.0.140.0000.00816.86
8.0.130.0000.00813.38
8.0.120.0070.00016.74
8.0.110.0070.00016.79
8.0.100.0040.00416.77
8.0.90.0030.00316.92
8.0.80.0120.00916.88
8.0.70.0000.00716.89
8.0.60.0040.00416.96
8.0.50.0000.00816.85
8.0.30.0120.00716.90
8.0.20.0110.00817.40
8.0.10.0000.00716.84
8.0.00.0130.00716.63
7.4.330.0020.00215.00
7.4.320.0030.00316.41
7.4.300.0030.00316.51
7.4.290.0000.00716.64
7.4.280.0040.00416.59
7.4.270.0070.00016.41
7.4.260.0040.00416.48
7.4.250.0030.00316.46
7.4.240.0040.00416.52
7.4.230.0030.00316.39
7.4.220.0100.00716.64
7.4.210.0150.00016.62
7.4.200.0000.00716.61
7.4.160.0130.00316.46
7.4.150.0100.00717.40
7.4.140.0070.01017.86
7.4.130.0110.01416.34
7.4.120.0130.00416.57
7.4.110.0170.00016.65
7.4.100.0120.00916.56
7.4.90.0060.01216.30
7.4.80.0110.01319.39
7.4.70.0120.00616.63
7.4.60.0060.01216.34
7.4.50.0020.00216.25
7.4.40.0000.01616.34
7.4.30.0030.01316.58
7.4.00.0040.01115.16
7.3.330.0030.00312.96
7.3.320.0000.00612.94
7.3.310.0050.00316.13
7.3.300.0030.00316.23
7.3.290.0110.00916.20
7.3.280.0100.00716.23
7.3.270.0140.00317.40
7.3.260.0190.00616.32
7.3.240.0060.01316.29
7.3.230.0130.00316.39
7.3.210.0090.01516.25
7.3.200.0030.01919.39
7.3.190.0110.00616.19
7.3.180.0120.00316.26
7.3.170.0090.00916.41
7.3.160.0090.00616.37
7.3.120.0140.00014.84
7.3.00.0080.00316.50
7.2.330.0080.00816.27
7.2.320.0070.01016.43
7.2.310.0100.00616.63
7.2.300.0120.00416.60
7.2.290.0130.00316.29
7.2.130.0000.01016.75
7.2.120.0030.01016.95
7.2.110.0040.00716.88
7.2.100.0030.01016.92
7.2.90.0130.00616.83
7.2.80.0000.01616.70
7.2.70.0000.00916.71
7.2.60.0100.01016.69
7.2.50.0070.01016.85
7.2.40.0030.00616.80
7.2.30.0090.00616.88
7.2.20.0000.00916.69
7.2.10.0090.00617.00
7.2.00.0110.00316.83
7.1.250.0030.01015.64
7.1.240.0150.00015.64
7.1.230.0000.01215.72
7.1.220.0060.01215.18
7.1.210.0060.00915.45
7.1.200.0030.00615.50
7.1.190.0070.01015.65
7.1.180.0000.01315.48
7.1.170.0090.00315.77
7.1.160.0030.00915.43
7.1.150.0090.00315.73
7.1.140.0000.01015.63
7.1.130.0030.00915.77
7.1.120.0030.00715.63
7.1.110.0070.00715.82
7.1.100.0000.01117.00
7.1.90.0030.00615.51
7.1.80.0050.00515.58
7.1.70.0040.00716.34
7.1.60.0110.00317.47
7.1.50.0070.01116.33
7.1.40.0000.01215.85
7.1.30.0070.00415.43
7.1.20.0000.01115.35
7.1.10.0030.01015.37
7.1.00.0030.04319.00
7.0.330.0040.01115.10
7.0.320.0040.00715.04
7.0.310.0110.00315.27
7.0.300.0070.00715.34
7.0.290.0080.00415.39
7.0.280.0060.00615.34
7.0.270.0100.00015.10
7.0.260.0040.00715.24
7.0.250.0070.00714.91
7.0.240.0080.00615.16
7.0.230.0060.00915.02
7.0.220.0120.00315.34
7.0.210.0060.01015.31
7.0.200.0080.00316.10
7.0.190.0000.01015.39
7.0.180.0110.00415.39
7.0.170.0100.00615.12
7.0.160.0080.00615.36
7.0.150.0030.01015.08
7.0.140.0020.04318.68
7.0.130.0040.00815.34
7.0.120.0000.00815.33
7.0.110.0000.00915.23
7.0.100.0060.01015.30
7.0.90.0040.00415.48
7.0.80.0120.00315.44
7.0.70.0030.01015.58
7.0.60.0060.03017.72
7.0.50.0080.04316.63
7.0.40.0070.04816.84
7.0.30.0310.04316.86
7.0.20.0200.04116.74
7.0.10.0020.05116.76
7.0.00.0050.02216.60
5.6.380.0000.01413.96
5.6.370.0080.00013.89
5.6.360.0070.00714.03
5.6.350.0110.00314.14
5.6.340.0070.00714.00
5.6.330.0070.00714.05
5.6.320.0000.01314.16
5.6.310.0070.00414.20
5.6.300.0060.00613.99
5.6.290.0030.00913.87
5.6.280.0030.04217.43
5.6.270.0030.01014.36
5.6.260.0070.00714.38
5.6.250.0040.00414.11
5.6.240.0100.00314.04
5.6.230.0040.01114.09
5.6.220.0100.00014.07
5.6.210.0050.04717.34
5.6.200.0040.02716.19
5.6.190.0030.02717.35
5.6.180.0210.03817.16
5.6.170.0170.02217.35
5.6.160.0090.02917.35
5.6.150.0070.02416.08
5.6.140.0030.03516.13
5.6.130.0030.03916.13
5.6.120.0170.03517.62
5.6.110.0050.04717.58
5.6.100.0090.04417.64
5.6.90.0070.02517.66
5.6.80.0050.03917.33
5.6.70.0090.00613.92
5.6.60.0110.00414.37
5.6.50.0040.01114.09
5.6.40.0110.00314.14
5.6.30.0120.00314.04
5.6.20.0040.01113.94
5.6.10.0090.00914.29
5.6.00.0140.00014.14
5.5.380.0060.00310.53
5.5.370.0040.00811.03
5.5.360.0030.00710.98
5.5.350.0020.04715.79
5.5.340.0040.04514.43
5.5.330.0030.05015.40
5.5.320.0050.03515.62
5.5.310.0220.03615.58
5.5.300.0070.04214.38
5.5.290.0090.04014.56
5.5.280.0080.02215.94
5.5.270.0080.04315.75
5.5.260.0050.02515.98
5.5.250.0080.02415.65
5.5.240.0160.03615.52
5.5.230.0080.00410.71
5.5.220.0000.00810.91
5.5.210.0070.00711.01
5.5.200.0130.00711.14
5.5.190.0030.00710.84
5.5.180.0040.00711.06
5.5.170.0070.00411.03
5.5.160.0030.00910.90
5.5.150.0060.00610.65
5.5.140.0030.00310.72
5.5.130.0030.00910.83
5.5.120.0070.00010.88
5.5.110.0000.01111.09
5.5.100.0030.00310.75
5.5.90.0040.00410.79
5.5.80.0030.00310.97
5.5.70.0030.00910.82
5.5.60.0060.00610.56
5.5.50.0110.00010.76
5.5.40.0040.00410.66
5.5.30.0050.00510.47
5.5.20.0100.00310.89
5.5.10.0050.00310.60
5.5.00.0110.00010.72
5.4.450.0220.02615.17
5.4.440.0290.02615.16
5.4.430.0190.02615.02
5.4.420.0320.02015.04
5.4.410.0260.02715.08
5.4.400.0100.02914.74
5.4.390.0570.03614.92
5.4.380.0400.03014.62
5.4.370.0620.03014.60
5.4.360.0350.02914.62
5.4.350.0530.03114.75
5.4.340.0450.03314.44
5.4.330.0000.01410.32
5.4.320.0060.01911.44
5.4.310.0080.02211.49
5.4.300.0090.02611.47
5.4.290.0060.03311.64
5.4.280.0100.02511.55
5.4.270.0080.02411.59
5.4.260.0020.02711.53
5.4.250.0080.02511.43
5.4.240.0060.02111.56
5.4.230.0060.02211.60
5.4.220.0050.02111.43
5.4.210.0080.02211.47
5.4.200.0090.01911.58
5.4.190.0050.02111.53
5.4.180.0050.02111.56
5.4.170.0020.02511.65
5.4.160.0060.01911.60
5.4.150.0070.02111.63
5.4.140.0040.02311.41
5.4.130.0050.02111.41
5.4.120.0040.02211.33
5.4.110.0080.01811.47
5.4.100.0040.02111.45
5.4.90.0020.02711.31
5.4.80.0060.02611.33
5.4.70.0110.02011.43
5.4.60.0060.02011.46
5.4.50.0050.02011.33
5.4.40.0070.02011.33
5.4.30.0070.01911.36
5.4.20.0030.02111.40
5.4.10.0030.02211.35
5.4.00.0050.01911.06
5.3.290.0080.02111.66
5.3.280.0040.02411.47
5.3.270.0050.02411.49
5.3.260.0030.02511.56
5.3.250.0070.02111.63
5.3.240.0050.02311.48
5.3.230.0050.02311.55
5.3.220.0050.02211.46
5.3.210.0050.02811.46
5.3.200.0070.02211.46
5.3.190.0040.02211.46
5.3.180.0040.02311.54
5.3.170.0050.02211.59
5.3.160.0040.02511.53
5.3.150.0060.02211.59
5.3.140.0040.02411.46
5.3.130.0080.02011.57
5.3.120.0050.02311.52
5.3.110.0080.01911.47
5.3.100.0040.02311.24
5.3.90.0040.02211.27
5.3.80.0030.02211.16
5.3.70.0050.02211.15
5.3.60.0080.01811.22
5.3.50.0090.02211.12
5.3.40.0070.01911.16
5.3.30.0020.02011.13
5.3.20.0050.02011.01
5.3.10.0060.02010.96
5.3.00.0090.02010.96
5.2.170.0070.0159.71
5.2.160.0030.0169.71
5.2.150.0060.0149.71
5.2.140.0060.0169.71
5.2.130.0020.0199.69
5.2.120.0030.0189.68
5.2.110.0040.0189.69
5.2.100.0030.0199.69
5.2.90.0070.0159.69
5.2.80.0030.0199.68
5.2.70.0050.0179.68
5.2.60.0040.0179.66
5.2.50.0070.0169.64
5.2.40.0050.0159.63
5.2.30.0040.0219.62
5.2.20.0060.0169.62
5.2.10.0080.0169.58
5.2.00.0060.0229.51
5.1.60.0080.0129.15
5.1.50.0060.0149.15
5.1.40.0080.0149.14
5.1.30.0040.0159.31
5.1.20.0020.0189.32
5.1.10.0020.0179.18
5.1.00.0040.0159.19
5.0.50.0050.0128.42
5.0.40.0020.0128.36
5.0.30.0030.0228.26
5.0.20.0050.0118.25
5.0.10.0020.0128.23
5.0.00.0010.0198.23
4.4.90.0030.0097.51
4.4.80.0020.0107.49
4.4.70.0030.0087.50
4.4.60.0030.0107.49
4.4.50.0040.0097.50
4.4.40.0020.0147.47
4.4.30.0040.0097.50
4.4.20.0010.0107.54
4.4.10.0020.0137.54
4.4.00.0050.0167.50
4.3.110.0030.0107.45
4.3.100.0010.0117.45
4.3.90.0040.0117.43
4.3.80.0050.0127.41
4.3.70.0010.0107.43
4.3.60.0030.0097.43
4.3.50.0020.0097.43
4.3.40.0020.0147.38
4.3.30.0040.0096.76
4.3.20.0030.0096.74
4.3.10.0020.0106.73
4.3.00.0050.01012.75

preferences:
45.1 ms | 401 KiB | 5 Q