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> | +----------------------------------------------------------------------+ */ if (PHP_SAPI != 'cli') { die("Please run this test from CLI!\n"); } 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.0040.01816.38
8.3.50.0080.01217.38
8.3.40.0070.00718.84
8.3.30.0070.00718.71
8.3.20.0050.00318.77
8.3.10.0050.00320.57
8.3.00.0090.00019.26
8.2.180.0090.00616.63
8.2.170.0070.00722.96
8.2.160.0070.00721.11
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0100.00019.48
8.2.110.0070.01021.13
8.2.100.0000.01217.85
8.2.90.0050.00317.88
8.2.80.0050.00517.97
8.2.70.0050.00318.03
8.2.60.0000.00818.09
8.2.50.0040.00418.10
8.2.40.0000.00921.18
8.2.30.0040.00419.21
8.2.20.0040.00417.65
8.2.10.0030.00517.81
8.2.00.0000.00717.66
8.1.280.0040.01425.92
8.1.270.0140.00324.66
8.1.260.0030.00726.35
8.1.250.0030.00528.09
8.1.240.0070.00617.45
8.1.230.0050.00519.00
8.1.220.0060.00317.76
8.1.210.0060.00318.77
8.1.200.0000.01017.48
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0000.00818.52
8.1.160.0080.00018.94
8.1.150.0000.00718.94
8.1.140.0050.00217.38
8.1.130.0000.00617.85
8.1.120.0040.00417.50
8.1.110.0070.00017.48
8.1.100.0040.00417.49
8.1.90.0040.00417.38
8.1.80.0000.00717.38
8.1.70.0040.00417.34
8.1.60.0030.00517.63
8.1.50.0030.00617.38
8.1.40.0000.00817.51
8.1.30.0040.00417.65
8.1.20.0040.00417.68
8.1.10.0000.00717.56
8.1.00.0080.00017.46
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0030.00318.46
8.0.270.0030.00317.18
8.0.260.0000.00616.84
8.0.250.0070.00017.03
8.0.240.0040.00417.01
8.0.230.0030.00316.93
8.0.220.0020.00516.88
8.0.210.0000.00616.83
8.0.200.0030.00317.05
8.0.190.0070.00016.95
8.0.180.0000.00716.90
8.0.170.0080.00017.07
8.0.160.0040.00416.85
8.0.150.0030.00516.90
8.0.140.0030.00616.93
8.0.130.0000.00513.28
8.0.120.0030.00517.03
8.0.110.0080.00016.90
8.0.100.0000.00716.84
8.0.90.0040.00416.80
8.0.80.0110.00416.93
8.0.70.0040.00416.98
8.0.60.0050.00216.83
8.0.50.0030.00516.84
8.0.30.0130.00517.14
8.0.20.0140.01217.13
8.0.10.0040.00417.04
8.0.00.0120.00816.95
7.4.330.0030.00312.91
7.4.320.0050.00316.63
7.4.300.0060.00016.61
7.4.290.0030.00316.49
7.4.280.0030.00616.67
7.4.270.0030.00316.52
7.4.260.0050.00013.24
7.4.250.0030.00616.52
7.4.240.0000.00716.50
7.4.230.0070.00016.41
7.4.220.0150.00416.57
7.4.210.0050.00916.50
7.4.200.0030.00316.57
7.4.190.0000.00716.64
7.4.160.0030.01216.47
7.4.150.0130.00716.42
7.4.140.0120.00716.43
7.4.130.0020.01516.50
7.4.120.0100.00916.61
7.4.110.0080.00816.57
7.4.100.0090.00916.42
7.4.90.0030.01516.50
7.4.80.0120.01219.39
7.4.70.0080.01316.43
7.4.60.0140.00716.46
7.4.50.0040.00416.36
7.4.40.0040.01216.45
7.4.30.0110.00416.74
7.4.00.0040.01115.00
7.3.330.0000.00512.95
7.3.320.0030.00313.15
7.3.310.0030.00316.16
7.3.300.0000.00716.09
7.3.290.0000.01516.19
7.3.280.0070.00916.23
7.3.270.0090.00916.48
7.3.260.0110.00616.17
7.3.250.0100.01016.29
7.3.240.0140.00716.20
7.3.230.0090.00916.19
7.3.210.0070.01016.50
7.3.200.0030.01416.51
7.3.190.0120.01016.32
7.3.180.0160.00016.29
7.3.170.0140.00616.20
7.3.160.0070.00716.37
7.3.120.0060.00614.55
7.3.110.0030.00714.68
7.3.100.0030.01014.73
7.3.90.0110.00014.51
7.3.80.0130.00314.89
7.3.70.0030.01014.51
7.3.60.0030.01014.71
7.3.50.0000.01114.63
7.3.40.0000.01514.83
7.3.30.0090.00314.85
7.3.20.0000.01516.54
7.3.10.0110.00316.55
7.3.00.0050.00516.73
7.2.330.0040.01516.38
7.2.320.0080.00916.70
7.2.310.0120.00916.49
7.2.300.0090.01216.41
7.2.290.0070.01316.59
7.2.240.0070.01015.01
7.2.230.0000.01514.98
7.2.220.0110.00415.05
7.2.210.0070.01014.86
7.2.200.0060.00914.71
7.2.190.0030.01415.02
7.2.180.0120.00414.93
7.2.170.0060.01014.88
7.2.160.0090.00614.93
7.2.150.0040.01416.72
7.2.140.0110.00416.59
7.2.130.0060.01216.70
7.2.120.0110.00316.83
7.2.110.0030.00716.78
7.2.100.0070.01116.88
7.2.90.0040.01416.88
7.2.80.0040.01216.81
7.2.70.0060.01016.83
7.2.60.0210.00516.69
7.2.50.0030.01416.72
7.2.40.0000.01416.90
7.2.30.0030.01416.91
7.2.20.0090.00616.51
7.2.10.0140.00316.66
7.2.00.0050.00818.10
7.1.330.0080.00615.56
7.1.320.0130.00015.59
7.1.310.0030.00715.97
7.1.300.0040.01115.61
7.1.290.0030.01315.79
7.1.280.0030.01015.57
7.1.270.0060.00515.47
7.1.260.0040.01115.89
7.1.250.0070.00715.91
7.1.200.0130.00815.14
7.1.100.0090.00317.93
7.1.70.0040.00417.01
7.1.60.0110.01419.40
7.1.50.0100.01016.68
7.1.00.0030.07722.54
7.0.200.0330.00714.63
7.0.140.0070.07021.95
7.0.120.0000.07722.15
7.0.60.0000.05319.91
7.0.50.0070.04017.79
7.0.40.0030.05020.19
7.0.30.0170.07320.33
7.0.20.0330.08320.16
7.0.10.0030.09020.04
7.0.00.0030.09020.00
5.6.280.0030.07320.89
5.6.210.0000.04320.50
5.6.200.0100.08018.08
5.6.190.0030.04320.41
5.6.180.0470.05320.67
5.6.170.0270.07720.50
5.6.160.0030.04320.44
5.6.150.0070.08018.18
5.6.140.0070.08018.10
5.6.130.0130.07018.10
5.6.120.0130.08321.11
5.6.110.0100.07321.00
5.6.100.0070.05720.98
5.6.90.0030.06720.96
5.6.80.0000.08720.37
5.5.350.0030.08020.35
5.5.340.0100.07718.02
5.5.330.0000.09320.07
5.5.320.0130.04720.28
5.5.310.0270.06320.28
5.5.300.0030.07017.98
5.5.290.0000.06017.92
5.5.280.0070.08720.96
5.5.270.0000.07020.79
5.5.260.0100.08020.97
5.5.250.0070.06320.46
5.5.240.0170.07320.23
5.4.450.0030.04319.12
5.4.440.0130.06719.11
5.4.430.0130.06019.44
5.4.420.0070.07319.11
5.4.410.0100.07718.98
5.4.400.0030.04319.23
5.4.390.0030.04718.88
5.4.380.0170.06718.81
5.4.370.0030.04018.79
5.4.360.0030.07719.18
5.4.350.0070.07319.16
5.4.340.0070.07718.81
5.4.320.0000.04318.81
5.4.310.0070.07318.79
5.4.300.0000.06319.18
5.4.290.0100.06018.79
5.4.280.0030.06319.17
5.4.270.0030.08019.18
5.4.260.0030.06718.80
5.4.250.0100.06018.91
5.4.240.0130.07318.77
5.4.230.0070.05018.78
5.4.220.0030.05319.18
5.4.210.0030.08319.16
5.4.200.0000.06719.07
5.4.190.0070.04719.11
5.4.180.0100.06718.79
5.4.170.0100.04318.80
5.4.160.0000.05318.95
5.4.150.0000.05019.16
5.4.140.0000.06016.34
5.4.130.0000.04716.26
5.4.120.0030.07716.29
5.4.110.0170.06316.14
5.4.100.0100.06716.32
5.4.90.0070.05016.41
5.4.80.0130.06716.34
5.4.70.0070.05016.25
5.4.60.0130.06316.38
5.4.50.0170.06016.21
5.4.40.0070.07716.27
5.4.30.0100.05716.29
5.4.20.0030.03716.23
5.4.10.0070.03316.12
5.4.00.0100.03315.61
5.3.290.0070.03714.59
5.3.280.0130.07014.57
5.3.270.0130.03014.57
5.3.260.0070.04314.54
5.3.250.0070.03314.42
5.3.240.0130.03014.53
5.3.230.0070.07314.38
5.3.220.0030.08014.38
5.3.210.0100.07314.50
5.3.200.0170.06314.50
5.3.190.0070.06714.50
5.3.180.0000.04314.46
5.3.170.0100.07014.46
5.3.160.0100.06014.50
5.3.150.0100.07314.44
5.3.140.0170.03714.48
5.3.130.0070.04714.52
5.3.120.0000.08314.47
5.3.110.0100.03314.44
5.3.100.0030.04014.06
5.3.90.0030.04313.89
5.3.80.0000.04013.80
5.3.70.0000.04013.81
5.3.60.0070.03313.95
5.3.50.0070.03713.87
5.3.40.0100.07313.91
5.3.30.0030.04313.86
5.3.20.0070.06013.71
5.3.10.0000.04013.59
5.3.00.0230.03713.46
5.2.170.0070.04011.23
5.2.160.0070.05711.00
5.2.150.0030.05711.00
5.2.140.0070.06310.99
5.2.130.0200.04711.00
5.2.120.0130.02311.08
5.2.110.0030.05011.08
5.2.100.0100.04711.04
5.2.90.0030.05711.09
5.2.80.0030.06311.04
5.2.70.0100.05711.02
5.2.60.0030.05711.03
5.2.50.0000.05011.01
5.2.40.0030.06310.85
5.2.30.0000.06710.87
5.2.20.0030.03710.78
5.2.10.0130.05010.91
5.2.00.0030.03310.61
5.1.60.0030.0239.99
5.1.50.0000.0309.94
5.1.40.0130.0509.96
5.1.30.0030.05010.23
5.1.20.0100.05010.38
5.1.10.0000.04010.08
5.1.00.0000.04010.04
5.0.50.0030.0508.51
5.0.40.0030.0438.42
5.0.30.0030.0608.28
5.0.20.0030.0338.28
5.0.10.0000.0508.28
5.0.00.0030.0678.28
4.4.90.0000.0278.28
4.4.80.0000.0338.28
4.4.70.0000.0308.28
4.4.60.0000.0238.28
4.4.50.0030.0338.28
4.4.40.0070.0508.28
4.4.30.0030.0178.28
4.4.20.0000.0308.28
4.4.10.0030.0308.28
4.4.00.0000.0538.28
4.3.110.0030.0378.28
4.3.100.0030.0278.28
4.3.90.0030.0278.28
4.3.80.0000.0438.28
4.3.70.0000.0278.28
4.3.60.0000.0308.28
4.3.50.0030.0338.28
4.3.40.0030.0508.28
4.3.30.0030.0338.28
4.3.20.0030.0278.28
4.3.10.0000.0238.28
4.3.00.0070.0178.28

preferences:
47.17 ms | 401 KiB | 5 Q