3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is_wptouch_user_agent() { // This needs to match your WP Touch list!! $useragents = array( "iphone", // Apple iPhone "ipod", // Apple iPod touch "aspen", // iPhone simulator "dream", // Pre 1.5 Android "android", // 1.5+ Android "cupcake", // 1.5+ Android "blackberry9500", // Storm "blackberry9530", // Storm "opera mini", // Experimental "webos", // Experimental "incognito", // Other iPhone browser "webmate" // Other iPhone browser ); $browser_agent = "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16"; $is_wptouch_ua = false; foreach ( $useragents as $useragent ) { if ( preg_match( "#$useragent#i", $browser_agent ) ) { $is_wptouch_ua = true; break; } } return($is_wptouch_ua); } global $batcache; $batcache->unique['wptouch'] = is_wptouch_user_agent(); if($batcache->unique['wptouch']){ echo 'True'; } else { echo '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.40.0110.00418.93
8.3.30.0150.00319.04
8.3.20.0000.00820.23
8.3.10.0030.00622.13
8.3.00.0000.00822.40
8.2.170.0080.00822.96
8.2.160.0100.00321.14
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0080.00017.75
8.2.110.0100.00021.92
8.2.100.0090.00317.91
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0080.00017.85
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0080.00018.16
8.2.30.0050.00217.95
8.2.20.0040.00417.76
8.2.10.0050.00317.95
8.2.00.0080.00017.95
8.1.270.0060.00323.96
8.1.260.0040.00426.35
8.1.250.0140.00028.09
8.1.240.0030.00623.79
8.1.230.0080.00419.18
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0030.00517.30
8.1.180.0070.00418.10
8.1.170.0080.00018.78
8.1.160.0040.00422.07
8.1.150.0030.00618.72
8.1.140.0050.00217.65
8.1.130.0040.00417.80
8.1.120.0040.00417.61
8.1.110.0050.00317.67
8.1.100.0040.00417.52
8.1.90.0040.00417.64
8.1.80.0030.00617.54
8.1.70.0030.00317.59
8.1.60.0090.00017.71
8.1.50.0000.00717.57
8.1.40.0040.00417.68
8.1.30.0040.00417.85
8.1.20.0060.00317.82
8.1.10.0000.00817.68
8.1.00.0050.00317.66
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0030.00318.46
8.0.270.0030.00317.20
8.0.260.0000.00817.03
8.0.250.0030.00317.14
8.0.240.0040.00417.14
8.0.230.0000.00717.18
8.0.220.0030.00317.16
8.0.210.0070.00017.09
8.0.200.0050.00217.15
8.0.190.0040.00417.09
8.0.180.0050.00317.08
8.0.170.0040.00417.13
8.0.160.0030.00516.99
8.0.150.0030.00617.06
8.0.140.0000.00717.00
8.0.130.0030.00313.55
8.0.120.0050.00217.08
8.0.110.0040.00417.18
8.0.100.0040.00417.07
8.0.90.0050.00216.98
8.0.80.0060.01117.10
8.0.70.0000.00817.18
8.0.60.0000.00716.99
8.0.50.0030.00517.13
8.0.30.0140.00517.38
8.0.20.0140.00717.40
8.0.10.0050.00217.12
8.0.00.0090.00816.82
7.4.330.0000.00515.00
7.4.320.0000.00616.83
7.4.300.0070.00016.72
7.4.290.0040.00416.81
7.4.280.0000.00816.73
7.4.270.0040.00416.73
7.4.260.0040.00416.78
7.4.250.0000.00716.71
7.4.240.0040.00416.74
7.4.230.0030.00316.83
7.4.220.0070.01016.84
7.4.210.0070.00716.74
7.4.200.0000.00716.79
7.4.190.0030.00316.79
7.4.160.0070.01116.93
7.4.150.0100.00717.40
7.4.140.0060.01217.86
7.4.130.0130.00716.81
7.4.120.0080.01116.80
7.4.110.0070.01516.96
7.4.100.0080.00816.71
7.4.90.0130.00616.69
7.4.80.0030.01319.39
7.4.70.0120.00616.89
7.4.60.0110.00516.64
7.4.50.0000.00816.65
7.4.40.0090.00922.77
7.4.30.0120.00316.71
7.4.10.0060.01315.20
7.4.00.0050.01115.29
7.3.330.0030.00213.29
7.3.320.0060.00313.34
7.3.310.0040.00416.34
7.3.300.0070.00016.38
7.3.290.0040.01116.48
7.3.280.0100.00716.49
7.3.270.0000.02117.40
7.3.260.0090.01516.54
7.3.250.0100.00816.60
7.3.240.0060.01016.88
7.3.230.0040.01416.57
7.3.210.0090.00916.69
7.3.200.0100.01019.39
7.3.190.0030.01916.84
7.3.180.0090.00916.58
7.3.170.0120.00916.54
7.3.160.0060.00916.56
7.3.130.0100.00715.12
7.3.120.0060.01214.98
7.3.110.0090.00814.96
7.3.100.0100.00314.93
7.3.90.0090.00514.93
7.3.80.0080.00814.83
7.3.70.0060.00614.93
7.3.60.0060.00715.07
7.3.50.0070.00714.83
7.3.40.0080.00514.86
7.3.30.0030.01015.04
7.3.20.0040.01116.93
7.3.10.0020.01316.91
7.3.00.0050.00916.91
7.2.330.0070.01016.79
7.2.320.0110.00816.95
7.2.310.0000.01717.01
7.2.300.0100.00717.00
7.2.290.0030.01316.86
7.2.260.0060.01315.26
7.2.250.0030.01315.34
7.2.240.0150.00315.06
7.2.230.0080.00615.21
7.2.220.0020.01315.14
7.2.210.0010.01015.43
7.2.200.0070.00615.18
7.2.190.0050.00915.41
7.2.180.0050.01015.27
7.2.170.0050.00815.25
7.2.160.0040.00815.34
7.2.150.0050.01017.00
7.2.140.0070.00717.11
7.2.130.0030.00717.07
7.2.120.0040.00717.19
7.2.110.0030.01417.10
7.2.100.0030.00917.07
7.2.90.0070.00817.11
7.2.80.0100.00417.01
7.2.70.0070.00717.21
7.2.60.0080.00617.05
7.2.50.0100.00717.20
7.2.40.0030.01017.21
7.2.30.0100.00717.11
7.2.20.0030.01317.27
7.2.10.0020.01117.12
7.2.00.0060.00818.01
7.1.330.0060.00816.10
7.1.320.0060.00816.10
7.1.310.0050.00816.14
7.1.300.0060.00615.94
7.1.290.0050.01015.89
7.1.280.0080.00216.02
7.1.270.0040.01115.69
7.1.260.0020.01216.11
7.1.250.0050.00915.86
7.1.240.0060.00616.06
7.1.230.0050.00715.99
7.1.220.0040.00916.01
7.1.210.0050.01216.00
7.1.200.0060.00815.98
7.1.190.0100.00315.91
7.1.180.0080.00515.90
7.1.170.0080.00515.99
7.1.160.0080.00515.86
7.1.150.0050.00816.08
7.1.140.0070.01015.95
7.1.130.0030.00515.93
7.1.120.0060.00616.06
7.1.110.0020.01115.82
7.1.100.0080.00716.82
7.1.90.0070.00815.80
7.1.80.0000.01415.96
7.1.70.0060.00316.51
7.1.60.0070.01017.06
7.1.50.0060.01116.38
7.1.40.0060.00816.08
7.1.30.0030.00715.81
7.1.20.0070.00515.89
7.1.10.0020.00815.90
7.1.00.0090.02818.06
7.0.330.0070.00515.72
7.0.320.0020.01215.54
7.0.310.0050.01015.48
7.0.300.0050.01015.61
7.0.290.0000.01315.37
7.0.280.0050.00815.42
7.0.270.0030.01015.47
7.0.260.0060.00615.60
7.0.250.0050.00715.58
7.0.240.0080.00415.71
7.0.230.0050.00715.61
7.0.220.0070.00715.59
7.0.210.0060.00515.66
7.0.200.0070.00416.02
7.0.190.0030.00915.59
7.0.180.0110.00215.63
7.0.170.0030.00815.49
7.0.160.0050.00715.58
7.0.150.0050.00715.51
7.0.140.0050.03017.74
7.0.130.0040.01015.67
7.0.120.0030.01315.76
7.0.110.0020.01015.63
7.0.100.0030.00815.37
7.0.90.0030.00615.50
7.0.80.0050.00815.55
7.0.70.0000.01315.41
7.0.60.0140.02417.06
7.0.50.0030.03216.31
7.0.40.0050.02015.77
7.0.30.0170.02915.89
7.0.20.0110.02115.80
7.0.10.0170.02915.77
7.0.00.0080.01615.80
5.6.400.0040.00714.78
5.6.390.0060.00614.59
5.6.380.0060.00914.75
5.6.370.0050.00814.54
5.6.360.0020.00814.59
5.6.350.0040.00914.54
5.6.340.0050.01014.42
5.6.330.0030.01014.72
5.6.320.0070.00714.58
5.6.310.0010.01014.42
5.6.300.0060.00614.49
5.6.290.0050.00814.52
5.6.280.0030.03216.65
5.6.270.0000.01514.54
5.6.260.0060.00614.38
5.6.250.0080.00514.43
5.6.240.0050.00914.35
5.6.230.0070.00714.42
5.6.220.0040.00714.61
5.6.210.0050.03416.63
5.6.200.0060.01715.82
5.6.190.0070.02216.55
5.6.180.0050.01816.42
5.6.170.0120.02016.58
5.6.160.0080.01816.58
5.6.150.0070.02215.79
5.6.140.0030.02015.69
5.6.130.0060.02715.74
5.6.120.0090.01916.75
5.6.110.0080.03116.71
5.6.100.0110.02716.61
5.6.90.0060.03216.74
5.6.80.0030.03416.43
5.6.70.0090.00514.43
5.6.60.0020.01114.39
5.6.50.0030.00914.50
5.6.40.0050.00614.31
5.6.30.0030.01314.23
5.6.20.0020.01314.43
5.6.10.0080.00714.39
5.6.00.0050.00914.29
5.5.380.0080.00814.29
5.5.370.0050.00514.43
5.5.360.0060.00414.59
5.5.350.0030.03316.33
5.5.340.0050.01815.65
5.5.330.0080.03016.42
5.5.320.0220.03316.17
5.5.310.0100.02816.42
5.5.300.0060.02115.61
5.5.290.0070.02215.72
5.5.280.0070.02916.52
5.5.270.0050.02216.62
5.5.260.0080.03216.51
5.5.250.0080.02716.47
5.5.240.0080.01616.26
5.5.230.0030.01014.30
5.5.220.0030.01014.29
5.5.210.0040.00814.41
5.5.200.0120.00314.43
5.5.190.0050.00814.34
5.5.180.0070.00714.10
5.5.170.0070.00714.31
5.5.160.0030.01114.43
5.5.150.0030.00914.22
5.5.140.0080.00514.31
5.5.130.0080.00714.11
5.5.120.0110.00514.08
5.5.110.0060.00614.31
5.5.100.0020.01214.28
5.5.90.0080.00514.34
5.5.80.0020.01214.21
5.5.70.0070.00714.24
5.5.60.0050.00814.31
5.5.50.0080.00514.34
5.5.40.0060.00414.23
5.5.30.0050.01114.13
5.5.20.0040.01114.29
5.5.10.0050.01014.36
5.5.00.0060.00514.14
5.4.450.0100.01814.88
5.4.440.0120.02014.81
5.4.430.0150.02714.73
5.4.420.0140.02214.73
5.4.410.0120.02014.59
5.4.400.0130.01614.62
5.4.390.0110.01714.58
5.4.380.0120.01414.53
5.4.370.0110.01914.64
5.4.360.0120.02714.70
5.4.350.0090.01814.54
5.4.340.0170.01714.56
5.4.330.0060.00312.29
5.4.320.0120.02914.57
5.4.310.0120.01414.59
5.4.300.0160.02514.68
5.4.290.0140.02514.66
5.4.280.0090.01814.67
5.4.270.0090.01914.58
5.4.260.0130.01814.54
5.4.250.0150.02814.67
5.4.240.0100.02114.67
5.4.230.0100.02614.57
5.4.220.0090.01714.74
5.4.210.0100.01414.59
5.4.200.0100.01514.59
5.4.190.0080.01814.59
5.4.180.0090.01914.69
5.4.170.0100.01614.58
5.4.160.0100.01514.52
5.4.150.0120.01614.67
5.4.140.0070.01913.77
5.4.130.0060.01813.81
5.4.120.0070.01513.79
5.4.110.0060.01913.65
5.4.100.0090.01513.70
5.4.90.0090.01713.78
5.4.80.0090.01613.65
5.4.70.0100.01313.66
5.4.60.0130.01313.79
5.4.50.0140.01113.81
5.4.40.0130.01413.68
5.4.30.0090.01513.71
5.4.20.0080.01613.65
5.4.10.0100.01313.71
5.4.00.0100.01513.59
5.3.290.0150.01712.94
5.3.280.0110.02012.90
5.3.270.0160.01112.92
5.3.260.0080.01712.94
5.3.250.0110.01712.99
5.3.240.0100.01712.91
5.3.230.0080.01912.90
5.3.220.0060.01812.93
5.3.210.0120.01412.91
5.3.200.0090.01612.88
5.3.190.0070.01912.94
5.3.180.0110.01312.97
5.3.170.0100.01312.98
5.3.160.0080.01512.91
5.3.150.0090.01512.97
5.3.140.0110.01612.89
5.3.130.0040.01912.97
5.3.120.0100.01212.94
5.3.110.0100.01312.90
5.3.100.0100.02012.74
5.3.90.0050.02012.80
5.3.80.0090.01812.70
5.3.70.0060.01912.76
5.3.60.0130.01712.68
5.3.50.0080.01612.67
5.3.40.0100.01512.67
5.3.30.0090.01412.68
5.3.20.0120.01812.60
5.3.10.0060.01812.64
5.3.00.0110.02412.59
5.2.170.0170.02711.36
5.2.160.0130.03711.36
5.2.150.0100.03311.36
5.2.140.0200.05711.36
5.2.130.0230.05711.36
5.2.120.0170.02711.36
5.2.110.0170.05311.36
5.2.100.0170.05311.36
5.2.90.0200.05311.36
5.2.80.0230.05711.36
5.2.70.0230.03311.36
5.2.60.0300.05711.36
5.2.50.0270.04711.36
5.2.40.0200.03311.36
5.2.30.0200.06011.36
5.2.20.0130.05711.36
5.2.10.0170.06011.36
5.2.00.0200.05011.36
5.1.60.0270.03311.36
5.1.50.0170.03311.36
5.1.40.0200.02711.36
5.1.30.0270.04311.36
5.1.20.0170.04011.36
5.1.10.0200.04711.36
5.1.00.0200.04011.36
5.0.50.0130.02311.36
5.0.40.0100.02311.36
5.0.30.0130.06011.36
5.0.20.0100.03311.36
5.0.10.0130.04011.36
5.0.00.0130.05311.36
4.4.90.0100.01711.36
4.4.80.0100.02011.36
4.4.70.0130.02311.36
4.4.60.0070.02311.36
4.4.50.0130.01311.36
4.4.40.0070.05311.36
4.4.30.0070.02311.36
4.4.20.0200.02011.36
4.4.10.0100.03011.36
4.4.00.0030.05711.36
4.3.110.0070.02311.36
4.3.100.0100.03311.36
4.3.90.0070.03011.36
4.3.80.0170.04711.36
4.3.70.0130.02711.36
4.3.60.0130.02711.36
4.3.50.0100.03311.36
4.3.40.0070.03711.36
4.3.30.0070.01311.36
4.3.20.0070.01311.36
4.3.10.0030.03311.36
4.3.00.0030.02711.36

preferences:
47.59 ms | 400 KiB | 5 Q