3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ua = 'Mozilla/5.0 (Linux; Android 4.0.1; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19'; $pattern = "/Android (\d).(\d)(?:.(\d))?/"; preg_match($pattern, $ua, $matches); $androidversion = array(0,0,0); if (sizeof($matches) == 0 ) { error_log("No Android version match");}if (sizeof($matches) == 1) { error_log("No major version");} if (sizeof($matches) >= 2) { $androidversion[0] = $matches[1];}if (sizeof($matches) >=3) { $androidversion[1] = $matches[2];}if (sizeof($matches) >= 4) { $androidversion[2] = $matches[3];}print_r($androidversion);

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.00616.63
8.3.50.0100.00823.03
8.3.40.0110.00418.79
8.3.30.0110.00419.05
8.3.20.0090.00020.13
8.3.10.0080.00023.65
8.3.00.0040.00419.51
8.2.180.0100.00716.63
8.2.170.0100.00719.04
8.2.160.0180.00022.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00321.07
8.2.110.0100.00020.43
8.2.100.0060.00618.09
8.2.90.0040.00419.17
8.2.80.0030.00617.97
8.2.70.0000.00917.75
8.2.60.0030.00518.03
8.2.50.0000.00918.07
8.2.40.0040.00418.09
8.2.30.0040.00418.18
8.2.20.0090.00017.92
8.2.10.0000.00818.14
8.2.00.0060.00317.82
8.1.280.0120.00925.92
8.1.270.0080.00023.92
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00023.84
8.1.230.0070.00419.11
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0110.00017.60
8.1.190.0050.00517.50
8.1.180.0000.00818.10
8.1.170.0090.00018.95
8.1.160.0040.00422.04
8.1.150.0040.00418.95
8.1.140.0000.00717.63
8.1.130.0030.00517.86
8.1.120.0040.00417.56
8.1.110.0040.00417.54
8.1.100.0050.00317.61
8.1.90.0070.00017.69
8.1.80.0040.00417.64
8.1.70.0070.00017.66
8.1.60.0040.00417.63
8.1.50.0030.00517.67
8.1.40.0060.00317.70
8.1.30.0040.00417.73
8.1.20.0030.00617.84
8.1.10.0000.00717.71
8.1.00.0040.00417.69
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.48
8.0.270.0050.00217.24
8.0.260.0030.00317.24
8.0.250.0080.00017.07
8.0.240.0040.00417.02
8.0.230.0030.00317.05
8.0.220.0040.00416.97
8.0.210.0000.00717.06
8.0.200.0000.00716.93
8.0.190.0000.00717.04
8.0.180.0030.00517.05
8.0.170.0040.00417.05
8.0.160.0000.00717.05
8.0.150.0040.00417.00
8.0.140.0050.00317.09
8.0.130.0060.00013.46
8.0.120.0080.00016.95
8.0.110.0050.00317.08
8.0.100.0000.00717.13
8.0.90.0000.00716.97
8.0.80.0060.01017.05
8.0.70.0070.00017.12
8.0.60.0030.00517.07
8.0.50.0040.00417.14
8.0.30.0090.01217.12
8.0.20.0110.01217.44
8.0.10.0020.00517.09
8.0.00.0100.01016.81
7.4.330.0000.00515.03
7.4.320.0030.00316.84
7.4.300.0000.00616.87
7.4.290.0000.00716.84
7.4.280.0030.00616.77
7.4.270.0030.00316.88
7.4.260.0030.00316.77
7.4.250.0070.00016.70
7.4.240.0040.00316.80
7.4.230.0000.00716.86
7.4.220.0090.00916.93
7.4.210.0040.01116.85
7.4.200.0000.00716.91
7.4.160.0080.00816.55
7.4.150.0080.01517.40
7.4.140.0120.00517.86
7.4.130.0080.00916.68
7.4.120.0110.00616.77
7.4.110.0100.00716.80
7.4.100.0110.00616.82
7.4.90.0130.00416.63
7.4.80.0170.00719.39
7.4.70.0130.00716.58
7.4.60.0140.00316.77
7.4.50.0040.00416.73
7.4.40.0070.01316.65
7.4.30.0100.00716.61
7.4.00.0070.00715.03
7.3.330.0050.00013.14
7.3.320.0030.00313.34
7.3.310.0000.00716.54
7.3.300.0070.00016.25
7.3.290.0040.01516.59
7.3.280.0110.00716.43
7.3.270.0150.00417.40
7.3.260.0100.00716.79
7.3.250.0120.00716.59
7.3.240.0080.00816.66
7.3.230.0100.00716.74
7.3.210.0130.01116.62
7.3.200.0190.00019.39
7.3.190.0070.01616.77
7.3.180.0160.00016.72
7.3.170.0040.01616.60
7.3.160.0150.00016.37
7.2.330.0070.01416.86
7.2.320.0070.01016.75
7.2.310.0120.00916.72
7.2.300.0100.00716.70
7.2.290.0130.00316.95
7.2.00.0030.01019.51
7.1.100.0080.00318.24
7.1.70.0000.00917.07
7.1.60.0120.00919.46
7.1.50.0100.01616.89
7.1.00.0030.07322.55
7.0.200.0000.00716.84
7.0.140.0000.07322.21
7.0.60.0070.08319.85
7.0.50.0070.06317.95
7.0.40.0100.08720.11
7.0.30.0600.06320.35
7.0.20.0230.04720.25
7.0.10.0070.07320.10
7.0.00.0030.05720.09
5.6.280.0030.07321.09
5.6.210.0070.08720.72
5.6.200.0200.07018.25
5.6.190.0100.03720.55
5.6.180.0270.06720.63
5.6.170.0300.05720.50
5.6.160.0070.07320.71
5.6.150.0130.07318.19
5.6.140.0300.03318.19
5.6.130.0130.07718.17
5.6.120.0100.08021.09
5.6.110.0170.07721.01
5.6.100.0030.08720.99
5.6.90.0000.04321.03
5.6.80.0070.08020.48
5.5.350.0030.04020.32
5.5.340.0100.04318.08
5.5.330.0130.07720.40
5.5.320.0100.07320.30
5.5.310.0330.07320.41
5.5.300.0130.07317.95
5.5.290.0200.07017.98
5.5.280.0000.09020.64
5.5.270.0100.05720.75
5.5.260.0100.06320.76
5.5.250.0000.04320.76
5.5.240.0370.07020.07
5.4.450.0270.05019.56
5.4.440.0530.04719.39
5.4.430.0100.04019.52
5.4.420.0400.03319.45
5.4.410.0170.04019.38
5.4.400.0200.03319.22
5.4.390.0030.05019.14
5.4.380.0530.05318.61
5.4.370.0370.07318.57
5.4.360.0530.06018.56
5.4.350.0570.07018.57
5.4.340.0470.07318.68
5.4.320.0050.03612.48
5.4.310.0040.04512.48
5.4.300.0080.03712.49
5.4.290.0080.03912.48
5.4.280.0070.03912.38
5.4.270.0060.03612.38
5.4.260.0050.03712.38
5.4.250.0040.03812.38
5.4.240.0040.03712.38
5.4.230.0080.03412.37
5.4.220.0070.03412.37
5.4.210.0040.03612.37
5.4.200.0040.03812.37
5.4.190.0040.03712.36
5.4.180.0030.03912.36
5.4.170.0040.03712.38
5.4.160.0050.03612.37
5.4.150.0050.03612.37
5.4.140.0030.03912.05
5.4.130.0030.04012.04
5.4.120.0060.03812.00
5.4.110.0050.03512.00
5.4.100.0070.04012.00
5.4.90.0070.04812.00
5.4.80.0090.03311.99
5.4.70.0080.03511.99
5.4.60.0050.03611.99
5.4.50.0050.03611.99
5.4.40.0050.03611.98
5.4.30.0040.03811.98
5.4.20.0040.03711.98
5.4.10.0070.03311.98
5.4.00.0060.03511.47
5.3.290.0030.04112.80
5.3.280.0110.03612.71
5.3.270.0060.04112.72
5.3.260.0060.03812.72
5.3.250.0070.03612.72
5.3.240.0030.03912.72
5.3.230.0090.04012.70
5.3.220.0030.03912.68
5.3.210.0060.03812.68
5.3.200.0070.03512.68
5.3.190.0060.03712.67
5.3.180.0060.03612.67
5.3.170.0090.03612.67
5.3.160.0070.03812.68
5.3.150.0090.03412.67
5.3.140.0080.03812.66
5.3.130.0100.03712.66
5.3.120.0110.03112.66
5.3.110.0040.04412.66
5.3.100.0060.03612.12
5.3.90.0050.03512.10
5.3.80.0040.03712.09
5.3.70.0060.03612.09
5.3.60.0070.03512.08
5.3.50.0050.03912.02
5.3.40.0050.03712.03
5.3.30.0070.03311.98
5.3.20.0060.03711.77
5.3.10.0050.04011.73
5.3.00.0070.03411.71
5.2.170.0060.0289.22
5.2.160.0040.0319.22
5.2.150.0080.0359.21
5.2.140.0040.0309.22
5.2.130.0040.0389.18
5.2.120.0020.0309.18
5.2.110.0070.0329.19
5.2.100.0040.0289.18
5.2.90.0070.0269.18
5.2.80.0080.0269.17
5.2.70.0030.0359.17
5.2.60.0060.0279.13
5.2.50.0050.0359.10
5.2.40.0060.0279.08
5.2.30.0030.0319.05
5.2.20.0060.0259.04
5.2.10.0080.0258.95
5.2.00.0050.0358.80
5.1.60.0040.0238.08
5.1.50.0070.0288.08
5.1.40.0040.0248.05
5.1.30.0030.0278.40
5.1.20.0060.0248.42
5.1.10.0040.0258.15
5.1.00.0030.0258.15
5.0.50.0030.0216.64
5.0.40.0030.0216.50
5.0.30.0050.0296.30
5.0.20.0030.0196.29
5.0.10.0030.0206.26
5.0.00.0050.0296.26
4.4.90.0010.0164.78
4.4.80.0020.0164.75
4.4.70.0010.0174.75
4.4.60.0030.0154.76
4.4.50.0020.0154.77
4.4.40.0030.0244.71
4.4.30.0050.0144.76
4.4.20.0020.0174.84
4.4.10.0020.0224.84
4.4.00.0030.0294.76
4.3.110.0040.0144.66
4.3.100.0040.0264.66
4.3.90.0040.0214.63
4.3.80.0010.0254.59
4.3.70.0010.0274.63
4.3.60.0020.0214.63
4.3.50.0030.0214.63
4.3.40.0020.0294.54
4.3.30.0030.0203.30
4.3.20.0020.0203.28
4.3.10.0030.0143.24
4.3.00.0000.01714.87

preferences:
39.15 ms | 401 KiB | 5 Q