3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rate1=0.02; $level1=1260; echo number_format($level1 * $rate1, 2)."<br>"; //gives me 0.02(expected result should be 25.02) echo number_format(1260 * 0.02, 2); //gives me 25.02

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.70.0090.00918.18
8.3.60.0000.01416.63
8.3.50.0040.01116.00
8.3.40.0070.00718.73
8.3.30.0080.00818.57
8.3.20.0040.00420.16
8.3.10.0070.00021.73
8.3.00.0000.00917.52
8.2.180.0110.00416.63
8.2.170.0040.01122.96
8.2.160.0060.01320.54
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00721.12
8.2.120.0040.00426.35
8.2.110.0070.00320.29
8.2.100.0110.00017.84
8.2.90.0080.00019.36
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0050.00518.10
8.2.40.0040.00420.45
8.2.30.0040.00419.30
8.2.20.0000.00818.10
8.2.10.0000.00818.19
8.2.00.0080.00018.11
8.1.280.0140.00325.92
8.1.270.0040.00424.04
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0100.00017.70
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00017.34
8.1.190.0060.00317.35
8.1.180.0110.00018.10
8.1.170.0040.00418.66
8.1.160.0040.00419.12
8.1.150.0000.00718.85
8.1.140.0040.00419.57
8.1.130.0040.00418.81
8.1.120.0000.00717.54
8.1.110.0040.00417.41
8.1.100.0050.00317.41
8.1.90.0040.00417.44
8.1.80.0040.00417.50
8.1.70.0030.00717.37
8.1.60.0040.00417.64
8.1.50.0000.00817.52
8.1.40.0040.00417.58
8.1.30.0070.00017.53
8.1.20.0030.00517.60
8.1.10.0000.00817.58
8.1.00.0020.00517.40
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.50
8.0.270.0040.00417.29
8.0.260.0030.00316.77
8.0.250.0000.00616.94
8.0.240.0000.00817.00
8.0.230.0040.00416.87
8.0.220.0040.00416.89
8.0.210.0000.00816.96
8.0.200.0060.00016.95
8.0.190.0030.00616.84
8.0.180.0040.00416.83
8.0.170.0000.00717.00
8.0.160.0040.00417.02
8.0.150.0030.00516.83
8.0.140.0000.00716.85
8.0.130.0000.00513.39
8.0.120.0030.00516.84
8.0.110.0000.00716.89
8.0.100.0000.00816.82
8.0.90.0050.00316.86
8.0.80.0060.01316.97
8.0.70.0000.00716.83
8.0.60.0040.00416.82
8.0.50.0080.00016.69
8.0.30.0100.00817.03
8.0.20.0110.00817.40
8.0.10.0030.00317.02
8.0.00.0100.00716.94
7.4.330.0030.00315.55
7.4.320.0030.00316.41
7.4.300.0000.00716.55
7.4.290.0030.00616.57
7.4.280.0040.00416.58
7.4.270.0000.00816.49
7.4.260.0030.00313.32
7.4.250.0000.00816.52
7.4.240.0000.00716.61
7.4.230.0040.00416.56
7.4.220.0030.01716.59
7.4.210.0080.00616.45
7.4.200.0070.00016.49
7.4.160.0090.00716.53
7.4.150.0060.01217.40
7.4.140.0130.00817.86
7.4.130.0060.01216.61
7.4.120.0100.00816.53
7.4.110.0130.00716.63
7.4.100.0120.00616.41
7.4.90.0120.00616.49
7.4.80.0160.00619.39
7.4.70.0090.00616.45
7.4.60.0060.01016.43
7.4.50.0070.01016.53
7.4.40.0150.00916.34
7.4.30.0180.00016.62
7.4.00.0070.01014.87
7.3.330.0000.00613.23
7.3.320.0030.00313.27
7.3.310.0000.00716.43
7.3.300.0070.00016.33
7.3.290.0090.00616.34
7.3.280.0080.00816.29
7.3.270.0140.00317.40
7.3.260.0080.01216.49
7.3.250.0120.01016.62
7.3.240.0060.01416.49
7.3.230.0070.01016.59
7.3.210.0090.00616.30
7.3.200.0070.01016.41
7.3.190.0070.00716.57
7.3.180.0160.00616.36
7.3.170.0100.00716.50
7.3.160.0040.01216.57
7.3.120.0100.00614.95
7.3.110.0070.01115.03
7.3.100.0030.01314.51
7.3.90.0040.01214.76
7.3.80.0140.00415.12
7.3.70.0030.00714.73
7.3.60.0030.01014.84
7.3.50.0070.00714.75
7.3.40.0030.00614.88
7.3.30.0000.01414.77
7.3.20.0120.00316.82
7.3.10.0030.00916.49
7.3.00.0100.00016.58
7.2.330.0140.00316.46
7.2.320.0100.00716.89
7.2.310.0120.00916.41
7.2.300.0030.01516.77
7.2.290.0140.00416.66
7.2.250.0060.01314.92
7.2.240.0100.01015.12
7.2.230.0090.00614.78
7.2.220.0000.01115.06
7.2.210.0070.01115.23
7.2.200.0120.00014.79
7.2.190.0090.00614.79
7.2.180.0060.00314.89
7.2.170.0080.00814.85
7.2.00.0030.01419.44
7.1.330.0080.00815.78
7.1.320.0030.00615.68
7.1.310.0060.00915.44
7.1.300.0000.01415.68
7.1.290.0030.01015.62
7.1.280.0090.00615.69
7.1.270.0070.01015.73
7.1.260.0030.00615.67
7.1.100.0030.01017.87
7.1.70.0040.00417.15
7.1.60.0100.00317.14
7.1.50.0070.00416.89
7.1.40.0000.01116.63
7.1.30.0040.00716.63
7.1.20.0000.01216.79
7.1.10.0000.00716.63
7.1.00.0040.00416.66
7.0.200.0000.00716.63
7.0.190.0030.00316.63
7.0.180.0040.00416.63
7.0.170.0100.00316.63
7.0.160.0030.00716.63
7.0.150.0000.00816.63
7.0.140.0000.00716.63
7.0.130.0050.00316.63
7.0.120.0040.00416.63
7.0.110.0000.00816.63
7.0.100.0070.00716.63
7.0.90.0070.00416.63
7.0.80.0000.00816.63
7.0.70.0040.00416.63
7.0.60.0100.00616.63
7.0.50.0050.00516.63
7.0.40.0050.00316.63
7.0.30.0040.00416.63
7.0.20.0000.00716.63
7.0.10.0000.00816.63
7.0.00.0000.00716.63
5.6.300.0030.04120.91
5.6.290.0030.04020.89
5.6.280.0030.04021.00
5.6.270.0100.03920.84
5.6.260.0030.05120.75
5.6.250.0070.04120.86
5.6.240.0000.04921.03
5.6.230.0060.03920.85
5.6.220.0030.04320.96
5.6.210.0030.03921.01
5.6.200.0030.06621.04
5.6.190.0030.04420.82
5.6.180.0030.04020.98
5.6.170.0190.03820.81
5.6.160.0030.04320.82
5.6.150.0030.04120.98
5.6.140.0000.04520.82
5.6.130.0070.07620.97
5.6.120.0000.04520.92
5.6.110.0000.04520.72
5.6.100.0130.03920.93
5.6.90.0030.04120.71
5.6.80.0000.05020.34
5.6.70.0070.04620.28
5.6.60.0030.04020.22
5.6.50.0180.04120.38
5.6.40.0100.04020.39
5.6.30.0070.04020.15
5.6.20.0040.04420.19
5.6.10.0040.04520.33
5.6.00.0040.04420.16
5.5.380.0070.03817.58
5.5.370.0070.04317.45
5.5.360.0030.04317.46
5.5.350.0070.03417.60
5.5.340.0070.03917.97
5.5.330.0070.03718.04
5.5.320.0000.04218.05
5.5.310.0070.04518.00
5.5.300.0030.03817.74
5.5.290.0030.04318.02
5.5.280.0070.04618.00
5.5.270.0070.04618.02
5.5.260.0000.08817.82
5.5.250.0030.05517.75
5.5.240.0040.03917.29
5.5.230.0030.05017.38
5.5.220.0000.04917.31
5.5.210.0060.03517.42
5.5.200.0000.04117.33
5.5.190.0000.04117.40
5.5.180.0030.03817.18
5.5.160.0000.03917.33
5.5.150.0030.04017.10
5.5.140.0000.04317.28
5.5.130.0000.04417.37
5.5.120.0030.03617.08
5.5.110.0090.03817.37
5.5.100.0030.04217.28
5.5.90.0230.03717.30
5.5.80.0000.04117.32
5.5.70.0070.03616.98
5.5.60.0030.03817.28
5.5.50.0000.03817.09
5.5.40.0000.03917.30
5.5.30.0030.03617.26
5.5.20.0030.03717.25
5.5.10.0030.04217.27
5.5.00.0030.03917.20
5.4.450.0130.03019.48
5.4.440.0030.04719.46
5.4.430.0070.04019.48
5.4.420.0000.05119.46
5.4.410.0030.03919.24
5.4.400.0000.04218.97
5.4.390.0060.04319.11
5.4.380.0000.04518.84
5.4.370.0030.03719.14
5.4.360.0030.03919.13
5.4.350.0030.04118.86
5.4.340.0030.03819.09
5.4.320.0070.04019.12
5.4.310.0000.04019.13
5.4.300.0000.04018.84
5.4.290.0070.03319.06
5.4.280.0000.04219.13
5.4.270.0000.04019.06
5.4.260.0060.04219.08
5.4.250.0030.03518.88
5.4.240.0100.03019.08
5.4.230.0060.03819.10
5.4.220.0000.04218.82
5.4.210.0060.03519.11
5.4.200.0030.04918.85
5.4.190.0070.03318.87
5.4.180.0000.04119.13
5.4.170.0000.04319.11
5.4.160.0000.04118.81
5.4.150.0030.04019.02
5.4.140.0030.03616.63
5.4.130.0040.03916.63
5.4.120.0030.04016.63
5.4.110.0000.04716.73
5.4.100.0000.04016.63
5.4.90.0040.04316.63
5.4.80.0030.03416.63
5.4.70.0030.03816.63
5.4.60.0100.03516.63
5.4.50.0070.03016.63
5.4.40.0030.06416.63
5.4.30.0100.06216.63
5.4.20.0030.03416.63
5.4.10.0000.04316.70
5.4.00.0000.03716.63
5.3.290.0040.04316.63
5.3.280.0000.03916.63
5.3.270.0070.05216.63
5.3.260.0070.03716.63
5.3.250.0000.03816.63
5.3.240.0030.03716.63
5.3.230.0040.03916.63
5.3.220.0000.04616.63
5.3.210.0000.04316.63
5.3.200.0030.03416.63
5.3.190.0030.03716.63
5.3.180.0000.04216.63
5.3.170.0030.03616.63
5.3.160.0070.03816.63
5.3.150.0000.04116.63
5.3.140.0070.06916.63
5.3.130.0000.04216.63
5.3.120.0030.04116.63
5.3.110.0100.04316.63
5.3.100.0000.03916.63
5.3.90.0060.03516.63
5.3.80.0000.03716.63
5.3.70.0000.03716.63
5.3.60.0030.03716.63
5.3.50.0030.03516.63
5.3.40.0000.03716.63
5.3.30.0030.03316.63
5.3.20.0040.03216.63
5.3.10.0030.03716.63
5.3.00.0060.03216.63
5.2.170.0030.03216.63
5.2.160.0040.02916.63
5.2.150.0030.02816.63
5.2.140.0030.03516.63
5.2.130.0040.03216.63
5.2.120.0100.03016.63
5.2.110.0000.03016.63
5.2.100.0000.03216.63
5.2.90.0000.03216.63
5.2.80.0000.03316.63
5.2.70.0070.02416.63
5.2.60.0030.02816.63
5.2.50.0070.03316.63
5.2.40.0000.03416.63
5.2.30.0060.06116.63
5.2.20.0040.03616.63
5.2.10.0000.03316.63
5.2.00.0070.02416.63
5.1.60.0000.02616.63
5.1.50.0030.02716.63
5.1.40.0060.02116.63
5.1.30.0060.02916.63
5.1.20.0000.03716.63
5.1.10.0030.05216.63
5.1.00.0060.03716.63
5.0.50.0030.04716.63
5.0.40.0030.01816.63
5.0.30.0000.05116.63
5.0.20.0000.03216.63
5.0.10.0000.03916.63
5.0.00.0060.02916.63
4.4.90.0030.01316.63
4.4.80.0000.01616.63
4.4.70.0000.01816.63
4.4.60.0030.01516.63
4.4.50.0000.01716.63
4.4.40.0000.03316.63
4.4.30.0030.01916.63
4.4.20.0030.01716.63
4.4.10.0000.03416.63
4.4.00.0030.04216.63
4.3.110.0030.01916.63
4.3.100.0000.03016.63
4.3.90.0030.03416.63
4.3.80.0060.04816.63
4.3.70.0060.02816.63
4.3.60.0030.03416.63
4.3.50.0000.03816.63
4.3.40.0000.04216.63
4.3.30.0000.04016.63
4.3.20.0000.03916.63
4.3.10.0000.03416.63
4.3.00.0060.01216.63

preferences:
58.7 ms | 400 KiB | 5 Q