3v4l.org

run code in 300+ PHP versions simultaneously
<?php function checkPremium($options) { $premium = TRUE; foreach ( $options AS $option ) { if ( array_key_exists( 'subscriber', $option['purchase_price'] ) && $option['purchase_price']['subscriber'] == 0 && $option['purchase_price']['subscriber'] != "" ) { $premium = FALSE; } } return $premium; } $options = [array('purchase_price' => array())]; print checkPremium($options);

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.00916.50
8.3.50.0080.01121.28
8.3.40.0040.01118.72
8.3.30.0070.00719.13
8.3.20.0040.00420.25
8.3.10.0040.00421.82
8.3.00.0080.00017.38
8.2.180.0130.00616.38
8.2.170.0150.00322.96
8.2.160.0100.00320.44
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0150.00419.14
8.2.110.0090.00022.25
8.2.100.0060.00617.91
8.2.90.0050.00317.97
8.2.80.0000.00817.50
8.2.70.0000.00917.50
8.2.60.0040.00419.77
8.2.50.0060.00318.07
8.2.40.0080.00020.07
8.2.30.0040.00418.07
8.2.20.0040.00417.80
8.2.10.0050.00218.06
8.2.00.0030.00318.11
8.1.280.0150.00325.92
8.1.270.0060.01220.36
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0110.00720.64
8.1.230.0070.01020.89
8.1.220.0000.00817.74
8.1.210.0050.00518.95
8.1.200.0060.00317.13
8.1.190.0080.00017.13
8.1.180.0060.00318.10
8.1.170.0030.00618.45
8.1.160.0030.00518.87
8.1.150.0070.00018.88
8.1.140.0030.00617.42
8.1.130.0030.00317.82
8.1.120.0000.00717.47
8.1.110.0050.00317.51
8.1.100.0040.00417.35
8.1.90.0070.00017.35
8.1.80.0030.00317.44
8.1.70.0000.00717.45
8.1.60.0080.00017.41
8.1.50.0030.00617.44
8.1.40.0070.00017.55
8.1.30.0040.00417.56
8.1.20.0080.00017.61
8.1.10.0040.00417.59
8.1.00.0000.00717.54
8.0.300.0070.00019.98
8.0.290.0070.00016.75
8.0.280.0000.00718.31
8.0.270.0000.00717.21
8.0.260.0060.00017.27
8.0.250.0000.00716.86
8.0.240.0000.00716.96
8.0.230.0070.00016.99
8.0.220.0000.00716.86
8.0.210.0000.00716.79
8.0.200.0040.00416.89
8.0.190.0000.00916.92
8.0.180.0060.00316.87
8.0.170.0060.00316.92
8.0.160.0000.00716.94
8.0.150.0050.00316.87
8.0.140.0070.00016.82
8.0.130.0000.00613.31
8.0.120.0040.00416.70
8.0.110.0070.00016.73
8.0.100.0070.00016.94
8.0.90.0050.00216.80
8.0.80.0070.01016.95
8.0.70.0000.00716.79
8.0.60.0040.00416.77
8.0.50.0000.00716.73
8.0.30.0100.01416.93
8.0.20.0100.01117.40
8.0.10.0030.00616.86
8.0.00.0080.01116.88
7.4.330.0000.00515.04
7.4.320.0000.00616.58
7.4.300.0070.00016.39
7.4.290.0070.00016.61
7.4.280.0030.00316.41
7.4.270.0040.00416.61
7.4.260.0030.00316.49
7.4.250.0000.00716.51
7.4.240.0030.00316.58
7.4.230.0030.00316.34
7.4.220.0110.01516.62
7.4.210.0100.00716.64
7.4.200.0000.00716.48
7.4.160.0090.00616.59
7.4.150.0030.01717.40
7.4.140.0100.00917.86
7.4.130.0100.00916.57
7.4.120.0070.01016.50
7.4.110.0070.01316.29
7.4.100.0070.01116.66
7.4.90.0160.00716.45
7.4.80.0090.01219.39
7.4.70.0060.01416.48
7.4.60.0100.00716.47
7.4.50.0000.00716.43
7.4.40.0120.00416.41
7.4.30.0070.01116.53
7.4.00.0070.00414.82
7.3.330.0000.00613.36
7.3.320.0040.00413.11
7.3.310.0070.00016.36
7.3.300.0040.00416.37
7.3.290.0060.01216.27
7.3.280.0080.00716.29
7.3.270.0140.00517.40
7.3.260.0100.00716.39
7.3.250.0080.01116.61
7.3.240.0140.01016.34
7.3.230.0120.01216.59
7.3.210.0100.01016.57
7.3.200.0080.01219.39
7.3.190.0140.00716.45
7.3.180.0090.00616.60
7.3.170.0000.01816.41
7.3.160.0130.00316.38
7.2.330.0030.01716.54
7.2.320.0110.01116.47
7.2.310.0040.01416.48
7.2.300.0130.00316.71
7.2.290.0050.01116.54
7.2.60.0040.01117.05
7.2.00.0040.00819.35
7.1.200.0000.00615.94
7.1.100.0250.00718.30
7.1.70.0100.00317.02
7.1.60.0070.01019.50
7.1.50.0070.01116.91
7.1.00.0030.07722.33
7.0.200.0460.00714.74
7.0.60.0170.06319.93
7.0.50.0030.07317.86
7.0.40.0130.05720.40
7.0.30.0200.03720.12
7.0.20.0070.05020.12
7.0.10.0030.07320.13
7.0.00.0100.05720.21
5.6.280.0000.07721.09
5.6.210.0070.08320.75
5.6.200.0030.08318.27
5.6.190.0130.04720.46
5.6.180.0200.07720.47
5.6.170.0300.06020.47
5.6.160.0130.08320.39
5.6.150.0100.07718.12
5.6.140.0100.05718.14
5.6.130.0000.04718.28
5.6.120.0030.08720.99
5.6.110.0270.06021.02
5.6.100.0000.09021.00
5.6.90.0070.04320.89
5.6.80.0030.07720.43
5.6.70.4470.04020.40
5.5.350.0000.04020.33
5.5.340.0000.04018.03
5.5.330.0070.04020.18
5.5.320.0170.05320.33
5.5.310.0270.07720.41
5.5.300.0100.08017.96
5.5.290.0000.04718.03
5.5.280.0100.08020.89
5.5.270.0000.09020.76
5.5.260.0170.07720.68
5.5.250.0130.07320.69
5.5.240.0270.04020.16
5.4.450.0630.05319.46
5.4.440.0770.06019.62
5.4.430.0970.05019.38
5.4.420.0000.06319.51
5.4.410.0070.07318.91
5.4.400.0200.04718.54
5.4.390.0130.05318.59
5.4.380.0100.06018.74
5.4.370.0130.05018.83
5.4.360.0130.05318.63
5.4.350.0170.05018.61
5.4.340.0170.04718.73
5.4.320.0230.05318.55
5.4.310.0100.05318.79
5.4.300.0030.06018.78
5.4.290.0200.04718.84
5.4.280.0200.05018.59
5.4.270.0200.04718.52
5.4.260.0070.06018.76
5.4.250.0200.04718.52
5.4.240.0070.06018.58
5.4.230.0130.05018.82
5.4.220.0070.06018.71
5.4.210.0030.06318.62
5.4.200.0030.05716.64
5.4.190.0130.05318.79
5.4.180.0130.05018.45
5.4.170.0100.05318.50
5.4.160.0200.04318.54
5.4.150.0130.05318.60
5.4.140.0170.04716.27
5.4.130.0170.04316.29
5.4.120.0170.06016.20
5.4.110.0170.05016.26
5.4.100.0070.05316.28
5.4.90.0070.05716.29
5.4.80.0100.05016.43
5.4.70.0100.05316.23
5.4.60.0200.04016.21
5.4.50.0130.06016.30
5.4.40.0130.05016.16
5.4.30.0130.04716.38
5.4.20.0100.05016.39
5.4.10.0130.04716.30
5.4.00.0130.05015.72
5.3.290.0130.05314.87
5.3.280.0100.05314.63
5.3.270.0130.05714.73
5.3.260.0070.05714.81
5.3.250.0130.05314.71
5.3.240.0030.06014.60
5.3.230.0230.05314.73
5.3.220.0100.05314.57
5.3.210.0170.07014.55
5.3.200.0170.04714.77
5.3.190.0230.04314.62
5.3.180.0200.05314.59
5.3.170.0130.05714.54
5.3.160.0130.04714.62
5.3.150.0200.04314.66
5.3.140.0030.06714.78
5.3.130.0300.05714.71
5.3.120.0100.05714.67
5.3.110.0100.05714.73
5.3.100.0070.05714.10
5.3.90.0230.05014.24
5.3.80.0100.05014.07
5.3.70.0100.07014.11
5.3.60.0030.06014.12
5.3.50.0130.05014.00
5.3.40.0030.06013.97
5.3.30.0100.05014.13
5.3.20.0100.06013.82
5.3.10.0170.06313.70
5.3.00.0100.05013.65
5.2.170.0070.04311.24
5.2.160.0170.04011.19
5.2.150.0000.05011.24
5.2.140.0070.04711.34
5.2.130.0070.04311.32
5.2.120.0100.04711.11
5.2.110.0070.05711.17
5.2.100.0070.04711.14
5.2.90.0030.05711.17
5.2.80.0100.04711.14
5.2.70.0100.04311.20
5.2.60.0070.04311.10
5.2.50.0030.05011.05
5.2.40.0130.03311.03
5.2.30.0000.05011.07
5.2.20.0130.05011.06
5.2.10.0070.04010.88
5.2.00.0100.04310.89
5.1.60.0130.03010.00
5.1.50.0100.0309.98
5.1.40.0000.04010.01
5.1.30.0030.04010.43
5.1.20.0100.03710.53
5.1.10.0000.04310.28
5.1.00.0100.04710.18
5.0.50.0030.0308.54
5.0.40.0070.0278.45
5.0.30.0070.0478.32
5.0.20.0030.0308.32
5.0.10.0000.0338.29
5.0.00.0100.0408.28
4.4.90.0100.0175.97
4.4.80.0070.0206.00
4.4.70.0030.0235.94
4.4.60.0030.0205.97
4.4.50.0100.0176.00
4.4.40.0100.0305.89
4.4.30.0100.0235.92
4.4.20.0030.0235.92
4.4.10.0070.0205.95
4.4.00.0100.0405.92
4.3.110.0030.0305.91
4.3.100.0070.0235.79
4.3.90.0030.0235.85
4.3.80.0070.0305.78
4.3.70.0030.0235.91
4.3.60.0070.0205.83
4.3.50.0030.0205.80
4.3.40.0030.0335.89
4.3.30.0070.0174.58
4.3.20.0030.0204.65
4.3.10.0030.0234.49
4.3.00.0270.01314.45

preferences:
54.64 ms | 401 KiB | 5 Q