3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Using default precision:',PHP_EOL; $time = $_SERVER['REQUEST_TIME_FLOAT']; var_dump(ini_get('precision')); var_dump($time); $time_string = addslashes($time); var_dump($time_string); $recast_time = (float) $time_string; var_dump($recast_time); var_dump($time === $recast_time); echo PHP_EOL,'Using substantially higher precision:',PHP_EOL; ini_set('precision', 50); $time = $_SERVER['REQUEST_TIME_FLOAT']; var_dump(ini_get('precision')); var_dump($time); $time_string = addslashes($time); var_dump($time_string); $recast_time = (float) $time_string; var_dump($recast_time); var_dump($time === $recast_time);

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.4.20.0100.00619.83
8.4.10.0090.00017.68
8.3.150.0110.00719.11
8.3.140.0090.00916.79
8.3.130.0080.00018.50
8.3.120.0110.00018.99
8.3.110.0110.00720.94
8.3.100.0000.00816.49
8.3.90.0040.00426.77
8.3.80.0090.00018.31
8.3.70.0110.00316.75
8.3.60.0120.00618.43
8.3.50.0080.00624.47
8.3.40.0110.01118.69
8.3.30.0110.00318.68
8.3.20.0060.00320.72
8.3.10.0040.00423.48
8.3.00.0040.01120.75
8.2.260.0110.00720.42
8.2.250.0050.00318.36
8.2.240.0090.00918.92
8.2.230.0030.00622.58
8.2.220.0100.00024.06
8.2.210.0120.00326.77
8.2.200.0070.00418.54
8.2.190.0100.01016.63
8.2.180.0190.00318.21
8.2.170.0110.00422.96
8.2.160.0090.00622.27
8.2.150.0060.00924.18
8.2.140.0030.01224.66
8.2.130.0070.00026.16
8.2.120.0030.00626.16
8.2.110.0060.00321.00
8.2.100.0040.00817.91
8.2.90.0000.00817.91
8.2.80.0070.00317.97
8.2.70.0000.00818.03
8.2.60.0000.00818.03
8.2.50.0000.00818.10
8.2.40.0030.00619.45
8.2.30.0040.00419.28
8.2.20.0000.01017.96
8.2.10.0070.00018.94
8.2.00.0040.00419.32
8.1.310.0180.00016.81
8.1.300.0060.00319.63
8.1.290.0110.00030.84
8.1.280.0030.01325.92
8.1.270.0040.00420.68
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0120.00020.44
8.1.230.0110.00320.76
8.1.220.0080.00017.76
8.1.210.0080.00018.77
8.1.200.0030.00617.10
8.1.190.0060.00317.25
8.1.180.0060.00318.10
8.1.170.0050.00318.57
8.1.160.0000.00720.29
8.1.150.0000.00718.91
8.1.140.0050.00218.91
8.1.130.0050.00217.54
8.1.120.0030.00317.37
8.1.110.0000.00717.48
8.1.100.0070.00017.46
8.1.90.0070.00317.35
8.1.80.0080.00017.53
8.1.70.0000.00717.43
8.1.60.0030.00617.57
8.1.50.0080.00017.43
8.1.40.0040.00417.55
8.1.30.0080.00017.59
8.1.20.0040.00417.59
8.1.10.0000.00817.51
8.1.00.0000.00817.55
8.0.300.0000.00819.61
8.0.290.0000.00716.75
8.0.280.0030.00518.47
8.0.270.0070.00017.44
8.0.260.0070.00016.79
8.0.250.0030.00316.99
8.0.240.0000.00916.97
8.0.230.0030.00316.93
8.0.220.0030.00316.80
8.0.210.0070.00316.89
8.0.200.0000.00616.90
8.0.190.0000.00716.94
8.0.180.0040.00417.00
8.0.170.0030.00616.96
8.0.160.0040.00416.93
8.0.150.0030.00516.68
8.0.140.0080.00016.71
8.0.130.0060.00013.35
8.0.120.0000.00816.87
8.0.110.0070.00016.81
8.0.100.0070.00016.85
8.0.90.0030.00616.79
8.0.80.0100.00316.95
8.0.70.0000.00816.79
8.0.60.0040.00416.84
8.0.50.0080.00016.94
8.0.30.0140.00316.90
8.0.20.0120.00917.09
8.0.10.0000.00717.07
8.0.00.0160.01016.94
7.4.330.0020.00215.55
7.4.320.0060.00016.43
7.4.300.0000.00716.60
7.4.290.0000.00816.53
7.4.280.0040.00416.46
7.4.270.0030.00316.52
7.4.260.0050.00013.30
7.4.250.0070.00016.63
7.4.240.0000.00816.67
7.4.230.0070.00016.61
7.4.220.0050.00216.58
7.4.210.0090.00816.60
7.4.200.0000.00716.64
7.4.130.0110.00716.56
7.4.120.0060.01616.36
7.4.110.0040.01516.57
7.4.100.0110.01416.60
7.4.90.0000.01716.40
7.4.80.0080.00819.39
7.4.70.0070.01116.46
7.4.60.0140.00316.72
7.4.50.0070.00716.31
7.4.40.0060.01116.27
7.4.00.0070.00714.87
7.3.330.0030.00316.25
7.3.320.0000.00613.07
7.3.310.0000.00716.13
7.3.300.0030.00316.26
7.3.290.0030.00616.18
7.3.280.0080.00616.32
7.3.260.0100.01316.47
7.3.230.0080.00816.60
7.3.210.0070.01016.47
7.3.200.0050.01016.50
7.3.190.0090.00916.27
7.3.180.0060.01116.32
7.3.170.0030.01316.29
7.3.160.0100.00716.31
7.3.120.0090.00614.36
7.3.110.0050.00914.76
7.3.100.0090.00914.75
7.3.90.0070.01114.50
7.3.80.0060.00914.64
7.3.70.0130.00614.71
7.3.60.0060.00914.38
7.3.50.0030.01014.84
7.3.40.0100.00314.63
7.3.30.0130.00014.92
7.3.20.0140.00614.91
7.3.10.0000.01314.68
7.3.00.0030.01214.64
7.2.330.0170.00016.76
7.2.320.0160.00916.45
7.2.310.0100.00716.77
7.2.300.0170.00016.46
7.2.290.0130.01016.43
7.2.240.0100.00714.48
7.2.230.0060.01315.04
7.2.220.0180.00314.85
7.2.210.0030.01114.57
7.2.200.0120.00315.01
7.2.190.0040.01214.82
7.2.180.0030.01314.99
7.2.170.0000.01414.84
7.2.160.0120.00614.76
7.2.150.0070.00715.11
7.2.140.0040.01115.02
7.2.130.0090.00614.96
7.2.120.0060.01215.16
7.2.110.0060.01214.90
7.2.100.0030.01115.15
7.2.90.0180.01014.88
7.2.80.0060.01215.15
7.2.70.0090.00614.72
7.2.60.0070.00714.83
7.2.50.0150.00514.84
7.2.40.0030.01015.11
7.2.30.0100.00614.84
7.2.20.0120.00314.80
7.2.10.0150.00514.89
7.2.00.0140.00714.87
7.1.330.0090.00613.80
7.1.320.0110.00913.85
7.1.310.0140.00713.82
7.1.300.0090.00413.85
7.1.290.0040.00913.73
7.1.280.0000.01314.02
7.1.270.0140.00413.78
7.1.260.0090.00613.98
7.1.250.0030.01313.73
7.1.240.0140.01113.97
7.1.230.0190.00413.86
7.1.220.0110.00813.77
7.1.210.0240.00713.63
7.1.200.0110.01413.74
7.1.190.0120.00713.87
7.1.180.0170.00413.75
7.1.170.0130.00813.81
7.1.160.0150.00413.93
7.1.150.0150.00913.89
7.1.140.0160.00913.88
7.1.130.0490.00713.82
7.1.120.0280.00013.97
7.1.110.0160.00714.00
7.1.100.0140.01113.77
7.1.90.0250.01313.95
7.1.80.0140.00614.10
7.1.70.0110.01513.79
7.1.60.0230.01014.04
7.1.50.0100.00713.74
7.1.40.0100.01013.99
7.1.30.0160.00013.76
7.1.20.0040.01313.86
7.1.10.0090.00913.89
7.1.00.0160.00413.94
7.0.330.0130.01313.57
7.0.320.0120.00913.30
7.0.310.0110.01113.43
7.0.300.0110.00813.46
7.0.290.0160.00313.57
7.0.280.0110.01113.47
7.0.270.0130.01013.54
7.0.260.0160.00613.42
7.0.250.0110.01113.54
7.0.240.0150.00813.71
7.0.230.0090.01213.41
7.0.220.0160.00913.37
7.0.210.0140.01013.69
7.0.200.0100.01013.56
7.0.190.0070.01013.41
7.0.180.0000.01713.51
7.0.170.0110.00813.52
7.0.160.0100.01013.70
7.0.150.0040.01313.47
7.0.140.0050.01113.60
7.0.130.0090.01013.65
7.0.120.0080.01513.52
7.0.110.0120.00813.55
7.0.100.0160.00613.54
7.0.90.0110.01113.38
7.0.80.0100.01013.68
7.0.70.0200.00313.57
7.0.60.0110.00713.10
7.0.50.0090.01213.48
7.0.40.0080.00813.54
7.0.30.0110.00713.58
7.0.20.0120.00813.43
7.0.10.0190.00913.61
7.0.00.0140.00913.59
5.6.400.0160.00514.33
5.6.390.0160.00814.36
5.6.380.0240.00014.60
5.6.370.0110.00814.13
5.6.360.0210.00014.18
5.6.350.0140.00614.18
5.6.340.0120.00914.26
5.6.330.0080.01114.38
5.6.320.0100.01014.11
5.6.310.0210.00314.01
5.6.300.0130.00614.46
5.6.290.0130.00614.29
5.6.280.0100.01614.11
5.6.270.0130.01314.25
5.6.260.0110.00514.38
5.6.250.0110.01114.21
5.6.240.0070.01114.20
5.6.230.0110.00914.11
5.6.220.0100.01014.23
5.6.210.0150.00614.20
5.6.200.0080.01313.98
5.6.190.0090.00713.85
5.6.180.0100.01014.20
5.6.170.0070.01514.09
5.6.160.0120.01214.13
5.6.150.0150.00814.47
5.6.140.0160.01014.29
5.6.130.0160.00514.36
5.6.120.0050.01414.16
5.6.110.0120.00914.45
5.6.100.0140.01714.40
5.6.90.0170.00614.32
5.6.80.0090.01214.24
5.6.70.0160.00414.14
5.6.60.0150.00314.42
5.6.50.0110.00914.34
5.6.40.0160.00514.27
5.6.30.0180.00614.27
5.6.20.0140.01014.41
5.6.10.0130.01014.27
5.6.00.0070.01213.97
5.5.380.0210.00314.06
5.5.370.0130.00514.32
5.5.360.0060.01214.25
5.5.350.0100.01014.38
5.5.340.0090.00914.03
5.5.330.0100.00614.03
5.5.320.0160.00413.88
5.5.310.0160.00913.93
5.5.300.0130.01414.45
5.5.290.0130.00614.17
5.5.280.0080.01114.20
5.5.270.0140.01114.29
5.5.260.0150.00814.22
5.5.250.0100.01114.31
5.5.240.0170.00314.07
5.5.230.0110.00814.29
5.5.220.0080.01114.07
5.5.210.0090.01214.13
5.5.200.0080.01214.15
5.5.190.0140.00614.10
5.5.180.0120.00814.22
5.5.170.0100.00814.07
5.5.160.0060.01213.92
5.5.150.0130.00714.19
5.5.140.0120.00414.32
5.5.130.0100.01314.10
5.5.120.0170.00314.49
5.5.110.0150.00314.16
5.5.100.0160.01014.49
5.5.90.0160.00314.01
5.5.80.0160.01014.29
5.5.70.0100.01314.14
5.5.60.0130.01013.89
5.5.50.0130.00914.18
5.5.40.0000.01814.02
5.5.30.0140.00714.17
5.5.20.0040.01514.18
5.5.10.0190.00014.26
5.5.00.0040.01213.98
5.4.450.0130.00310.81
5.4.440.0090.00611.29
5.4.430.0090.01210.77
5.4.420.0140.00311.13
5.4.410.0120.00611.00
5.4.400.0060.00910.93
5.4.390.0120.00410.88
5.4.380.0070.00710.96
5.4.370.0100.00711.07
5.4.360.0080.00810.89
5.4.350.0070.00811.01
5.4.340.0030.01410.90
5.4.330.0100.00311.05
5.4.320.0110.00010.95
5.4.310.0060.00610.98
5.4.300.0060.00911.06
5.4.290.0130.00411.01
5.4.280.0130.00510.98
5.4.270.0090.00610.95
5.4.260.0080.00910.98
5.4.250.0080.00810.98
5.4.240.0090.00710.79
5.4.230.0100.00711.24
5.4.220.0070.00710.78
5.4.210.0040.01011.09
5.4.200.0060.00610.88
5.4.190.0090.00410.67
5.4.180.0080.00811.14
5.4.170.0070.00810.89
5.4.160.0000.01211.09
5.4.150.0140.00010.90
5.4.140.0080.00411.03
5.4.130.0090.00210.79
5.4.120.0080.00410.82
5.4.110.0060.00610.68
5.4.100.0040.01110.91
5.4.90.0030.01210.92
5.4.80.0080.00611.00
5.4.70.0050.00711.21
5.4.60.0100.00310.86
5.4.50.0080.00311.00
5.4.40.0090.00411.12
5.4.30.0060.00610.82
5.4.20.0080.00810.93
5.4.10.0110.00010.82
5.4.00.0080.00310.96
5.3.290.0080.00410.59
5.3.280.0070.01010.47
5.3.270.0090.00610.53
5.3.260.0040.00710.54
5.3.250.0000.01710.52
5.3.240.0000.01310.37
5.3.230.0080.00410.23
5.3.220.0110.00010.48
5.3.210.0050.01010.38
5.3.200.0100.00510.36
5.3.190.0070.00410.52
5.3.180.0030.00810.36
5.3.170.0100.00310.30
5.3.160.0110.00010.45
5.3.150.0050.00510.58
5.3.140.0030.00610.43
5.3.130.0030.00710.39
5.3.120.0090.00410.41
5.3.110.0060.00410.30
5.3.100.0000.01010.41
5.3.90.0060.00610.36
5.3.80.0100.00010.23
5.3.70.0040.00710.23
5.3.60.0030.00710.41
5.3.50.0050.00810.34
5.3.40.0080.00610.46
5.3.30.0050.01010.50
5.3.20.0100.00710.25
5.3.10.0090.00610.08
5.3.00.0080.0059.96
5.2.170.0070.0059.26
5.2.160.0060.0049.45
5.2.150.0050.0069.44
5.2.140.0070.0079.44
5.2.130.0080.0039.43
5.2.120.0050.0059.55
5.2.110.0090.0039.52
5.2.100.0100.0029.43
5.2.90.0120.0009.19
5.2.80.0120.0009.42
5.2.70.0070.0059.39
5.2.60.0060.0099.42
5.2.50.0050.0119.36
5.2.40.0090.0039.28
5.2.30.0110.0009.40
5.2.20.0090.0038.96
5.2.10.0090.0039.25
5.2.00.0130.0009.04
5.1.60.0070.0078.61
5.1.50.0060.0068.61
5.1.40.0090.0058.69
5.1.30.0100.0008.85
5.1.20.0080.0038.61
5.1.10.0070.0028.73
5.1.00.0050.0048.61
5.0.50.0080.0008.61
5.0.40.0090.0008.61
5.0.30.0080.0008.61
5.0.20.0080.0008.61
5.0.10.0030.0058.61
5.0.00.0070.0028.61
4.4.90.0000.0108.61
4.4.80.0100.0008.61
4.4.70.0090.0008.61
4.4.60.0080.0008.61
4.4.50.0040.0048.61
4.4.40.0050.0028.61
4.4.30.0050.0048.61
4.4.20.0040.0048.61
4.4.10.0060.0008.61
4.4.00.0000.0098.61
4.3.110.0030.0038.61
4.3.100.0030.0068.61
4.3.90.0050.0028.61
4.3.80.0050.0058.61
4.3.70.0080.0028.61
4.3.60.0030.0058.61
4.3.50.0070.0058.61
4.3.40.0070.0008.61
4.3.30.0040.0048.61
4.3.20.0080.0008.61
4.3.10.0080.0008.61
4.3.00.0030.0078.61

preferences:
43.34 ms | 403 KiB | 5 Q