3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = (float)(44.28); $multiple = (float)(0.35); $calc = $count / $multiple; //$calc = 44.28 / 0.36 = 123 //$calc = number_format($calc, 2, '.', ''); if ((string)(int) $calc === (string)$calc) die("is integer"); else die("is not integer");

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.0140.00718.43
8.3.50.0100.00821.99
8.3.40.0110.00418.77
8.3.30.0100.00618.96
8.3.20.0000.00720.12
8.3.10.0040.00422.09
8.3.00.0000.00822.34
8.2.180.0070.01416.50
8.2.170.0100.01022.96
8.2.160.0100.00319.21
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0060.00319.49
8.2.110.0030.00620.91
8.2.100.0040.00817.97
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0060.00319.89
8.2.30.0040.00418.10
8.2.20.0000.00717.78
8.2.10.0080.00017.79
8.2.00.0060.00317.60
8.1.280.0100.01325.92
8.1.270.0080.00022.19
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00621.43
8.1.230.0060.00617.52
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0000.00817.35
8.1.180.0000.00818.66
8.1.170.0080.00018.38
8.1.160.0060.00322.15
8.1.150.0040.00418.55
8.1.140.0000.00817.50
8.1.130.0000.00717.79
8.1.120.0000.00817.38
8.1.110.0000.00817.27
8.1.100.0000.00717.43
8.1.90.0040.00417.42
8.1.80.0040.00317.46
8.1.70.0000.00717.38
8.1.60.0040.00417.63
8.1.50.0000.00717.35
8.1.40.0000.00717.53
8.1.30.0000.00717.52
8.1.20.0050.00317.65
8.1.10.0050.00217.44
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0070.00017.25
8.0.260.0030.00316.80
8.0.250.0040.00416.99
8.0.240.0070.00016.99
8.0.230.0070.00016.92
8.0.220.0030.00316.82
8.0.210.0050.00216.91
8.0.200.0060.00017.00
8.0.190.0070.00017.02
8.0.180.0070.00016.82
8.0.170.0040.00416.82
8.0.160.0030.00516.83
8.0.150.0040.00416.69
8.0.140.0000.00716.79
8.0.130.0030.00313.30
8.0.120.0000.00816.79
8.0.110.0000.00816.88
8.0.100.0000.00716.89
8.0.90.0040.00416.77
8.0.80.0100.00616.84
8.0.70.0040.00416.80
8.0.60.0070.00017.00
8.0.50.0000.00716.80
8.0.30.0150.00717.06
8.0.20.0100.00717.40
8.0.10.0030.00617.17
8.0.00.0130.00416.84
7.4.330.0030.00315.03
7.4.320.0040.00416.41
7.4.300.0000.00616.38
7.4.290.0070.00016.57
7.4.280.0000.00616.57
7.4.270.0000.00716.54
7.4.260.0040.00416.56
7.4.250.0030.00616.55
7.4.240.0060.00116.46
7.4.230.0000.00716.32
7.4.220.0040.01416.64
7.4.210.0080.00616.52
7.4.200.0050.00216.51
7.4.190.0000.00716.61
7.4.160.0150.00916.60
7.4.150.0110.00717.40
7.4.140.0120.00917.86
7.4.130.0090.00816.53
7.4.120.0050.01216.68
7.4.110.0070.01416.55
7.4.100.0040.01416.45
7.4.90.0110.00616.33
7.4.80.0070.01019.39
7.4.70.0070.01016.60
7.4.60.0040.01416.54
7.4.50.0030.00616.66
7.4.40.0100.00622.77
7.4.30.0100.00616.65
7.4.00.0070.00315.07
7.3.330.0030.00313.31
7.3.320.0000.00613.30
7.3.310.0030.00316.22
7.3.300.0070.00016.41
7.3.290.0110.00416.42
7.3.280.0100.00616.33
7.3.270.0100.01317.40
7.3.260.0130.00416.32
7.3.250.0110.00816.44
7.3.240.0060.01016.31
7.3.230.0080.00816.39
7.3.210.0080.00816.45
7.3.200.0060.01019.39
7.3.190.0090.00616.41
7.3.180.0090.00916.37
7.3.170.0190.00316.36
7.3.160.0070.00816.68
7.3.120.0070.00314.59
7.2.330.0140.00716.66
7.2.320.0060.01216.47
7.2.310.0060.01616.44
7.2.300.0160.00016.75
7.2.290.0070.01016.29
7.1.70.0000.01116.98
7.1.60.0030.02019.82
7.1.50.0080.01216.93
7.1.00.0030.07022.34
7.0.200.0030.00616.61
7.0.140.0030.07722.18
7.0.60.0170.07319.78
7.0.50.0070.07017.89
7.0.40.0130.08020.06
7.0.30.0300.07320.00
7.0.20.0230.05320.03
7.0.10.0100.08320.17
7.0.00.0100.07720.29
5.6.280.0030.07320.88
5.6.210.0070.07720.66
5.6.200.0070.07018.12
5.6.190.0000.04320.37
5.6.180.0230.07720.77
5.6.170.0370.07320.40
5.6.160.0030.04720.49
5.6.150.0070.08318.16
5.6.140.0030.06718.10
5.6.130.0070.03718.13
5.6.120.0070.04021.04
5.6.110.0030.04321.13
5.6.100.0000.06021.01
5.6.90.0000.08021.10
5.6.80.0230.06720.29
5.5.350.0230.07320.43
5.5.340.0030.07017.92
5.5.330.0030.07720.27
5.5.320.0270.08020.18
5.5.310.0270.08020.28
5.5.300.0070.05017.91
5.5.290.0030.05317.89
5.5.280.0100.08320.88
5.5.270.0070.07020.95
5.5.260.0100.07320.95
5.5.250.0030.07020.69
5.5.240.0030.07720.15
5.4.450.0830.05019.61
5.4.440.0900.06019.52
5.4.430.0170.04719.63
5.4.420.0100.05719.48
5.4.410.0100.05318.95
5.4.400.0130.04718.71
5.4.390.0000.06018.47
5.4.380.0100.06718.72
5.4.370.0230.06318.53
5.4.360.0730.05718.70
5.4.350.0230.05318.72
5.4.340.0430.04718.56
5.4.320.0030.04112.46
5.4.310.0110.05412.45
5.4.300.0070.03412.46
5.4.290.0060.04312.45
5.4.280.0090.03812.35
5.4.270.0070.03912.35
5.4.260.0170.04318.82
5.4.250.0100.04718.86
5.4.240.0030.05718.87
5.4.230.0100.05318.64
5.4.220.0030.05718.87
5.4.210.0000.06019.01
5.4.200.0130.04718.76
5.4.190.0130.04718.81
5.4.180.0070.05019.02
5.4.170.0070.06018.87
5.4.160.0070.06719.02
5.4.150.0030.05718.85
5.4.140.0100.05316.50
5.4.130.0100.04316.43
5.4.120.0070.07316.24
5.4.110.0070.05016.36
5.4.100.0100.04716.28
5.4.90.0070.04716.32
5.4.80.0170.03716.28
5.4.70.0000.05716.46
5.4.60.0130.04016.46
5.4.50.0100.04716.25
5.4.40.0030.05716.32
5.4.30.0130.05716.25
5.4.20.0100.05716.46
5.4.10.0170.04316.33
5.4.00.0170.04315.65
5.3.290.0050.04512.80
5.3.280.0100.04714.29
5.3.270.0130.05314.49
5.3.260.0070.05014.69
5.3.250.0030.05314.60
5.3.240.0070.05014.65
5.3.230.0030.05314.61
5.3.220.0030.05314.48
5.3.210.0000.05714.66
5.3.200.0030.05014.58
5.3.190.0070.05014.59
5.3.180.0070.05014.32
5.3.170.0070.05014.43
5.3.160.0100.04714.60
5.3.150.0000.05314.42
5.3.140.0070.05014.55
5.3.130.0100.05314.55
5.3.120.0070.05714.54
5.3.110.0030.07714.55
5.3.100.0100.06313.90
5.3.90.0070.06713.78
5.3.80.0100.05314.02
5.3.70.0070.04713.87
5.3.60.0030.05314.01
5.3.50.0030.05713.72
5.3.40.0000.05313.86
5.3.30.0130.04314.06
5.3.20.0100.04313.54
5.3.10.0070.04713.49
5.3.00.0130.07013.65
5.2.170.0070.04011.08
5.2.160.0100.03311.05
5.2.150.0030.05311.16
5.2.140.0000.04311.15
5.2.130.0030.04011.19
5.2.120.0130.03711.11
5.2.110.0030.04011.21
5.2.100.0030.04010.98
5.2.90.0070.04011.11
5.2.80.0070.04011.18
5.2.70.0030.04311.24
5.2.60.0070.03710.94
5.2.50.0030.05310.95
5.2.40.0000.04311.01
5.2.30.0070.04010.93
5.2.20.0030.04010.87
5.2.10.0030.04310.92
5.2.00.0030.04010.79
5.1.60.0100.02710.00
5.1.50.0030.03310.04
5.1.40.0070.0339.96
5.1.30.0070.03310.39
5.1.20.0030.03710.30
5.1.10.0030.0509.97
5.1.00.0030.0539.89
5.0.50.0030.0278.77
5.0.40.0070.0338.45
5.0.30.0030.0438.05
5.0.20.0000.0308.24
5.0.10.0030.0408.35
5.0.00.0070.0378.14
4.4.90.0000.0235.79
4.4.80.0070.0175.81
4.4.70.0070.0175.81
4.4.60.0030.0205.96
4.4.50.0030.0205.89
4.4.40.0030.0335.88
4.4.30.0000.0235.82
4.4.20.0100.0175.91
4.4.10.0130.0235.95
4.4.00.0000.0375.88
4.3.110.0000.0235.75
4.3.100.0070.0205.75
4.3.90.0130.0205.74
4.3.80.0000.0375.75
4.3.70.0000.0205.72
4.3.60.0030.0205.79
4.3.50.0000.0305.72
4.3.40.0000.0405.71
4.3.30.0030.0275.24
4.3.20.0070.0175.24
4.3.10.0000.0235.24
4.3.00.0100.0276.75

preferences:
32.52 ms | 401 KiB | 5 Q