3v4l.org

run code in 300+ PHP versions simultaneously
<?php $large_number = PHP_INT_MAX + 100.1; var_dump(sprintf('%.30f', floor($large_number))); var_dump(sprintf('%.30f', intval(floor($large_number)))); ?>

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.120.0040.00422.63
8.4.110.0090.01022.40
8.4.100.0120.00617.73
8.4.90.0120.00820.61
8.4.80.0040.00518.94
8.4.70.0100.01118.98
8.4.60.0160.00520.65
8.4.50.0120.00818.66
8.4.40.0090.01217.70
8.4.30.0160.00320.58
8.4.20.0130.00619.70
8.4.10.0130.00619.41
8.3.250.0120.00718.37
8.3.240.0110.00718.93
8.3.230.0140.00516.68
8.3.220.0120.00718.79
8.3.210.0100.00816.70
8.3.200.0050.00416.59
8.3.190.0050.00317.25
8.3.180.0080.00719.01
8.3.170.0030.01417.17
8.3.160.0120.00617.09
8.3.150.0070.01116.37
8.3.140.0040.00416.46
8.3.130.0040.00416.62
8.3.120.0110.00418.88
8.3.110.0210.00020.94
8.3.100.0050.00324.06
8.3.90.0000.01626.77
8.3.80.0030.00616.75
8.3.70.0090.00616.75
8.3.60.0070.01416.50
8.3.50.0110.00624.57
8.3.40.0150.00320.42
8.3.30.0040.01118.58
8.3.20.0000.00824.18
8.3.10.0070.00024.66
8.3.00.0060.00326.16
8.2.290.0100.00716.59
8.2.280.0060.00318.49
8.2.270.0060.01218.66
8.2.260.0040.01417.39
8.2.250.0180.00018.58
8.2.240.0050.00318.96
8.2.230.0030.00622.58
8.2.220.0090.00037.54
8.2.210.0190.00026.77
8.2.200.0080.00416.50
8.2.190.0060.01516.58
8.2.180.0100.01025.92
8.2.170.0170.00318.91
8.2.160.0000.01422.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.15
8.2.110.0090.00020.49
8.2.100.0040.00818.03
8.2.90.0060.00317.88
8.2.80.0030.00618.91
8.2.70.0040.00417.93
8.2.60.0050.00317.63
8.2.50.0060.00318.05
8.2.40.0000.00818.16
8.2.30.0030.00618.05
8.2.20.0070.00018.10
8.2.10.0050.00319.18
8.2.00.0000.00719.21
8.1.330.0100.00822.07
8.1.320.0080.01218.10
8.1.310.0120.00616.78
8.1.300.0030.01416.04
8.1.290.0080.00418.88
8.1.280.0060.00925.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00323.83
8.1.230.0050.00517.82
8.1.220.0030.00617.79
8.1.210.0000.00818.77
8.1.200.0000.01217.48
8.1.190.0080.00017.36
8.1.180.0040.00418.10
8.1.170.0050.00317.62
8.1.160.0040.00420.97
8.1.150.0050.00318.95
8.1.140.0000.00818.98
8.1.130.0030.00317.50
8.1.120.0000.00717.39
8.1.110.0040.00417.52
8.1.100.0040.00417.48
8.1.90.0000.00717.46
8.1.80.0000.00917.61
8.1.70.0080.00317.57
8.1.60.0000.01017.64
8.1.50.0060.00317.51
8.1.40.0000.00817.63
8.1.30.0000.00817.63
8.1.20.0000.00717.73
8.1.10.0000.00917.53
8.1.00.0030.00617.43
8.0.300.0000.00818.77
8.0.290.0050.00216.75
8.0.280.0000.00718.50
8.0.270.0070.00017.97
8.0.260.0000.00618.58
8.0.250.0000.00717.03
8.0.240.0000.00717.03
8.0.230.0050.00216.87
8.0.220.0030.00316.88
8.0.210.0030.00316.96
8.0.200.0040.00417.02
8.0.190.0000.00816.89
8.0.180.0000.00717.00
8.0.170.0000.00916.96
8.0.160.0000.00716.98
8.0.150.0040.00416.96
8.0.140.0050.00516.91
8.0.130.0030.00313.39
8.0.120.0060.00316.90
8.0.110.0000.00817.01
8.0.100.0070.00016.91
8.0.90.0070.00016.83
8.0.80.0090.00816.88
8.0.70.0060.00316.89
8.0.60.0050.00216.98
8.0.50.0030.00516.82
8.0.30.0000.01817.20
8.0.20.0070.01116.99
8.0.10.0040.00417.17
8.0.00.0120.00616.92
7.4.330.0030.00315.55
7.4.320.0030.00316.62
7.4.300.0040.00416.61
7.4.290.0030.00316.66
7.4.280.0050.00316.75
7.4.270.0030.00616.55
7.4.260.0050.00013.38
7.4.250.0000.00716.51
7.4.240.0030.00616.64
7.4.230.0030.00316.75
7.4.220.0060.00116.67
7.4.210.0040.01216.71
7.4.200.0070.00016.74
7.4.130.0100.01116.64
7.4.120.0090.01316.63
7.4.110.0060.01116.58
7.4.100.0070.01516.56
7.4.90.0090.00916.54
7.4.80.0100.00716.61
7.4.70.0070.01116.45
7.4.60.0120.00916.58
7.4.50.0140.00716.30
7.4.40.0040.01216.36
7.4.30.0100.00716.59
7.4.20.0060.01516.25
7.4.10.0120.00916.61
7.4.00.0090.01416.42
7.3.330.0000.00716.13
7.3.320.0050.00013.24
7.3.310.0030.00316.14
7.3.300.0000.00616.23
7.3.290.0100.00816.33
7.3.260.0100.00716.54
7.3.230.0100.00616.53
7.3.220.0160.00616.25
7.3.210.0130.00416.50
7.3.200.0070.01316.47
7.3.190.0150.00616.09
7.3.180.0070.01416.48
7.3.170.0100.00716.48
7.3.160.0140.00316.42
7.3.150.0090.00916.49
7.3.140.0120.01216.51
7.3.130.0120.00916.57
7.3.120.0170.00016.44
7.3.110.0070.01016.28
7.3.100.0120.00616.27
7.3.90.0070.01016.52
7.3.80.0120.00616.62
7.3.70.0110.00716.45
7.3.60.0030.01516.11
7.3.50.0110.00716.25
7.3.40.0150.00316.30
7.3.30.0060.01116.50
7.3.20.0110.01016.40
7.3.10.0080.01216.48
7.3.00.0100.01316.40
7.2.330.0130.00916.39
7.2.320.0140.00416.43
7.2.310.0110.01416.54
7.2.300.0060.01216.39
7.2.290.0060.01316.64
7.2.280.0070.01016.52
7.2.270.0090.00916.42
7.2.260.0030.01516.29
7.2.250.0040.01416.49
7.2.240.0110.00716.32
7.2.230.0090.00916.63
7.2.220.0100.00716.54
7.2.210.0000.01916.53
7.2.200.0150.00416.58
7.2.190.0090.00916.54
7.2.180.0100.00916.41
7.2.170.0150.00316.34
7.2.160.0160.00316.43
7.2.150.0130.00716.47
7.2.140.0210.00616.53
7.2.130.0060.01216.63
7.2.120.0260.00616.54
7.2.110.0110.00816.48
7.2.100.0090.01216.57
7.2.90.0100.01316.49
7.2.80.0140.00516.71
7.2.70.0060.01216.47
7.2.60.0110.00916.51
7.2.50.0060.01216.53
7.2.40.0100.01516.59
7.2.30.0150.00916.65
7.2.20.0040.01516.29
7.2.10.0090.00916.44
7.2.00.0140.00316.38

preferences:
28.09 ms | 403 KiB | 5 Q