3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 17.48; $number = intval(($number*10))/10; // x.0 if x.1,x.2,x.3 ; x.5 if x.4,x.5,x.6 ; x+1.0 if x.7,x.8,x.9 $whole = floor($number); //integer part $decimal = $whole - $number; // decimal part echo $decimal;

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.40.0100.00718.54
8.3.30.0070.00718.89
8.3.20.0000.00818.51
8.3.10.0070.00021.09
8.3.00.0080.00019.68
8.2.170.0110.00322.96
8.2.160.0130.00020.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.19
8.2.110.0100.00720.51
8.2.100.0040.00817.72
8.2.90.0060.00319.36
8.2.80.0070.00017.97
8.2.70.0030.00517.59
8.2.60.0030.00517.93
8.2.50.0090.00018.07
8.2.40.0040.00418.16
8.2.30.0040.00421.24
8.2.20.0080.00017.71
8.2.10.0050.00217.79
8.2.00.0000.00917.89
8.1.270.0030.00523.99
8.1.260.0080.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00022.52
8.1.230.0090.00321.03
8.1.220.0030.00518.77
8.1.210.0000.00818.91
8.1.200.0060.00317.48
8.1.190.0040.00417.41
8.1.180.0000.00818.10
8.1.170.0050.00318.59
8.1.160.0000.00718.77
8.1.150.0040.00418.54
8.1.140.0000.00717.43
8.1.130.0070.00017.73
8.1.120.0040.00417.49
8.1.110.0020.00517.39
8.1.100.0000.00817.53
8.1.90.0000.00717.54
8.1.80.0070.00017.39
8.1.70.0040.00417.41
8.1.60.0050.00317.56
8.1.50.0000.00817.54
8.1.40.0040.00417.62
8.1.30.0030.00617.70
8.1.20.0030.00617.63
8.1.10.0040.00717.58
8.1.00.0050.00317.43
8.0.300.0030.00519.98
8.0.290.0000.00817.29
8.0.280.0000.00818.54
8.0.270.0050.00217.30
8.0.260.0030.00316.92
8.0.250.0000.00717.03
8.0.240.0060.00316.93
8.0.230.0070.00017.00
8.0.220.0030.00317.00
8.0.210.0030.00316.96
8.0.200.0000.00716.86
8.0.190.0040.00416.96
8.0.180.0040.00416.93
8.0.170.0040.00416.78
8.0.160.0070.00016.76
8.0.150.0080.00016.76
8.0.140.0050.00316.87
8.0.130.0050.00013.34
8.0.120.0050.00216.80
8.0.110.0050.00216.93
8.0.100.0000.00716.69
8.0.90.0050.00216.83
8.0.80.0000.01416.82
8.0.70.0050.00216.94
8.0.60.0040.00416.82
8.0.50.0020.00516.85
8.0.30.0100.00817.27
8.0.20.0130.00517.41
8.0.10.0070.00016.88
8.0.00.0110.01216.90
7.4.330.0000.00516.81
7.4.320.0000.00616.41
7.4.300.0000.00716.60
7.4.290.0070.00016.65
7.4.280.0030.00316.68
7.4.270.0030.00316.53
7.4.260.0000.00513.26
7.4.250.0000.00816.63
7.4.240.0040.00316.58
7.4.230.0030.00316.72
7.4.220.0210.00616.49
7.4.210.0070.00716.60
7.4.200.0070.00016.63
7.4.190.0040.00416.81
7.4.160.0060.00916.38
7.4.150.0120.00917.40
7.4.140.0190.00817.86
7.4.130.0070.00916.45
7.4.120.0080.00816.60
7.4.110.0070.01016.61
7.4.100.0030.01416.36
7.4.90.0120.00616.56
7.4.80.0240.00419.39
7.4.70.0000.01616.60
7.4.60.0060.01216.54
7.4.50.0060.00316.61
7.4.40.0070.01022.77
7.4.30.0090.01216.74
7.3.330.0030.00313.30
7.3.320.0020.00213.15
7.3.310.0060.00016.27
7.3.300.0030.00316.34
7.3.290.0100.00616.27
7.3.280.0080.00716.28
7.3.270.0140.00317.40
7.3.260.0110.01018.24
7.3.250.0040.01416.54
7.3.240.0060.00916.36
7.3.230.0120.00916.39
7.3.210.0100.01016.52
7.3.200.0130.00316.50
7.3.190.0110.00616.36
7.3.180.0030.01316.17
7.3.170.0110.00416.32
7.3.160.0130.00316.42
7.2.330.0030.01416.51
7.2.320.0130.01016.64
7.2.310.0090.00916.70
7.2.300.0100.00716.64
7.2.290.0060.00916.63
7.1.70.0090.00617.34
7.1.60.0080.00817.28
7.1.50.0110.00416.98
7.1.40.1020.00315.41
7.1.30.0790.01015.41
7.1.20.0650.00615.41
7.1.10.0770.01515.41
7.1.00.0260.01016.90
7.0.200.0100.00216.81
7.0.190.0080.00416.66
7.0.180.0800.00615.41
7.0.170.0470.01315.41
7.0.160.0520.01015.41
7.0.150.0040.01216.19
7.0.140.0260.00816.40
7.0.130.0340.00316.30
7.0.120.0190.01016.78
7.0.110.0290.00416.46
7.0.100.0200.01016.24
7.0.90.0690.00715.41
7.0.80.0570.00315.41
7.0.70.0650.00715.41
7.0.60.0640.00315.41
7.0.50.0090.00516.04
7.0.40.0070.00715.41
7.0.30.0080.00415.41
7.0.20.0050.01115.41
7.0.10.0100.00615.41
7.0.00.0060.01115.41
5.6.300.0190.04420.74
5.6.290.0170.04320.88
5.6.280.0130.03920.99
5.6.270.0040.04620.86
5.6.260.0100.04520.99
5.6.250.0100.06820.88
5.6.240.0130.06320.85
5.6.230.0130.08220.87
5.6.220.0140.04220.73
5.6.210.0070.04520.95
5.6.200.0000.06020.76
5.6.190.0070.05020.61
5.6.180.0040.04220.81
5.6.170.0060.04120.82
5.6.160.0000.05820.80
5.6.150.0030.08120.61
5.6.140.0030.05020.75
5.6.130.0070.04220.82
5.6.120.0030.05120.77
5.6.110.0000.05020.66
5.6.100.0060.04520.57
5.6.90.0090.04320.78
5.6.80.0040.04420.27
5.6.70.0030.06820.15
5.6.60.0040.04920.26
5.6.50.0030.06520.27
5.6.40.0110.04220.25
5.6.30.0100.04620.18
5.6.20.0140.03619.93
5.6.10.0160.03220.25
5.6.00.0070.04120.26
5.5.380.0030.05217.48
5.5.370.0060.04017.50
5.5.360.0030.04317.42
5.5.350.0100.03717.39
5.5.340.0130.04917.73
5.5.330.0090.04117.70
5.5.320.0030.04317.86
5.5.310.0100.03717.77
5.5.300.0030.04517.89
5.5.290.0040.04717.96
5.5.280.0130.04217.86
5.5.270.0030.04117.99
5.5.260.0000.04417.73
5.5.250.0200.03617.68
5.5.240.0090.03517.29
5.5.230.0030.05717.13
5.5.220.0030.03817.27
5.5.210.0040.03917.12
5.5.200.0100.04117.22
5.5.190.0100.04517.26
5.5.180.0030.04317.31
5.5.160.0070.08217.14
5.5.150.0000.04417.20
5.5.140.0030.04017.21
5.5.130.0030.06317.21
5.5.120.0070.03717.15
5.5.110.0070.03917.20
5.5.100.0070.04017.05
5.5.90.0070.03717.04
5.5.80.0030.04217.14
5.5.70.0030.03717.11
5.5.60.0060.03617.22
5.5.50.0100.03116.98
5.5.40.0030.04117.15
5.5.30.0000.04217.11
5.5.20.0100.04017.11
5.5.10.0040.05017.09
5.5.00.0120.03516.93
5.4.450.0100.03619.19
5.4.440.0070.05319.37
5.4.430.0040.03919.22
5.4.420.0070.03819.15
5.4.410.0090.04718.97
5.4.400.0030.03818.83
5.4.390.0060.03518.85
5.4.380.0070.07318.93
5.4.370.0070.04018.82
5.4.360.0040.04018.77
5.4.350.0130.03618.86
5.4.340.0030.06019.04
5.4.320.0070.04018.84
5.4.310.0040.03918.91
5.4.300.0060.04418.77
5.4.290.0000.04518.90
5.4.280.0100.03818.91
5.4.270.0000.04518.78
5.4.260.0000.04119.09
5.4.250.0030.03718.80
5.4.240.0030.04418.80
5.4.230.0100.04319.00
5.4.220.0000.04418.80
5.4.210.0100.06918.84
5.4.200.0100.04118.84
5.4.190.0040.05818.85
5.4.180.0060.03618.73
5.4.170.0060.03819.00
5.4.160.0070.03918.84
5.4.150.0040.04318.79
5.4.140.0110.04916.50
5.4.130.0060.03916.23
5.4.120.0030.03816.29
5.4.110.0030.04316.38
5.4.100.0090.03016.20
5.4.90.0030.03516.55
5.4.80.0030.04016.20
5.4.70.0000.03716.40
5.4.60.0030.03416.18
5.4.50.0040.03916.35
5.4.40.0030.03416.56
5.4.30.0040.04616.32
5.4.20.0030.03616.24
5.4.10.0100.07916.46
5.4.00.0100.07015.83
5.3.290.0000.04315.41
5.3.280.0000.04215.41
5.3.270.0070.03615.41
5.3.260.0060.03615.41
5.3.250.0100.06615.41
5.3.240.0070.05115.41
5.3.230.0060.03715.41
5.3.220.0060.03815.41
5.3.210.0070.04515.41
5.3.200.0160.03215.41
5.3.190.0100.03415.41
5.3.180.0030.03715.41
5.3.170.0170.04515.41
5.3.160.0000.04015.41
5.3.150.0070.03315.41
5.3.140.0070.03415.41
5.3.130.0060.05415.41
5.3.120.0000.06915.41
5.3.110.0030.07315.41
5.3.100.0110.07415.41
5.3.90.0220.03515.41
5.3.80.0140.02715.41
5.3.70.0060.03615.41
5.3.60.0130.03015.41
5.3.50.0000.04015.41
5.3.40.0000.04615.41
5.3.30.0090.03515.41
5.3.20.0070.03115.41
5.3.10.0060.06515.41
5.3.00.0030.03815.41
5.2.170.0000.04615.41
5.2.160.0070.04615.41
5.2.150.0030.04515.41
5.2.140.0160.02215.41
5.2.130.0030.03115.41
5.2.120.0130.04815.41
5.2.110.0000.03215.41
5.2.100.0030.04615.41
5.2.90.0070.02715.41
5.2.80.0070.03215.41
5.2.70.0030.03715.41
5.2.60.0040.02815.41
5.2.50.0100.03015.41
5.2.40.0030.02915.41
5.2.30.0060.04115.41
5.2.20.0090.04715.41
5.2.10.0000.03415.41
5.2.00.0030.03715.41
5.1.60.0030.02515.41
5.1.50.0060.02315.41
5.1.40.0060.03415.41
5.1.30.0030.02815.41
5.1.20.0060.02515.41
5.1.10.0030.02615.41
5.1.00.0060.03015.41
5.0.50.0030.02115.41
5.0.40.0090.01715.41
5.0.30.0030.03415.41
5.0.20.0000.02415.41
5.0.10.0000.02915.41
5.0.00.0000.03615.41
4.4.90.0070.01015.41
4.4.80.0030.01415.41
4.4.70.0040.01815.41
4.4.60.0000.02415.41
4.4.50.0000.01815.41
4.4.40.0130.02015.41
4.4.30.0000.01715.41
4.4.20.0060.01515.41
4.4.10.0040.01515.41
4.4.00.0000.02715.41
4.3.110.0000.02115.41
4.3.100.0000.02015.41
4.3.90.0060.01215.41
4.3.80.0070.02015.41
4.3.70.0000.01815.41
4.3.60.0030.02015.41
4.3.50.0030.01915.41
4.3.40.0040.02215.41
4.3.30.0060.01615.41
4.3.20.0060.01215.41
4.3.10.0000.02215.41
4.3.00.0080.01415.41

preferences:
37.96 ms | 400 KiB | 5 Q