3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oses = array( 'Windows 8' => 'windows nt 6.2', 'Windows 7' => 'windows nt 6.1', 'Windows Vista' => 'windows nt 6.0', 'Windows XP' => array('winnt5.1', 'windows nt 5.1'), 'Windows 2000' => array('winnt5.0', 'windows nt 5.0'), 'Windows NT' => array('winnt4.0', 'windows nt 4.0'), 'Windows 95' => array('win95', 'windows 95'), 'Windows 98' => array('win98', 'windows 98'), 'Windows 2003 Server' => 'windows nt 5.2', 'Windows CE' => 'windows ce', 'Windows ME' => array('windows 9x 4.90', 'windows me'), 'Windows Unatended' => 'windows', 'Mac OS X 10.0' => 'mac os x 10.0', 'Mac OS X 10.1' => 'mac os x 10.1', 'Mac OS X 10.2' => 'mac os x 10.2', 'Mac OS X 10.3' => 'mac os x 10.3', 'Mac OS X 10.4' => 'mac os x 10.4', 'Mac OS X 10.5' => 'mac os x 10.5', 'Mac OS X 10.6' => 'mac os x 10.6', 'Mac OS X 10.7' => 'mac os x 10.7', 'Mac OS X 10.8' => 'mac os x 10.8', 'Mac OS X 10.9' => 'mac os x 10.9', 'Mac OS X' => 'mac os x', 'Macintosh' => array('powerpc', 'macintosh'), 'iOS' => array('iphone', 'ipad', 'ipod'), 'Android 5.x' => 'android 5', 'Android 4.x' => 'android 4', 'Android 3.x' => 'android 3', 'Android 2.x' => 'android 2', 'Android 1.x' => 'android 1', 'Android' => 'android', 'Linux' => 'linux', 'Free BSD' => 'freebsd', 'Net BSD' => 'netbsd', 'Open BSD' => 'openbsd', 'Sun OS' => 'sunos', 'Symbian' => 'symbian', 'Tapatalk' => 'tapatalk', ); foreach ($oses as $os => $identificator) { if (is_array($identificator)) { foreach ($identificator as $ident) { if (preg_match("#$ident#i", $useragent)) { $browser['os'] = $os; break; } } } else { if (preg_match("#$identificator#i", $useragent)) { $browser['os'] = $os; break; } } } ?>

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.70.0160.00816.75
8.3.60.0080.00817.00
8.3.50.0100.00817.87
8.3.40.0120.00318.92
8.3.30.0100.01418.77
8.3.20.0070.00318.98
8.3.10.0000.00920.91
8.3.00.0000.00819.38
8.2.180.0120.00316.75
8.2.170.0100.00722.96
8.2.160.0140.00021.32
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00319.61
8.2.110.0090.00321.25
8.2.100.0120.00017.82
8.2.90.0040.00819.37
8.2.80.0030.00619.34
8.2.70.0000.00917.61
8.2.60.0000.00818.15
8.2.50.0030.00518.07
8.2.40.0000.00818.22
8.2.30.0040.00418.20
8.2.20.0040.00417.86
8.2.10.0050.00318.11
8.2.00.0070.00318.03
8.1.280.0080.00825.92
8.1.270.0060.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.60
8.1.230.0040.00821.14
8.1.220.0040.00417.91
8.1.210.0060.00319.07
8.1.200.0070.00417.47
8.1.190.0000.00917.66
8.1.180.0000.00818.10
8.1.170.0000.00818.87
8.1.160.0050.00318.97
8.1.150.0030.00518.84
8.1.140.0040.00417.66
8.1.130.0070.00017.83
8.1.120.0000.00817.65
8.1.110.0030.00617.67
8.1.100.0050.00317.70
8.1.90.0030.00517.58
8.1.80.0000.00817.56
8.1.70.0040.00417.63
8.1.60.0090.00017.68
8.1.50.0030.00717.57
8.1.40.0000.00817.77
8.1.30.0000.00917.73
8.1.20.0030.00617.88
8.1.10.0050.00317.77
8.1.00.0000.00817.61
8.0.300.0040.00420.16
8.0.290.0000.00816.88
8.0.280.0020.00518.48
8.0.270.0000.00817.21
8.0.260.0070.00016.94
8.0.250.0030.00517.12
8.0.240.0070.00317.23
8.0.230.0000.00817.23
8.0.220.0040.00417.23
8.0.210.0040.00417.07
8.0.200.0000.00717.14
8.0.190.0030.00617.09
8.0.180.0030.00617.21
8.0.170.0040.00417.19
8.0.160.0050.00317.23
8.0.150.0090.00017.13
8.0.140.0050.00517.14
8.0.130.0000.00613.60
8.0.120.0030.00617.11
8.0.110.0050.00317.14
8.0.100.0030.00617.18
8.0.90.0000.00817.20
8.0.80.0030.01417.18
8.0.70.0090.00017.27
8.0.60.0080.00017.20
8.0.50.0000.00916.96
8.0.30.0080.01417.07
8.0.20.0140.01117.22
8.0.10.0080.00017.26
8.0.00.0130.01117.06
7.4.330.0000.00513.34
7.4.320.0030.00516.87
7.4.300.0030.00316.88
7.4.290.0070.00016.85
7.4.280.0050.00316.89
7.4.270.0000.00916.90
7.4.260.0060.00013.57
7.4.250.0040.00416.69
7.4.240.0060.00316.78
7.4.230.0000.00716.88
7.4.220.0140.00716.71
7.4.210.0050.01216.79
7.4.200.0040.00416.76
7.4.190.0050.00316.84
7.4.160.0130.00416.72
7.4.150.0110.00816.91
7.4.140.0090.01116.87
7.4.130.0070.01216.83
7.4.120.0100.00916.84
7.4.110.0070.01316.64
7.4.100.0150.00616.61
7.4.90.0090.01216.79
7.4.80.0170.00319.39
7.4.70.0110.00816.70
7.4.60.0040.01416.63
7.4.50.0000.01016.56
7.4.40.0060.00616.73
7.4.30.0080.01616.68
7.4.00.0030.01315.19
7.3.330.0050.00413.43
7.3.320.0030.00313.41
7.3.310.0040.00416.61
7.3.300.0040.00316.62
7.3.290.0160.00616.59
7.3.280.0080.01116.63
7.3.270.0120.01216.70
7.3.260.0070.01116.74
7.3.250.0150.00816.57
7.3.240.0080.01116.80
7.3.230.0130.00616.60
7.3.210.0070.01116.64
7.3.200.0180.00716.54
7.3.190.0020.01716.70
7.3.180.0120.00616.71
7.3.170.0140.00516.77
7.3.160.0090.01316.68
7.3.120.0070.01114.93
7.3.110.0070.01415.17
7.3.100.0070.01115.32
7.3.90.0000.01715.26
7.3.80.0030.01415.11
7.3.70.0070.01015.09
7.3.60.0040.01214.90
7.3.50.0060.00615.18
7.3.40.0090.00915.18
7.3.30.0100.00614.98
7.3.20.0150.00317.02
7.3.10.0100.00617.00
7.3.00.0040.01216.72
7.2.330.0060.01216.77
7.2.320.0070.01416.85
7.2.310.0110.01416.83
7.2.300.0080.01516.79
7.2.290.0080.01216.80
7.2.250.0030.01315.25
7.2.240.0110.01115.46
7.2.230.0000.01415.11
7.2.220.0100.00615.47
7.2.210.0070.01115.11
7.2.200.0060.00915.45
7.2.190.0030.01415.21
7.2.180.0000.01814.98
7.2.170.0140.00714.98
7.2.160.0000.01715.27
7.2.150.0050.00517.00
7.2.140.0060.01017.13
7.2.130.0070.00717.16
7.2.120.0070.01017.20
7.2.110.0130.00016.96
7.2.100.0100.00717.14
7.2.90.0110.00317.05
7.2.80.0070.00417.12
7.2.70.0080.00817.15
7.2.60.0070.01117.15
7.2.50.0130.00617.20
7.2.40.0030.00617.20
7.2.30.0060.00917.02
7.2.20.0070.01017.32
7.2.10.0120.00417.14
7.2.00.0030.01218.34
7.1.330.0040.01216.07
7.1.320.0150.00316.22
7.1.310.0030.01415.88
7.1.300.0070.00716.16
7.1.290.0080.00415.99
7.1.280.0030.01015.95
7.1.270.0090.00916.12
7.1.260.0030.01216.18
7.1.250.0030.01016.10
7.1.240.0000.01516.10
7.1.230.0030.00915.92
7.1.220.0090.00616.05
7.1.210.0030.00916.18
7.1.200.0070.00416.13
7.1.190.0060.01015.99
7.1.180.0040.00815.82
7.1.170.0070.00716.05
7.1.160.0100.00316.17
7.1.150.0030.01315.89
7.1.140.0110.00415.90
7.1.130.0100.00715.89
7.1.120.0090.00615.76
7.1.110.0090.00616.13
7.1.100.0060.01016.29
7.1.90.0150.00315.79
7.1.80.0060.01016.05
7.1.70.0030.00816.62
7.1.60.0040.01417.81
7.1.50.0070.01216.65
7.1.40.0060.00915.85
7.1.30.0030.00715.77
7.1.20.0030.01016.00
7.1.10.0070.00716.16
7.1.00.0080.04119.18
7.0.330.0120.00315.61
7.0.320.0080.00815.75
7.0.310.0090.00915.41
7.0.300.0000.01415.79
7.0.290.0070.01115.19
7.0.280.0070.00715.81
7.0.270.0040.00815.43
7.0.260.0000.01015.81
7.0.250.0070.00715.64
7.0.240.0060.01015.73
7.0.230.0030.00615.57
7.0.220.0030.00915.68
7.0.210.0060.00615.56
7.0.200.0230.00315.25
7.0.190.0070.01015.62
7.0.180.0090.00315.52
7.0.170.0000.00915.93
7.0.160.0040.00815.57
7.0.150.0030.01315.70
7.0.140.0050.04018.72
7.0.130.0100.00315.75
7.0.120.0020.02918.88
7.0.110.0030.00615.57
7.0.100.0040.00715.77
7.0.90.0030.00615.64
7.0.80.0070.00715.68
7.0.70.0000.01515.80
7.0.60.0100.03817.80
7.0.50.0050.03016.88
7.0.40.0060.02316.85
7.0.30.0210.03817.03
7.0.20.0200.03717.11
7.0.10.0100.05017.06
7.0.00.0030.03416.97
5.6.400.0040.01114.66
5.6.390.0030.00914.19
5.6.380.0090.00614.48
5.6.370.0070.01114.24
5.6.360.0060.00914.45
5.6.350.0000.01514.23
5.6.340.0070.00714.52
5.6.330.0120.00014.36
5.6.320.0100.00714.69
5.6.310.0080.00514.39
5.6.300.0090.00614.33
5.6.290.0070.00714.40
5.6.280.0070.04017.73
5.6.270.0040.00714.54
5.6.260.0080.00414.36
5.6.250.0090.00614.29
5.6.240.0040.00414.35
5.6.230.0030.01014.32
5.6.220.0070.01114.51
5.6.210.0040.04717.58
5.6.200.0080.04016.25
5.6.190.0080.03317.49
5.6.180.0130.02817.51
5.6.170.0170.04217.56
5.6.160.0060.02217.52
5.6.150.0080.02016.45
5.6.140.0090.04016.20
5.6.130.0080.04316.29
5.6.120.0110.02417.62
5.6.110.0080.03617.64
5.6.100.0050.04417.74
5.6.90.0080.04617.66
5.6.80.0080.04217.35
5.6.70.0130.04517.36
5.6.60.0000.01414.19
5.6.50.0030.01014.50
5.6.40.0030.00714.26
5.6.30.0030.01214.39
5.6.20.0030.01014.32
5.6.10.0130.00314.24
5.6.00.0000.01014.19
5.5.380.0000.01114.20
5.5.370.0060.00914.43
5.5.360.0060.00314.55
5.5.350.0190.04217.22
5.5.340.0020.03216.20
5.5.330.0100.02517.43
5.5.320.0080.02917.28
5.5.310.0150.02717.26
5.5.300.0050.03016.22
5.5.290.0080.04016.15
5.5.280.0030.04317.58
5.5.270.0070.02317.60
5.5.260.0100.03717.52
5.5.250.0000.03917.28
5.5.240.0020.04417.29
5.5.230.0090.00614.38
5.5.220.0030.00714.46
5.5.210.0030.01314.21
5.5.200.0000.01614.32
5.5.190.0060.00614.30
5.5.180.0070.00314.00
5.5.170.0060.00614.26
5.5.160.0090.00314.32
5.5.150.0060.00614.37
5.5.140.0000.00914.16
5.5.130.0030.00714.33
5.5.120.0040.01114.13
5.5.110.0030.01014.13
5.5.100.0000.01014.36
5.5.90.0070.00314.34
5.5.80.0040.01114.28
5.5.70.0070.00414.44
5.5.60.0120.00414.41
5.5.50.0040.00814.07
5.5.40.0070.01014.15
5.5.30.0040.01014.35
5.5.20.0070.01014.08
5.5.10.0070.00714.42
5.5.00.0140.00314.11
5.4.450.0070.04215.33
5.4.440.0070.02515.36
5.4.430.0090.03215.36
5.4.420.0030.02915.34
5.4.410.0030.03815.25
5.4.400.0090.02715.15
5.4.390.0070.04015.05
5.4.380.0070.02515.02
5.4.370.0050.02515.20
5.4.360.0060.03715.18
5.4.350.0050.03115.20
5.4.340.0050.02715.17
5.4.330.0100.00311.20
5.4.320.0050.02215.19
5.4.310.0060.03115.20
5.4.300.0020.04015.16
5.4.290.0080.03215.18
5.4.280.0080.03315.18
5.4.270.0060.02515.18
5.4.260.0070.04015.00
5.4.250.0080.03315.00
5.4.240.0000.03515.00
5.4.230.0030.02715.10
5.4.220.0050.02315.14
5.4.210.0080.02215.21
5.4.200.0050.02815.19
5.4.190.0070.03615.14
5.4.180.0130.02015.17
5.4.170.0050.02014.99
5.4.160.0070.02715.14
5.4.150.0050.02515.11
5.4.140.0100.02313.83
5.4.130.0030.02213.76
5.4.120.0100.03413.75
5.4.110.0020.03113.81
5.4.100.0070.02313.76
5.4.90.0050.03213.76
5.4.80.0060.02513.76
5.4.70.0030.02813.76
5.4.60.0060.03413.75
5.4.50.0100.02013.76
5.4.40.0020.03613.76
5.4.30.0050.02713.73
5.4.20.0100.01813.76
5.4.10.0030.04113.82
5.4.00.0040.02513.45
5.3.290.0070.04012.93
5.3.280.0060.02412.86
5.3.270.0100.03212.90
5.3.260.0080.03912.88
5.3.250.0050.03412.88
5.3.240.0050.02312.83
5.3.230.0020.03512.83
5.3.220.0070.04012.87
5.3.210.0030.04612.86
5.3.200.0050.04012.95
5.3.190.0050.02412.87
5.3.180.0020.04312.88
5.3.170.0090.02012.90
5.3.160.0080.03512.81
5.3.150.0100.02512.84
5.3.140.0000.02712.86
5.3.130.0060.02312.84
5.3.120.0050.03312.86
5.3.110.0020.04612.86
5.3.100.0050.03112.53
5.3.90.0020.02712.61
5.3.80.0030.04312.54
5.3.70.0080.03512.62
5.3.60.0080.02312.59
5.3.50.0070.03912.57
5.3.40.0050.02012.57
5.3.30.0050.02012.55
5.3.20.0060.03612.38
5.3.10.0060.02812.41
5.3.00.0060.02812.35
5.2.170.0100.04711.11
5.2.160.0070.03311.07
5.2.150.0070.02711.16
5.2.140.0030.03011.32
5.2.130.0100.05711.01
5.2.120.0100.05711.08
5.2.110.0070.06310.99
5.2.100.0130.04010.99
5.2.90.0030.06311.04
5.2.80.0070.06011.29
5.2.70.0030.04311.29
5.2.60.0030.03010.96
5.2.50.0100.04310.90
5.2.40.0070.06011.18
5.2.30.0070.06310.91
5.2.20.0130.05311.07
5.2.10.0000.06710.89
5.2.00.0000.06710.70
5.1.60.0070.0509.98
5.1.50.0130.04710.02
5.1.40.0070.0479.98
5.1.30.0100.04710.25
5.1.20.0030.03310.43
5.1.10.0100.02310.00
5.1.00.0070.04710.09
5.0.50.0030.0208.56
5.0.40.0000.0278.48
5.0.30.0030.0578.48
5.0.20.0000.0308.48
5.0.10.0070.0378.48
5.0.00.0000.0538.48
4.4.90.0000.0378.48
4.4.80.0030.0138.48
4.4.70.0030.0338.48
4.4.60.0000.0338.48
4.4.50.0130.0238.48
4.4.40.0030.0578.48
4.4.30.0030.0178.48
4.4.20.0000.0238.48
4.4.10.0000.0178.48
4.4.00.0000.0278.48
4.3.110.0000.0378.48
4.3.100.0000.0408.48
4.3.90.0000.0378.48
4.3.80.0070.0238.48
4.3.70.0000.0338.48
4.3.60.0000.0238.48
4.3.50.0000.0378.48
4.3.40.0000.0508.48
4.3.30.0070.0138.48
4.3.20.0000.0378.48
4.3.10.0000.0408.48
4.3.00.0030.0378.48

preferences:
33.06 ms | 401 KiB | 5 Q