3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array( array( 'purchase_price' => array( 'subscriber' => "0" ) ) ); $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; } } print ($premium) ? "TRUE" : "FALSE";

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.0110.00716.63
8.3.50.0140.00222.13
8.3.40.0070.01118.69
8.3.30.0100.00318.96
8.3.20.0070.00020.09
8.3.10.0080.00020.48
8.3.00.0050.00319.25
8.2.180.0110.00316.50
8.2.170.0090.00622.96
8.2.160.0140.00420.50
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00321.02
8.2.110.0060.00322.30
8.2.100.0070.00417.91
8.2.90.0000.00719.26
8.2.80.0030.00617.97
8.2.70.0030.00517.50
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0000.00818.16
8.2.30.0000.00919.30
8.2.20.0100.00017.69
8.2.10.0040.00418.05
8.2.00.0000.00717.61
8.1.280.0100.01025.92
8.1.270.0040.00423.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.76
8.1.230.0040.00819.23
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0000.00917.35
8.1.190.0000.00817.36
8.1.180.0080.00018.10
8.1.170.0080.00018.59
8.1.160.0050.00322.02
8.1.150.0030.00518.89
8.1.140.0000.00817.44
8.1.130.0030.00317.86
8.1.120.0000.00717.45
8.1.110.0070.00017.45
8.1.100.0070.00017.41
8.1.90.0000.00717.30
8.1.80.0000.00717.48
8.1.70.0030.00617.32
8.1.60.0000.00817.57
8.1.50.0030.00617.50
8.1.40.0080.00017.52
8.1.30.0000.00817.63
8.1.20.0000.00717.54
8.1.10.0000.00717.41
8.1.00.0000.00717.43
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00518.39
8.0.270.0050.00317.25
8.0.260.0030.00317.29
8.0.250.0030.00316.92
8.0.240.0030.00316.81
8.0.230.0080.00016.96
8.0.220.0000.00816.78
8.0.210.0070.00016.86
8.0.200.0040.00416.79
8.0.190.0080.00016.95
8.0.180.0000.00716.78
8.0.170.0040.00416.76
8.0.160.0000.00716.91
8.0.150.0040.00416.68
8.0.140.0000.00816.87
8.0.130.0000.00513.30
8.0.120.0000.00816.89
8.0.110.0040.00316.86
8.0.100.0030.00516.91
8.0.90.0000.00716.95
8.0.80.0090.00616.86
8.0.70.0040.00416.90
8.0.60.0000.00816.93
8.0.50.0050.00216.93
8.0.30.0120.00816.95
8.0.20.0120.01017.40
8.0.10.0070.00016.98
8.0.00.0100.01016.78
7.4.330.0000.00515.07
7.4.320.0060.00016.50
7.4.300.0000.00716.61
7.4.290.0030.00316.58
7.4.280.0080.00016.59
7.4.270.0040.00416.48
7.4.260.0030.00316.52
7.4.250.0000.00716.51
7.4.240.0020.00516.57
7.4.230.0000.00716.38
7.4.220.0100.00716.55
7.4.210.0110.00316.62
7.4.200.0070.00016.61
7.4.160.0060.01116.24
7.4.150.0160.00717.40
7.4.140.0130.00717.86
7.4.130.0050.01116.48
7.4.120.0090.00816.54
7.4.110.0090.00616.56
7.4.100.0080.00816.36
7.4.90.0060.01016.47
7.4.80.0090.00919.39
7.4.70.0140.00316.46
7.4.60.0170.00316.56
7.4.50.0030.00516.56
7.4.40.0040.01216.60
7.4.30.0090.00616.44
7.4.00.0060.01214.69
7.3.330.0050.00013.23
7.3.320.0000.00613.17
7.3.310.0000.00616.25
7.3.300.0040.00416.35
7.3.290.0120.00316.32
7.3.280.0100.00816.31
7.3.270.0140.00917.40
7.3.260.0070.01016.50
7.3.250.0060.01116.50
7.3.240.0060.01216.27
7.3.230.0130.00316.51
7.3.210.0110.01016.41
7.3.200.0120.00919.39
7.3.190.0060.01616.45
7.3.180.0090.00616.29
7.3.170.0090.01216.47
7.3.160.0170.00016.49
7.3.00.0090.00616.63
7.2.330.0120.00416.78
7.2.320.0100.00716.75
7.2.310.0060.00916.75
7.2.300.0070.01016.80
7.2.290.0070.01016.69
7.2.130.0060.00917.11
7.2.120.0140.00017.05
7.2.110.0060.00317.00
7.2.100.0040.01117.13
7.2.90.0040.01116.99
7.2.80.0060.00916.90
7.2.70.0060.00916.68
7.2.60.0090.00017.00
7.2.50.0040.00416.81
7.2.40.0090.00317.05
7.2.30.0060.00817.04
7.2.20.0030.00617.06
7.2.10.0060.01216.84
7.2.00.0020.00918.08
7.1.250.0060.00915.91
7.1.240.0070.00715.63
7.1.230.0070.00715.89
7.1.220.0110.00315.82
7.1.210.0060.00915.95
7.1.200.0060.00315.88
7.1.190.0030.00715.82
7.1.180.0060.00615.81
7.1.170.0090.00615.64
7.1.160.0090.00315.68
7.1.150.0040.00715.58
7.1.140.0100.00015.66
7.1.130.0080.00415.78
7.1.120.0030.01015.65
7.1.110.0030.00615.66
7.1.100.0090.00517.00
7.1.90.0070.00716.05
7.1.80.0110.00315.45
7.1.70.0020.00816.42
7.1.60.0080.00817.80
7.1.50.0150.01025.28
7.1.40.0060.01015.93
7.1.30.0060.00615.83
7.1.20.0130.00015.68
7.1.10.0100.00716.00
7.1.00.0050.04019.12
7.0.330.0040.00415.38
7.0.320.0030.01315.36
7.0.310.0040.00415.30
7.0.300.0070.00715.40
7.0.290.0060.00915.41
7.0.280.0000.01015.47
7.0.270.0090.00615.43
7.0.260.0100.00315.14
7.0.250.0070.00715.38
7.0.240.0000.00815.00
7.0.230.0030.00715.52
7.0.220.0030.01015.44
7.0.210.0100.00315.20
7.0.200.0050.00715.90
7.0.190.0030.01015.54
7.0.180.0050.00515.51
7.0.170.0110.00015.50
7.0.160.0040.00815.47
7.0.150.0070.00415.20
7.0.140.0030.04118.79
7.0.130.0120.00415.57
7.0.120.0040.00815.59
7.0.110.0000.01315.42
7.0.100.0030.01015.25
7.0.90.0030.01015.06
7.0.80.0030.01315.62
7.0.70.0070.01015.30
7.0.60.0080.04018.60
7.0.50.0130.02716.60
7.0.40.0020.05016.80
7.0.30.0230.02316.66
7.0.20.0180.03216.82
7.0.10.0070.04216.74
7.0.00.0070.04716.79
5.6.380.0030.01014.54
5.6.370.0060.00914.58
5.6.360.0030.00514.61
5.6.350.0040.00414.38
5.6.340.0060.00614.53
5.6.330.0000.01414.45
5.6.320.0040.00914.33
5.6.310.0070.00714.30
5.6.300.0030.00914.60
5.6.290.0000.01414.11
5.6.280.0070.04017.64
5.6.270.0090.00014.27
5.6.260.0000.01314.40
5.6.250.0000.00914.34
5.6.240.0070.00714.32
5.6.230.0000.01714.15
5.6.220.0060.00613.96
5.6.210.0060.02817.55
5.6.200.0000.03016.34
5.6.190.0120.03917.57
5.6.180.0230.03317.38
5.6.170.0150.02217.43
5.6.160.0090.04217.37
5.6.150.0080.03816.24
5.6.140.0090.02016.34
5.6.130.0110.03016.22
5.6.120.0080.04317.56
5.6.110.0050.04717.77
5.6.100.0070.03417.57
5.6.90.0050.04117.53
5.6.80.0080.02717.38
5.6.70.0080.00413.87
5.6.60.0040.00814.02
5.6.50.0040.00714.06
5.6.40.0040.00714.48
5.6.30.0080.00314.45
5.6.20.0030.00614.38
5.6.10.0000.01114.52
5.6.00.0080.00314.28
5.5.380.0060.00611.34
5.5.370.0140.00011.18
5.5.360.0000.01011.18
5.5.350.1970.02415.74
5.5.340.0070.04414.59
5.5.330.0060.02115.69
5.5.320.0150.03815.71
5.5.310.0200.04015.84
5.5.300.0030.03014.53
5.5.290.0040.02714.61
5.5.280.0050.04015.98
5.5.270.0080.03515.94
5.5.260.0060.04316.01
5.5.250.0130.03015.84
5.5.240.0110.04015.65
5.5.230.0090.00311.18
5.5.220.0070.00311.18
5.5.210.0050.00311.18
5.5.200.0050.00311.26
5.5.190.0030.00711.18
5.5.180.0000.00711.18
5.5.170.0030.00611.18
5.5.160.0050.00211.18
5.5.150.0000.00511.18
5.5.140.0020.00511.18
5.5.130.0030.00311.18
5.5.120.0070.00011.18
5.5.110.0060.00311.18
5.5.100.0060.00611.18
5.5.90.0000.01311.18
5.5.80.0070.00311.18
5.5.70.0000.00911.18
5.5.60.0040.00711.18
5.5.50.0000.00911.18
5.5.40.0040.00811.18
5.5.30.0000.01011.18
5.5.20.0000.01011.18
5.5.10.0030.00911.18
5.5.00.0090.00311.18
5.4.450.1940.02315.17
5.4.440.0020.04815.27
5.4.430.0880.03315.30
5.4.420.1800.02515.25
5.4.410.2070.02515.26
5.4.400.2000.02115.09
5.4.390.0080.03815.10
5.4.380.0120.03315.13
5.4.370.2120.02515.06
5.4.360.2350.02315.04
5.4.350.2340.02015.02
5.4.340.2030.02015.06
5.4.330.0060.00611.23
5.4.320.1770.01715.10
5.4.310.0030.02515.00
5.4.300.1800.02415.10
5.4.290.2000.02515.10
5.4.280.1870.02115.14
5.4.270.1580.02315.19
5.4.260.1990.01515.14
5.4.250.1660.01615.00
5.4.240.1820.02015.06
5.4.230.1950.02115.13
5.4.220.2270.02215.13
5.4.210.2320.02215.11
5.4.200.2230.01715.19
5.4.190.2150.02315.08
5.4.180.2150.02615.11
5.4.170.1820.02715.13
5.4.160.1880.01815.02
5.4.150.2400.02715.00
5.4.140.1810.02013.72
5.4.130.2000.02113.70
5.4.120.2030.02313.72
5.4.110.1970.02013.73
5.4.100.2080.01813.72
5.4.90.1900.02313.71
5.4.80.2400.01513.75
5.4.70.2300.02313.68
5.4.60.2290.01713.77
5.4.50.2380.02113.76
5.4.40.2070.02013.83
5.4.30.2320.02213.71
5.4.20.2070.02213.77
5.4.10.1910.02213.69
5.4.00.2020.02013.43
5.3.290.0950.02212.82
5.3.280.1890.02212.87
5.3.270.2050.02012.84
5.3.260.1890.02412.86
5.3.250.2280.02312.85
5.3.240.2040.02512.90
5.3.230.1930.02012.79
5.3.220.2070.02212.81
5.3.210.1950.02212.76
5.3.200.2170.01712.85
5.3.190.2280.02512.85
5.3.180.2350.02412.88
5.3.170.2450.02412.88
5.3.160.2200.02012.78
5.3.150.2280.02312.82
5.3.140.2130.02612.83
5.3.130.2020.02312.84
5.3.120.1930.02312.83
5.3.110.1920.02212.90
5.3.100.2230.02212.58
5.3.90.1950.02012.57
5.3.80.1600.02212.64
5.3.70.1970.01912.57
5.3.60.1970.02412.55
5.3.50.2020.01712.54
5.3.40.2050.02312.54
5.3.30.2000.02212.51
5.3.20.1790.01812.40
5.3.10.2230.01812.38
5.3.00.2170.02112.37
5.2.170.1730.02111.13
5.2.160.1760.01711.13
5.2.150.1640.01711.13
5.2.140.1510.01611.15
5.2.130.2100.01611.18
5.2.120.1760.01811.13
5.2.110.1950.01311.09
5.2.100.1780.02011.13
5.2.90.1970.01611.18
5.2.80.2110.01311.06
5.2.70.1780.01811.10
5.2.60.1830.01511.08
5.2.50.1950.01711.17
5.2.40.1620.01711.07
5.2.30.1650.01411.04
5.2.20.1430.01811.03
5.2.10.1550.01611.09
5.2.00.1380.01610.94
5.1.60.1450.01310.58
5.1.50.1620.01910.56
5.1.40.1630.01510.57
5.1.30.1550.01510.68
5.1.20.1480.01610.78
5.1.10.1620.01710.61
5.1.00.1650.01210.54
5.0.50.0870.0129.86
5.0.40.0720.0139.79
5.0.30.0730.0199.69
5.0.20.0610.0119.68
5.0.10.0930.0119.65
5.0.00.0950.0139.62
4.4.90.0930.0108.99
4.4.80.0750.0088.99
4.4.70.0780.0128.99
4.4.60.0680.0108.99
4.4.50.0620.0078.99
4.4.40.0620.0148.99
4.4.30.0880.0088.99
4.4.20.0730.0098.99
4.4.10.0830.0068.99
4.4.00.0750.0138.99
4.3.110.0730.0108.99
4.3.100.0620.0098.99
4.3.90.0830.0128.99
4.3.80.0920.0158.99
4.3.70.0880.0098.99
4.3.60.0930.0108.99
4.3.50.0880.0128.99
4.3.40.0900.0108.99
4.3.30.0520.0158.99
4.3.20.0560.0138.99
4.3.10.0530.0108.99
4.3.00.0500.0118.99

preferences:
46.36 ms | 401 KiB | 5 Q