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"); } 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.0100.00316.63
8.3.50.0120.00722.04
8.3.40.0120.00418.84
8.3.30.0110.00419.08
8.3.20.0080.00020.29
8.3.10.0070.00023.70
8.3.00.0060.00319.38
8.2.180.0130.00718.41
8.2.170.0030.01222.96
8.2.160.0130.00020.55
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0070.00022.13
8.2.110.0040.00422.19
8.2.100.0040.01117.78
8.2.90.0100.00318.70
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0060.00617.89
8.2.50.0080.00318.07
8.2.40.0040.00419.88
8.2.30.0060.00318.09
8.2.20.0030.00517.83
8.2.10.0000.00718.07
8.2.00.0000.00717.78
8.1.280.0150.00425.92
8.1.270.0070.01323.84
8.1.260.0090.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00722.00
8.1.230.0080.00422.15
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0030.00617.23
8.1.190.0000.00817.25
8.1.180.0060.00318.10
8.1.170.0040.00418.50
8.1.160.0030.00622.02
8.1.150.0030.00718.67
8.1.140.0070.00017.48
8.1.130.0070.00017.76
8.1.120.0030.00317.45
8.1.110.0040.00417.36
8.1.100.0040.00417.52
8.1.90.0050.00217.36
8.1.80.0000.00717.36
8.1.70.0030.00317.47
8.1.60.0030.00917.43
8.1.50.0030.00517.56
8.1.40.0040.00417.60
8.1.30.0000.00817.51
8.1.20.0080.00017.68
8.1.10.0040.00417.50
8.1.00.0040.00417.30
8.0.300.0070.00018.77
8.0.290.0000.00817.05
8.0.280.0030.00318.41
8.0.270.0040.00417.19
8.0.260.0060.00017.28
8.0.250.0000.00717.09
8.0.240.0000.00717.06
8.0.230.0030.00317.06
8.0.220.0000.00716.96
8.0.210.0000.00716.95
8.0.200.0030.00317.07
8.0.190.0050.00216.93
8.0.180.0000.00817.02
8.0.170.0080.00017.01
8.0.160.0000.00816.96
8.0.150.0000.00716.89
8.0.140.0040.00417.00
8.0.130.0000.00613.31
8.0.120.0040.00416.97
8.0.110.0000.00716.95
8.0.100.0000.00716.91
8.0.90.0000.00716.93
8.0.80.0060.00917.04
8.0.70.0040.00416.82
8.0.60.0000.00817.04
8.0.50.0040.00416.80
8.0.30.0110.01017.27
8.0.20.0140.00617.45
8.0.10.0000.00717.08
8.0.00.0080.01016.75
7.4.330.0050.00015.00
7.4.320.0060.00016.60
7.4.300.0030.00316.51
7.4.290.0000.00716.52
7.4.280.0000.00816.53
7.4.270.0060.00016.63
7.4.260.0070.00016.58
7.4.250.0000.00716.46
7.4.240.0060.00116.48
7.4.230.0030.00316.37
7.4.220.0090.00916.66
7.4.210.0070.00716.44
7.4.200.0070.00016.66
7.4.190.0070.00016.42
7.4.160.0090.00616.38
7.4.150.0030.01417.40
7.4.140.0110.00717.86
7.4.130.0100.01116.51
7.4.120.0090.01016.53
7.4.110.0110.00916.36
7.4.100.0100.00916.52
7.4.90.0030.01316.47
7.4.80.0050.01219.39
7.4.70.0080.01416.59
7.4.60.0040.01116.40
7.4.50.0000.00816.30
7.4.40.0060.01016.31
7.4.30.0060.01216.36
7.4.10.0100.00716.52
7.4.00.0060.01015.64
7.3.330.0030.00312.95
7.3.320.0000.00513.04
7.3.310.0030.00516.08
7.3.300.0000.00616.12
7.3.290.0080.00816.17
7.3.280.0060.01016.19
7.3.270.0090.00917.40
7.3.260.0120.00616.21
7.3.250.0140.00516.11
7.3.240.0030.01316.28
7.3.230.0180.00016.39
7.3.210.0110.00716.38
7.3.200.0070.01419.39
7.3.190.0140.00916.43
7.3.180.0070.01616.30
7.3.170.0070.01516.33
7.3.160.0090.00616.10
7.3.130.0030.01516.05
7.3.120.0070.01015.36
7.3.110.0100.00716.13
7.3.100.0030.00916.02
7.3.90.0030.00716.24
7.3.80.0070.01416.20
7.3.70.0030.01216.16
7.3.60.0030.01316.27
7.3.50.0070.00316.12
7.3.40.0090.00616.23
7.3.30.0050.01516.20
7.3.20.0150.00018.09
7.3.10.0030.01018.04
7.3.00.0060.00618.15
7.2.330.0120.01216.39
7.2.320.0070.01816.41
7.2.310.0100.00716.37
7.2.300.0090.00816.57
7.2.290.0140.00716.43
7.2.260.0040.01216.48
7.2.250.0100.00716.58
7.2.240.0000.01516.31
7.2.230.0090.00916.49
7.2.220.0120.00316.36
7.2.210.0110.00616.34
7.2.200.0040.00816.17
7.2.190.0090.00916.49
7.2.180.0100.00716.33
7.2.170.0090.00916.33
7.2.160.0060.00916.27
7.2.150.0030.01318.07
7.2.140.0070.01118.16
7.2.130.0030.01318.18
7.2.120.0030.01018.34
7.2.110.0000.01418.30
7.2.100.0040.01218.20
7.2.90.0070.01018.22
7.2.80.0000.01218.41
7.2.70.0130.00317.99
7.2.60.0030.01017.36
7.2.50.0060.00618.45
7.2.40.0060.00918.41
7.2.30.0090.00318.32
7.2.20.0070.01118.26
7.2.10.0100.00718.16
7.2.00.0100.00318.77
7.1.330.0040.01117.29
7.1.320.0030.01317.33
7.1.310.0030.01317.48
7.1.300.0140.00317.03
7.1.290.0030.00917.20
7.1.280.0070.00717.18
7.1.270.0080.00817.28
7.1.260.0070.00717.31
7.1.250.0000.01017.01
7.1.240.0060.00817.11
7.1.230.0060.00617.10
7.1.220.0060.00617.09
7.1.210.0090.00617.04
7.1.200.0000.01316.44
7.1.190.0070.00717.14
7.1.180.0070.00717.09
7.1.170.0040.00817.06
7.1.160.0120.00317.04
7.1.150.0030.00817.13
7.1.140.0070.00717.23
7.1.130.0060.01017.09
7.1.120.0000.01117.23
7.1.110.0060.00617.12
7.1.100.0020.01017.53
7.1.90.0040.00817.12
7.1.80.0060.00917.22
7.1.70.0050.00816.91
7.1.60.0020.01318.28
7.1.50.0050.01117.09
7.1.40.0060.00617.21
7.1.30.0060.00617.28
7.1.20.0030.00717.30
7.1.10.0030.01017.11
7.1.00.0080.03819.68
7.0.330.0100.00616.91
7.0.320.0040.00816.75
7.0.310.0040.01116.80
7.0.300.0050.00316.75
7.0.290.0070.00716.82
7.0.280.0070.00716.87
7.0.270.0030.01016.75
7.0.260.0060.00616.75
7.0.250.0060.00616.73
7.0.240.0040.00817.09
7.0.230.0070.00416.79
7.0.220.0100.00316.92
7.0.210.0100.00316.80
7.0.200.0060.00616.87
7.0.190.0030.00916.90
7.0.180.0060.00616.90
7.0.170.0030.00616.86
7.0.160.0070.00716.78
7.0.150.0030.01216.65
7.0.140.0020.04219.47
7.0.130.0030.01016.76
7.0.120.0100.00316.79
7.0.110.0100.00016.95
7.0.100.0040.00817.10
7.0.90.0000.01317.05
7.0.80.0030.01216.82
7.0.70.0050.04319.44
7.0.60.0080.04019.42
7.0.50.0000.03118.56
7.0.40.0080.02517.46
7.0.30.0050.02217.48
7.0.20.0100.01917.55
7.0.10.0050.02317.41
7.0.00.0050.02717.53
5.6.400.0040.01115.72
5.6.390.0160.00015.66
5.6.380.0110.00415.88
5.6.370.0030.01015.71
5.6.360.0040.01116.07
5.6.350.0030.01315.56
5.6.340.0140.00015.73
5.6.330.0040.00715.73
5.6.320.0100.00316.04
5.6.310.0130.00315.85
5.6.300.0060.01215.79
5.6.290.0000.01215.55
5.6.280.0070.03718.37
5.6.270.0090.00615.66
5.6.260.0040.00715.63
5.6.250.0040.00715.82
5.6.240.0040.01115.79
5.6.230.0070.00715.96
5.6.220.0080.04318.25
5.6.210.0040.04718.39
5.6.200.0030.02518.47
5.6.190.0060.02518.56
5.6.180.0040.02318.46
5.6.170.0050.02618.43
5.6.160.0050.02318.50
5.6.150.0030.03018.36
5.6.140.0070.02318.27
5.6.130.0030.02618.48
5.6.120.0020.02618.44
5.6.110.0030.02418.32
5.6.100.0100.01818.36
5.6.90.0020.02718.46
5.6.80.0020.03018.10
5.6.70.0080.02118.00
5.6.60.0050.03518.05
5.6.50.0070.02218.02
5.6.40.0030.02418.10
5.6.30.0020.02717.98
5.6.20.0050.01818.13
5.6.10.0060.03518.02
5.6.00.0050.04517.93
5.5.380.0000.01215.73
5.5.370.0060.00615.65
5.5.360.0110.04318.06
5.5.350.0080.04718.18
5.5.340.0050.02718.37
5.5.330.0070.02318.31
5.5.320.0080.02518.27
5.5.310.0050.02518.16
5.5.300.0050.02718.22
5.5.290.0050.04518.28
5.5.280.0080.02318.32
5.5.270.0020.03018.31
5.5.260.0060.02018.44
5.5.250.0040.02618.13
5.5.240.0060.03317.89
5.5.230.0120.03517.94
5.5.220.0040.02118.04
5.5.210.0030.02617.93
5.5.200.0060.02518.02
5.5.190.0050.03417.93
5.5.180.0050.02218.01
5.5.170.0060.00915.50
5.5.160.0070.02517.85
5.5.150.0050.04317.95
5.5.140.0050.03517.75
5.5.130.0050.03017.88
5.5.120.0050.04518.11
5.5.110.0050.04318.00
5.5.100.0050.03217.86
5.5.90.0090.04117.89
5.5.80.0040.04017.94
5.5.70.0050.04317.96
5.5.60.0090.03818.00
5.5.50.0080.03817.85
5.5.40.0050.04317.81
5.5.30.0050.04317.85
5.5.20.0060.04517.74
5.5.10.0080.04317.84
5.5.00.0070.04217.82
5.4.450.0060.02316.46
5.4.440.0030.02316.41
5.4.430.0050.02216.32
5.4.420.0060.02516.41
5.4.410.0020.02416.32
5.4.400.0040.02216.33
5.4.390.0030.03016.33
5.4.380.0020.03116.29
5.4.370.0100.01716.28
5.4.360.0030.02116.35
5.4.350.0050.02316.34
5.4.340.0020.03716.33
5.4.330.0030.00713.54
5.4.320.0020.02716.34
5.4.310.0040.01916.18
5.4.300.0060.01416.30
5.4.290.0060.02016.28
5.4.280.0030.02216.29
5.4.270.0030.04316.34
5.4.260.0040.03816.38
5.4.250.0050.03516.22
5.4.240.0050.02716.30
5.4.230.0110.04016.28
5.4.220.0050.04216.17
5.4.210.0070.03716.26
5.4.200.0080.02816.38
5.4.190.0000.03716.34
5.4.180.0070.03616.25
5.4.170.0030.04416.34
5.4.160.0020.04216.25
5.4.150.0050.03916.23
5.4.140.0060.03814.94
5.4.130.0030.03814.88
5.4.120.0050.03714.78
5.4.110.0020.04214.98
5.4.100.0050.03714.90
5.4.90.0070.03514.92
5.4.80.0050.04014.94
5.4.70.0050.03914.97
5.4.60.0070.03414.86
5.4.50.0050.03414.89
5.4.40.0070.02814.91
5.4.30.0020.04114.98
5.4.20.0050.03314.86
5.4.10.0030.04214.97
5.4.00.0050.02614.61
5.3.290.0020.02214.10
5.3.280.0030.04314.07
5.3.270.0070.03314.07
5.3.260.0050.04214.07
5.3.250.0060.03614.00
5.3.240.0050.02813.98
5.3.230.0050.04214.00
5.3.220.0030.03914.05
5.3.210.0070.04013.98
5.3.200.0030.03414.03
5.3.190.0080.03713.98
5.3.180.0060.02814.05
5.3.170.0030.03114.04
5.3.160.0020.04414.05
5.3.150.0030.04314.03
5.3.140.0060.03814.03
5.3.130.0050.04014.04
5.3.120.0070.03414.02
5.3.110.0040.04314.03
5.3.100.0070.03613.71
5.3.90.0060.03913.69
5.3.80.0020.03813.71
5.3.70.0030.02913.65
5.3.60.0070.04113.77
5.3.50.0020.04213.72
5.3.40.0020.02513.72
5.3.30.0050.03813.61
5.3.20.0020.04413.61
5.3.10.0020.03913.58
5.3.00.0030.04013.59
5.2.170.0070.06311.09
5.2.160.0000.05011.12
5.2.150.0030.05711.13
5.2.140.0030.06010.93
5.2.130.0070.06010.92
5.2.120.0070.06010.91
5.2.110.0070.05011.17
5.2.100.0030.06011.09
5.2.90.0030.06010.92
5.2.80.0030.05011.06
5.2.70.0070.06310.96
5.2.60.0030.06011.04
5.2.50.0000.06710.95
5.2.40.0030.06310.95
5.2.30.0070.04710.81
5.2.20.0000.04311.00
5.2.10.0030.06010.90
5.2.00.0030.06010.77
5.1.60.0030.05310.45
5.1.50.0000.05710.45
5.1.40.0000.04310.45
5.1.30.0000.05310.45
5.1.20.0000.06010.45
5.1.10.0000.05310.45
5.1.00.0000.05710.45
5.0.50.0000.04010.45
5.0.40.0070.03010.45
5.0.30.0000.06710.45
5.0.20.0070.03310.45
5.0.10.0000.03710.45
5.0.00.0030.06310.45
4.4.90.0000.03310.45
4.4.80.0030.03010.45
4.4.70.0000.03710.45
4.4.60.0030.03310.45
4.4.50.0000.03310.45
4.4.40.0000.05310.45
4.4.30.0000.03710.45
4.4.20.0030.03010.45
4.4.10.0030.03010.45
4.4.00.0030.04710.45
4.3.110.0000.02710.45
4.3.100.0030.03010.45
4.3.90.0000.02710.45
4.3.80.0070.04310.45
4.3.70.0030.02710.45
4.3.60.0000.03310.45
4.3.50.0030.03310.45
4.3.40.0070.03710.45
4.3.30.0030.03310.45
4.3.20.0000.03710.45
4.3.10.0030.03710.45
4.3.00.0000.03710.45

preferences:
52.93 ms | 401 KiB | 5 Q