3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 2011 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Author: Johannes Schlueter <johannes@php.net> | +----------------------------------------------------------------------+ */ ini_set('display_errors', 1); ini_set('output_buffering', 0); error_reporting(-1); if (!ini_get('safe_mode')) { set_time_limit(1); } echo "Testing float behaviour. If this script hangs or terminates with an error ". "message due to maximum execution time limit being reached, you should ". "update your PHP installation asap!\n"; echo "For more information refer to <http://bugs.php.net/53632>.\n"; $d = (double)"2.2250738585072011e-308"; echo "Your system seems to be safe.\n"; ?>

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.0070.01418.37
8.3.50.0110.00721.99
8.3.40.0120.00318.41
8.3.30.0090.00618.76
8.3.20.0040.00418.52
8.3.10.0040.00420.97
8.3.00.0070.00021.53
8.2.180.0140.00716.75
8.2.170.0070.01122.96
8.2.160.0100.00320.53
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0050.00221.07
8.2.110.0060.00320.50
8.2.100.0120.00017.84
8.2.90.0000.00819.28
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0000.00918.34
8.2.30.0070.00019.56
8.2.20.0000.00817.62
8.2.10.0040.00417.69
8.2.00.0050.00317.69
8.1.280.0130.00625.92
8.1.270.0040.00423.99
8.1.260.0070.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00322.47
8.1.230.0040.00720.84
8.1.220.0030.00518.77
8.1.210.0000.00818.85
8.1.200.0030.00617.35
8.1.190.0040.00417.52
8.1.180.0040.00418.10
8.1.170.0000.00918.45
8.1.160.0000.00718.86
8.1.150.0040.00418.62
8.1.140.0000.00817.48
8.1.130.0000.00717.90
8.1.120.0030.00517.52
8.1.110.0070.00017.32
8.1.100.0040.00417.41
8.1.90.0030.00417.51
8.1.80.0040.00417.51
8.1.70.0040.00417.46
8.1.60.0030.00617.50
8.1.50.0040.00417.46
8.1.40.0050.00317.57
8.1.30.0040.00417.56
8.1.20.0040.00417.64
8.1.10.0040.00417.56
8.1.00.0000.00817.39
8.0.300.0030.00620.05
8.0.290.0040.00417.18
8.0.280.0030.00318.48
8.0.270.0070.00017.30
8.0.260.0040.00416.82
8.0.250.0040.00417.03
8.0.240.0050.00317.01
8.0.230.0080.00017.04
8.0.220.0040.00416.98
8.0.210.0070.00016.98
8.0.200.0000.00617.08
8.0.190.0070.00017.00
8.0.180.0050.00316.95
8.0.170.0030.00517.01
8.0.160.0050.00316.94
8.0.150.0040.00416.86
8.0.140.0040.00416.95
8.0.130.0060.00013.44
8.0.120.0000.00816.92
8.0.110.0070.00016.97
8.0.100.0000.00916.93
8.0.90.0070.00017.01
8.0.80.0040.01216.96
8.0.70.0040.00416.80
8.0.60.0040.00417.04
8.0.50.0040.00416.95
8.0.30.0130.00617.04
8.0.20.0110.00917.43
8.0.10.0000.00717.16
8.0.00.0090.00916.87
7.4.330.0000.00616.81
7.4.320.0000.00616.52
7.4.300.0060.00016.44
7.4.290.0070.00016.59
7.4.280.0030.00316.47
7.4.270.0030.00316.51
7.4.260.0030.00313.24
7.4.250.0030.00616.55
7.4.240.0000.00716.60
7.4.230.0040.00416.70
7.4.220.0100.01316.46
7.4.210.0070.00916.54
7.4.200.0020.00516.49
7.4.190.0000.00716.69
7.4.160.0070.01016.34
7.4.150.0100.00717.40
7.4.140.0040.01317.86
7.4.130.0100.01116.60
7.4.120.0090.00816.52
7.4.110.0060.01016.38
7.4.100.0100.00916.55
7.4.90.0170.00716.49
7.4.80.0060.01119.39
7.4.70.0060.01316.45
7.4.60.0110.00916.56
7.4.50.0050.00316.38
7.4.40.0000.01222.77
7.4.30.0090.00916.41
7.4.00.0080.00514.88
7.3.330.0050.00012.95
7.3.320.0000.00512.99
7.3.310.0000.00716.07
7.3.300.0040.00416.06
7.3.290.0030.01116.23
7.3.280.0120.00516.20
7.3.270.0070.01017.40
7.3.260.0090.01218.24
7.3.250.0070.01116.33
7.3.240.0100.01016.38
7.3.230.0100.00716.44
7.3.210.0070.01016.26
7.3.200.0100.00616.35
7.3.190.0090.00916.27
7.3.180.0060.00916.47
7.3.170.0090.00916.28
7.3.160.0030.01316.22
7.3.120.0070.01014.91
7.3.110.0130.00314.93
7.3.100.0030.01215.03
7.3.90.0070.01314.47
7.3.80.0160.00014.77
7.3.70.0000.01314.77
7.3.60.0030.01314.60
7.3.50.0040.00814.35
7.3.40.0000.01614.73
7.3.30.0030.00614.62
7.3.20.0030.01016.70
7.3.10.0080.01116.25
7.3.00.0060.01416.22
7.2.330.0110.00616.59
7.2.320.0070.01016.63
7.2.310.0060.01516.36
7.2.300.0110.00816.50
7.2.290.0090.01216.62
7.2.250.0070.01114.77
7.2.240.0000.01915.12
7.2.230.0040.01214.85
7.2.220.0090.00614.73
7.2.210.0030.01314.93
7.2.200.0110.00615.02
7.2.190.0030.01014.99
7.2.180.0080.00815.18
7.2.170.0000.01715.07
7.2.130.0120.00816.13
7.2.120.0140.00616.49
7.2.110.0110.00716.40
7.2.100.0130.00916.04
7.2.90.0120.00416.04
7.2.80.0140.00716.15
7.2.70.0280.00916.84
7.2.60.0150.00716.59
7.2.50.0110.01115.77
7.2.40.0070.01416.36
7.2.30.0240.00316.32
7.2.20.0150.00616.02
7.2.10.0140.00816.24
7.2.00.0160.00316.64
7.1.330.0000.01415.66
7.1.320.0030.00915.83
7.1.310.0030.01315.88
7.1.300.0040.01215.36
7.1.290.0000.01515.30
7.1.280.0000.01315.68
7.1.270.0060.00315.73
7.1.260.0080.00415.78
7.1.250.0160.00215.27
7.1.70.0000.00816.86
7.1.60.0130.01319.17
7.1.50.0030.01016.64
7.1.00.0000.04722.35
7.0.200.0000.00816.52
7.0.140.0030.07021.95
7.0.70.0030.04321.66
7.0.60.0000.05321.73
7.0.50.0000.08022.11
7.0.40.0100.07020.14
7.0.30.0000.08720.01
7.0.20.0000.07720.17
7.0.10.0000.05719.99
7.0.00.0000.09020.18
5.6.280.0030.07321.03
5.6.220.0030.06020.67
5.6.210.0030.06320.58
5.6.200.0070.07321.12
5.6.190.0030.08721.03
5.6.180.0000.08721.10
5.6.170.0000.09321.17
5.6.160.0030.08021.10
5.6.150.0000.07021.08
5.6.140.0070.08321.07
5.6.130.0000.08021.13
5.6.120.0100.08321.03
5.6.110.0030.09021.01
5.6.100.0130.07020.92
5.6.90.0030.08720.98
5.6.80.0070.05720.39
5.6.70.0070.07320.39
5.6.60.0070.08020.54
5.6.50.0030.06720.52
5.6.40.0100.08020.52
5.6.30.0030.07720.46
5.6.20.0000.08720.35
5.6.10.0000.08020.52
5.6.00.0070.04020.36
5.5.360.0030.05320.41
5.5.350.0030.07020.46
5.5.340.0030.08320.87
5.5.330.0070.06720.91
5.5.320.0100.05320.83
5.5.310.0130.08020.77
5.5.300.0030.09020.83
5.5.290.0030.07320.92
5.5.280.0030.09020.88
5.5.270.0070.05320.75
5.5.260.0130.07020.81
5.5.250.0070.08020.42
5.5.240.0030.08020.18
5.5.230.0100.07720.12
5.5.220.0030.08020.01
5.5.210.0070.07320.13
5.5.200.0130.03020.11
5.5.190.0000.08320.28
5.5.180.0030.08020.25
5.5.160.0000.04720.09
5.5.150.0130.07020.20
5.5.140.0100.07320.20
5.5.130.0070.08319.98
5.5.120.0070.06320.21
5.5.110.0030.07320.21
5.5.100.0030.08320.05
5.5.90.0000.08319.90
5.5.80.0000.07320.14
5.5.70.0100.07019.96
5.5.60.0100.07320.09
5.5.50.0070.05720.14
5.5.40.0000.05720.14
5.5.30.0000.04020.13
5.5.20.0000.04320.04
5.5.10.0030.06720.10
5.5.00.0000.08319.95
5.4.450.0070.08019.45
5.4.440.0030.04719.35
5.4.430.0130.07019.26
5.4.420.0030.08319.22
5.4.410.0030.05319.27
5.4.400.0070.04018.79
5.4.390.0030.08018.79
5.4.380.0070.04319.03
5.4.370.0100.07319.07
5.4.360.0000.09319.23
5.4.350.0100.07718.98
5.4.340.0000.08019.07
5.4.320.0000.05019.04
5.4.310.0030.04018.78
5.4.300.0070.06718.98
5.4.290.0030.06719.02
5.4.280.0070.04719.02
5.4.270.0130.07018.79
5.4.260.0030.08019.06
5.4.250.0030.08719.11
5.4.240.0030.07318.80
5.4.230.0170.07319.06
5.4.220.0070.06719.14
5.4.210.0030.07719.14
5.4.200.0070.06718.80
5.4.190.0000.05018.95
5.4.180.0000.04719.05
5.4.170.0030.05719.04
5.4.160.0070.07318.79
5.4.150.0030.06019.00
5.4.140.0070.07016.32
5.4.130.0100.05016.28
5.4.120.0070.06716.32
5.4.110.0000.08016.33
5.4.100.0030.05716.44
5.4.90.0070.05016.45
5.4.80.0030.07316.19
5.4.70.0100.06716.24
5.4.60.0070.07316.24
5.4.50.0000.07716.39
5.4.40.0070.06016.36
5.4.30.0000.03716.18
5.4.20.0030.07316.32
5.4.10.0030.08016.24
5.4.00.0030.05315.76
5.3.290.0030.08314.60
5.3.280.0070.04714.57
5.3.270.0070.07714.59
5.3.260.0000.06014.44
5.3.250.0130.06014.61
5.3.240.0070.07314.54
5.3.230.0000.03714.58
5.3.220.0030.06714.43
5.3.210.0070.07014.55
5.3.200.0030.07714.53
5.3.190.0070.07014.56
5.3.180.0030.06314.55
5.3.170.0000.06714.40
5.3.160.0000.07714.55
5.3.150.0000.08314.54
5.3.140.0070.06714.56
5.3.130.0030.07714.37
5.3.120.0100.07014.50
5.3.110.0030.07714.53
5.3.100.0070.07014.00
5.3.90.0030.07014.01
5.3.80.0300.05313.95
5.3.70.0030.06013.87
5.3.60.0000.06313.91
5.3.50.0000.07313.71
5.3.40.0100.07013.85
5.3.30.0000.05013.87
5.3.20.0030.05313.67
5.3.10.0000.07013.56
5.3.00.0030.05713.54
5.2.170.0000.05711.09
5.2.160.0030.06311.14
5.2.150.0000.06311.06
5.2.140.0070.05310.97
5.2.130.0030.04011.12
5.2.120.0000.06311.12
5.2.110.0100.05011.14
5.2.100.0000.04011.10
5.2.90.0070.05710.89
5.2.80.0000.04710.96
5.2.70.0000.04311.14
5.2.60.0000.06710.97
5.2.50.0030.04310.86
5.2.40.0000.04010.99
5.2.30.0000.06011.00
5.2.20.0030.06310.95
5.2.10.0100.04310.88
5.2.00.0100.04710.83
5.1.60.0070.04310.34
5.1.50.0070.05010.34
5.1.40.0000.05010.34
5.1.30.0070.04010.34
5.1.20.0000.03710.36
5.1.10.0100.05010.34
5.1.00.0000.03710.34
5.0.50.0000.04310.34
5.0.40.0030.04310.34
5.0.30.0000.05010.34
5.0.20.0030.04310.34
5.0.10.0030.04310.34
5.0.00.0030.05710.34
4.4.90.0070.03010.34
4.4.80.0000.04010.34
4.4.70.0000.03710.34
4.4.60.0000.03310.34
4.4.50.0030.03310.34
4.4.40.0000.05710.34
4.4.30.0030.03710.34
4.4.20.0000.02010.34
4.4.10.0000.02010.34
4.4.00.0000.03010.34
4.3.110.0000.04010.34
4.3.100.0070.03010.34
4.3.90.0030.02710.34
4.3.80.0000.04710.34
4.3.70.0030.03310.34
4.3.60.0030.03010.34
4.3.50.0000.03310.34
4.3.40.0000.04710.34
4.3.30.0000.03710.34
4.3.20.0030.03710.34
4.3.10.0070.03310.34
4.3.00.0000.04010.34

preferences:
41.29 ms | 401 KiB | 5 Q