3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 80; $kecewa = array(0,40,65); $biasa = array(40,65,80); $puas = array(65,80,100); $kb = array_intersect($kecewa, $biasa); $bp = array_intersect($biasa, $puas); print_r($kb); print_r($bp); if ( $hasil >= $bp[1] && $hasil <= $bp[2] ) { $muPuas = $hasil - $bp[1] / $bp[2]-$bp[1]; }

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.0040.01116.63
8.3.50.0120.00617.41
8.3.40.0090.00618.72
8.3.30.0070.00718.75
8.3.20.0080.00018.75
8.3.10.0030.00620.53
8.3.00.0000.00819.38
8.2.180.0040.01118.05
8.2.170.0150.00622.96
8.2.160.0100.00721.24
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00317.63
8.2.110.0090.00021.00
8.2.100.0040.00717.84
8.2.90.0000.00920.93
8.2.80.0040.00417.93
8.2.70.0030.00517.63
8.2.60.0070.00318.04
8.2.50.0030.00618.07
8.2.40.0050.00318.34
8.2.30.0030.00618.14
8.2.20.0040.00417.71
8.2.10.0080.00017.76
8.2.00.0050.00217.86
8.1.280.0140.00725.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0040.00422.46
8.1.230.0110.00021.04
8.1.220.0040.00417.74
8.1.210.0080.00018.85
8.1.200.0000.00817.35
8.1.190.0030.00517.41
8.1.180.0040.00418.10
8.1.170.0000.00718.74
8.1.160.0070.00018.96
8.1.150.0040.00418.66
8.1.140.0040.00417.43
8.1.130.0030.00317.84
8.1.120.0040.00417.52
8.1.110.0000.00817.53
8.1.100.0040.00417.52
8.1.90.0000.00817.41
8.1.80.0080.00017.38
8.1.70.0030.00317.39
8.1.60.0000.00817.64
8.1.50.0000.00917.44
8.1.40.0030.00517.54
8.1.30.0060.00317.65
8.1.20.0030.00517.60
8.1.10.0000.00717.48
8.1.00.0000.00717.40
8.0.300.0000.00720.08
8.0.290.0040.00416.75
8.0.280.0030.00318.42
8.0.270.0000.00717.19
8.0.260.0000.00718.37
8.0.250.0000.00717.00
8.0.240.0030.00316.80
8.0.230.0000.00716.92
8.0.220.0100.00016.87
8.0.210.0040.00416.96
8.0.200.0000.00716.86
8.0.190.0040.00416.94
8.0.180.0030.00316.93
8.0.170.0000.00816.89
8.0.160.0040.00416.99
8.0.150.0090.00016.83
8.0.140.0000.00916.91
8.0.130.0030.00313.34
8.0.120.0070.00016.89
8.0.110.0040.00416.75
8.0.100.0040.00416.86
8.0.90.0000.00816.70
8.0.80.0090.01316.86
8.0.70.0040.00416.86
8.0.60.0070.00016.94
8.0.50.0040.00416.93
8.0.30.0110.00816.98
8.0.20.0120.01016.95
8.0.10.0030.00617.03
8.0.00.0140.00816.83
7.4.330.0000.00512.94
7.4.320.0000.01016.54
7.4.300.0030.00316.50
7.4.290.0000.00716.57
7.4.280.0040.00416.43
7.4.270.0000.00716.45
7.4.260.0000.00513.29
7.4.250.0000.00816.50
7.4.240.0040.00416.55
7.4.230.0030.00316.40
7.4.220.0190.00616.58
7.4.210.0090.00816.57
7.4.200.0080.00016.64
7.4.190.0030.00316.38
7.4.160.0120.00416.45
7.4.150.0090.01216.41
7.4.140.0100.00916.55
7.4.130.0100.00616.60
7.4.120.0080.01016.47
7.4.110.0070.01016.64
7.4.100.0080.01116.60
7.4.90.0130.00516.53
7.4.80.0120.00619.39
7.4.70.0130.00316.64
7.4.60.0030.01916.47
7.4.50.0000.00816.54
7.4.40.0060.00616.36
7.4.30.0070.01016.48
7.4.00.0070.01014.84
7.3.330.0000.00613.13
7.3.320.0060.00013.17
7.3.310.0030.00316.38
7.3.300.0000.00716.36
7.3.290.0030.01716.27
7.3.280.0070.00916.25
7.3.270.0070.01016.31
7.3.260.0130.01616.50
7.3.250.0140.00716.56
7.3.240.0140.00416.67
7.3.230.0170.00016.49
7.3.210.0090.00616.23
7.3.200.0140.00916.32
7.3.190.0160.01016.36
7.3.180.0100.01016.41
7.3.170.0030.01716.49
7.3.160.0100.00616.29
7.3.120.0060.00914.95
7.3.110.0070.01114.75
7.3.100.0000.01414.98
7.3.90.0080.00514.84
7.3.80.0060.00614.68
7.3.70.0000.01314.94
7.3.60.0040.01114.90
7.3.50.0090.00314.67
7.3.40.0070.00714.68
7.3.30.0040.00814.77
7.3.20.0040.00816.40
7.3.10.0110.00416.76
7.3.00.0030.01116.74
7.2.330.0150.00916.36
7.2.320.0070.01016.59
7.2.310.0210.01516.57
7.2.300.0060.01116.44
7.2.290.0090.01216.32
7.2.250.0130.00315.11
7.2.240.0060.00915.25
7.2.230.0000.01615.02
7.2.220.0070.01015.18
7.2.210.0100.00314.67
7.2.200.0090.00615.16
7.2.190.0070.00715.09
7.2.180.0080.00415.04
7.2.170.0030.00714.73
7.2.00.0000.01419.19
7.1.330.0000.01415.87
7.1.320.0120.00315.86
7.1.310.0030.01215.67
7.1.300.0080.00315.69
7.1.290.0030.01215.86
7.1.280.0150.00015.80
7.1.270.0000.01615.78
7.1.260.0060.00916.04
7.1.200.0110.00415.93
7.1.100.0000.01218.04
7.1.70.0040.00717.28
7.1.60.0160.00919.40
7.1.50.0100.01616.99
7.1.00.0070.07322.41
7.0.200.0110.00414.88
7.0.140.0030.07721.95
7.0.120.0030.07322.01
7.0.60.0300.08319.82
7.0.50.0070.04317.84
7.0.40.0130.08020.04
7.0.30.0300.06720.09
7.0.20.0200.04320.21
7.0.10.0070.05320.21
7.0.00.0130.08320.24
5.6.280.0070.07021.10
5.6.210.0100.07720.61
5.6.200.0030.04318.17
5.6.190.0000.06720.55
5.6.180.0200.04020.63
5.6.170.0330.07320.44
5.6.160.0070.08720.52
5.6.150.0030.06718.14
5.6.140.0030.08718.21
5.6.130.0030.04318.21
5.6.120.0030.04721.17
5.6.110.0130.03321.01
5.6.100.0130.06721.00
5.6.90.0100.06721.13
5.6.80.0070.08320.50
5.5.350.3930.04020.52
5.5.340.0030.08717.96
5.5.330.0070.07720.31
5.5.320.0370.07720.27
5.5.310.0270.05020.51
5.5.300.0100.06318.01
5.5.290.0100.08017.97
5.5.280.0100.05020.77
5.5.270.0030.08320.93
5.5.260.0130.07720.89
5.5.250.0070.03720.58
5.5.240.0030.07720.18
5.4.450.3700.04019.39
5.4.440.0070.07019.56
5.4.430.1370.06719.53
5.4.420.3970.03319.43
5.4.410.3770.03719.43
5.4.400.3630.03718.99
5.4.390.3870.04019.11
5.4.380.3870.03718.98
5.4.370.3930.04019.17
5.4.360.3670.03719.13
5.4.350.3930.03719.21
5.4.340.3970.03319.21
5.4.320.3730.04019.13
5.4.310.3430.03718.95
5.4.300.4670.04019.03
5.4.290.3700.03319.23
5.4.280.3630.04019.05
5.4.270.3700.04019.22
5.4.260.3830.04018.96
5.4.250.3700.04319.23
5.4.240.3900.04019.20
5.4.230.4200.04019.23
5.4.220.3800.03719.10
5.4.210.3900.04019.11
5.4.200.3870.03718.98
5.4.190.3630.03719.17
5.4.180.3670.03719.11
5.4.170.3730.04019.13
5.4.160.3870.03719.09
5.4.150.4100.03719.08
5.4.140.3670.04016.41
5.4.130.4370.04016.33
5.4.120.3530.03716.29
5.4.110.3700.03716.48
5.4.100.3700.03316.44
5.4.90.3800.03716.45
5.4.80.4000.03316.51
5.4.70.3830.03016.33
5.4.60.3870.03716.49
5.4.50.4400.04316.45
5.4.40.4170.04016.45
5.4.30.3870.03716.19
5.4.20.3830.03716.50
5.4.10.3670.03016.48
5.4.00.3930.03715.98
5.3.290.3870.03314.62
5.3.280.3870.04014.63
5.3.270.3870.03314.63
5.3.260.4000.03714.64
5.3.250.3370.04014.67
5.3.240.3830.03714.49
5.3.230.4270.03314.65
5.3.220.3730.04014.57
5.3.210.3600.04014.59
5.3.200.3970.03014.61
5.3.190.3700.04014.57
5.3.180.3870.03714.59
5.3.170.4130.03014.61
5.3.160.3670.04014.60
5.3.150.3970.03314.55
5.3.140.3830.03014.57
5.3.130.4170.03714.63
5.3.120.3870.04014.53
5.3.110.3630.04014.63
5.3.100.3700.03714.05
5.3.90.3930.04014.08
5.3.80.3470.04313.93
5.3.70.0100.03314.06
5.3.60.0000.08714.03
5.3.50.0000.06313.89
5.3.40.3870.03013.99
5.3.30.3670.03313.85
5.3.20.3900.03313.72
5.3.10.2930.03313.63
5.3.00.3700.04013.55
5.2.170.1270.04011.15
5.2.160.3270.03011.10
5.2.150.3300.03011.17
5.2.140.4070.03311.28
5.2.130.2970.03011.10
5.2.120.3070.02711.15
5.2.110.3000.03011.25
5.2.100.3270.02711.02
5.2.90.3330.02311.25
5.2.80.3200.03011.04
5.2.70.3230.03011.02
5.2.60.3000.03310.96
5.2.50.2770.03310.96
5.2.40.2730.02710.91
5.2.30.2600.02711.11
5.2.20.2500.02311.00
5.2.10.0030.05710.90
5.2.00.0070.06010.78
5.1.60.0000.04710.13
5.1.50.0070.04310.04
5.1.40.3230.02310.03
5.1.30.3230.03010.33
5.1.20.3200.01310.35
5.1.10.3130.02710.03
5.1.00.2900.02310.03
5.0.50.1700.0208.52
5.0.40.1430.0278.31
5.0.30.1530.0308.21
5.0.20.1430.0238.18
5.0.10.1330.0238.07
5.0.00.1400.0308.22
4.4.90.1500.0176.20
4.4.80.1400.0176.20
4.4.70.1500.0206.20
4.4.60.1270.0136.20
4.4.50.0000.0376.20
4.4.40.0030.0276.20
4.4.30.0930.0206.20
4.4.20.1600.0106.20
4.4.10.1700.0176.20
4.4.00.1400.0276.20
4.3.110.1700.0136.20
4.3.100.1430.0136.20
4.3.90.1500.0176.20
4.3.80.1530.0176.20
4.3.70.1600.0106.20
4.3.60.1430.0136.20
4.3.50.1670.0176.20
4.3.40.1700.0206.20
4.3.30.0970.0136.20
4.3.20.0800.0176.20
4.3.10.0930.0206.20
4.3.00.0830.0206.20

preferences:
43.47 ms | 401 KiB | 5 Q