3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0.6/0.1; printf( "%1.36d\n", $a); $b = $a % 5; print "\$a=$a; \$b=$b\n"; # result: # $a=6; $b=0 # One should expect $b = 1 $a = 0.6/0.1; $a = round($a); printf( "%1.36d\n", $a); $b = $a % 5; print "\$a=$a; \$b=$b\n";

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.0090.00918.43
8.3.50.0070.01222.05
8.3.40.0090.00618.84
8.3.30.0070.01118.54
8.3.20.0040.00418.73
8.3.10.0040.00421.21
8.3.00.0040.00423.78
8.2.180.0140.00416.63
8.2.170.0120.00322.96
8.2.160.0190.00020.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00521.07
8.2.110.0140.00720.47
8.2.100.0090.00317.84
8.2.90.0060.00319.14
8.2.80.0080.00017.97
8.2.70.0060.00317.75
8.2.60.0060.00318.05
8.2.50.0050.00318.07
8.2.40.0040.00418.34
8.2.30.0000.00721.43
8.2.20.0040.00417.56
8.2.10.0030.00517.89
8.2.00.0050.00317.71
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0140.00722.58
8.1.230.0100.00020.88
8.1.220.0080.00018.77
8.1.210.0040.00419.02
8.1.200.0060.00317.38
8.1.190.0040.00417.65
8.1.180.0080.00018.10
8.1.170.0000.00718.61
8.1.160.0000.00718.78
8.1.150.0000.00818.68
8.1.140.0000.00817.41
8.1.130.0000.00717.79
8.1.120.0000.00717.42
8.1.110.0040.00417.45
8.1.100.0040.00417.50
8.1.90.0040.00417.47
8.1.80.0000.00717.45
8.1.70.0000.00717.35
8.1.60.0000.00817.55
8.1.50.0070.00017.39
8.1.40.0000.00817.55
8.1.30.0060.00317.57
8.1.20.0050.00317.66
8.1.10.0070.00017.60
8.1.00.0000.00817.53
8.0.300.0040.00419.97
8.0.290.0050.00217.30
8.0.280.0070.00018.53
8.0.270.0000.00717.31
8.0.260.0030.00516.87
8.0.250.0000.00817.05
8.0.240.0090.00017.01
8.0.230.0030.00316.91
8.0.220.0060.00316.83
8.0.210.0070.00016.94
8.0.200.0050.00516.96
8.0.190.0040.00417.02
8.0.180.0000.00916.85
8.0.170.0040.00416.94
8.0.160.0040.00416.83
8.0.150.0030.00316.91
8.0.140.0070.00016.88
8.0.130.0030.00313.34
8.0.120.0040.00416.80
8.0.110.0030.00616.96
8.0.100.0050.00316.83
8.0.90.0050.00316.82
8.0.80.0040.01616.88
8.0.70.0050.00516.96
8.0.60.0070.00016.88
8.0.50.0030.00516.89
8.0.30.0140.00917.15
8.0.20.0100.01017.40
8.0.10.0040.00417.00
8.0.00.0090.01016.66
7.4.330.0030.00314.78
7.4.320.0000.00716.51
7.4.300.0060.00016.62
7.4.290.0030.00316.53
7.4.280.0040.00416.64
7.4.270.0000.00716.52
7.4.260.0060.00013.27
7.4.250.0060.00316.46
7.4.240.0000.00716.55
7.4.230.0000.00716.58
7.4.220.0120.00516.31
7.4.210.0090.00916.48
7.4.200.0070.00016.60
7.4.190.0000.00716.58
7.4.160.0100.00716.28
7.4.150.0030.01417.40
7.4.140.0100.01217.86
7.4.130.0140.00416.60
7.4.120.0070.00916.40
7.4.110.0100.01416.54
7.4.100.0100.01016.50
7.4.90.0110.00616.51
7.4.80.0160.00319.39
7.4.70.0090.00916.45
7.4.60.0060.01116.47
7.4.50.0060.00316.53
7.4.40.0080.00822.52
7.4.30.0100.00616.47
7.4.00.0060.00814.84
7.3.330.0020.00213.26
7.3.320.0030.00313.29
7.3.310.0000.00716.51
7.3.300.0030.00316.25
7.3.290.0070.00616.38
7.3.280.0100.00516.42
7.3.270.0130.00917.40
7.3.260.0100.01518.24
7.3.250.0110.00616.42
7.3.240.0080.00816.57
7.3.230.0090.00916.39
7.3.210.0140.00316.61
7.3.200.0120.00919.39
7.3.190.0060.01216.37
7.3.180.0070.01016.36
7.3.170.0140.00316.59
7.3.160.0120.00316.46
7.3.120.0070.00914.73
7.3.110.0080.00314.52
7.3.100.0060.00914.44
7.3.90.0030.01014.53
7.3.80.0030.01014.82
7.3.70.0060.00614.89
7.3.60.0000.01414.39
7.3.50.0100.00014.38
7.3.40.0030.00914.58
7.3.30.0000.01114.79
7.3.20.0030.01016.54
7.3.10.0060.00616.42
7.3.00.0040.01116.81
7.2.330.0090.00916.55
7.2.320.0150.00816.68
7.2.310.0080.00816.76
7.2.300.0110.01116.68
7.2.290.0120.00916.68
7.2.250.0150.00414.97
7.2.240.0080.01114.74
7.2.230.0030.00914.82
7.2.220.0070.00714.89
7.2.210.0080.00414.79
7.2.200.0130.00014.89
7.2.190.0080.00814.94
7.2.180.0070.00715.07
7.2.170.0000.01414.93
7.2.00.0110.00619.34
7.1.330.0040.01015.71
7.1.320.0060.00915.92
7.1.310.0000.00816.13
7.1.300.0070.00415.81
7.1.290.0000.01315.70
7.1.280.0000.01315.48
7.1.270.0000.01515.75
7.1.260.0000.00915.91
7.1.100.0030.00618.22
7.1.70.0000.01017.16
7.1.60.0070.01719.40
7.1.50.0040.01516.69
7.1.00.0030.03722.57
7.0.200.0040.00416.94
7.0.140.0100.06722.08
7.0.70.0030.04021.76
7.0.60.0000.04321.58
7.0.50.0030.04022.11
7.0.40.0000.03320.18
7.0.30.0000.04020.13
7.0.20.0030.05020.17
7.0.10.0030.03319.98
7.0.00.0000.05020.09
5.6.280.0000.07721.15
5.6.220.0030.04020.61
5.6.210.0000.04720.64
5.6.200.0000.04321.11
5.6.190.0000.03721.08
5.6.180.0030.04020.94
5.6.170.0000.03720.95
5.6.160.0000.04021.01
5.6.150.0000.04021.13
5.6.140.0070.03321.00
5.6.130.0030.07321.07
5.6.120.0070.04321.04
5.6.110.0030.04020.99
5.6.100.0000.03321.04
5.6.90.0030.05320.90
5.6.80.0000.04020.39
5.6.70.0000.03320.39
5.6.60.0070.03020.43
5.6.50.0030.05720.41
5.6.40.0070.03720.37
5.6.30.0100.03320.41
5.6.20.0000.03720.37
5.6.10.0030.03020.37
5.6.00.0000.04020.38
5.5.360.0070.03720.37
5.5.350.0030.04020.46
5.5.340.0000.04020.77
5.5.330.0000.04020.75
5.5.320.0030.03020.91
5.5.310.0000.04020.81
5.5.300.0030.04720.85
5.5.290.0000.08320.91
5.5.280.0030.05320.63
5.5.270.0000.04320.82
5.5.260.0030.04020.88
5.5.250.0030.03320.45
5.5.240.0030.03720.23
5.5.230.0000.03720.10
5.5.220.0000.03320.23
5.5.210.0030.03020.21
5.5.200.0000.05720.23
5.5.190.0070.03720.10
5.5.180.0000.03320.14
5.5.160.0030.03020.26
5.5.150.0030.03020.16
5.5.140.0030.03020.07
5.5.130.0000.04020.26
5.5.120.0000.03320.09
5.5.110.0000.03320.23
5.5.100.0070.02720.11
5.5.90.0000.03720.14
5.5.80.0030.03020.06
5.5.70.0070.02719.96
5.5.60.0100.03020.07
5.5.50.0000.03719.99
5.5.40.0030.03019.92
5.5.30.0000.03720.07
5.5.20.0000.03720.06
5.5.10.0000.05020.07
5.5.00.0000.04320.07
5.4.450.0030.03019.39
5.4.440.0030.05019.38
5.4.430.0030.03719.35
5.4.420.0000.04019.16
5.4.410.0070.04319.36
5.4.400.0000.03718.97
5.4.390.0000.03718.87
5.4.380.0000.04019.20
5.4.370.0000.03319.09
5.4.360.0000.04319.06
5.4.350.0000.04319.14
5.4.340.0100.02318.96
5.4.320.0000.03318.96
5.4.310.0070.03018.90
5.4.300.0030.03318.96
5.4.290.0000.03319.07
5.4.280.0030.03019.18
5.4.270.0030.02719.06
5.4.260.0000.03319.15
5.4.250.0000.03019.13
5.4.240.0000.04318.95
5.4.230.0000.03719.16
5.4.220.0070.03319.10
5.4.210.0000.03719.01
5.4.200.0000.03019.15
5.4.190.0000.04719.14
5.4.180.0030.03019.16
5.4.170.0070.02719.27
5.4.160.0000.03319.00
5.4.150.0030.03318.82
5.4.140.0000.06016.38
5.4.130.0030.07016.36
5.4.120.0030.07016.32
5.4.110.0030.07016.43
5.4.100.0070.07016.21
5.4.90.0030.07016.39
5.4.80.0030.07016.40
5.4.70.0030.07316.41
5.4.60.0070.05716.26
5.4.50.0030.07316.36
5.4.40.0100.06716.39
5.4.30.0030.05316.29
5.4.20.0030.05716.39
5.4.10.0070.07716.28
5.4.00.0070.06015.79
5.3.290.0000.03014.58
5.3.280.0000.03014.49
5.3.270.0000.03714.64
5.3.260.0030.03014.61
5.3.250.0030.07014.63
5.3.240.0030.06014.55
5.3.230.0030.05314.64
5.3.220.0030.05714.50
5.3.210.0030.05014.48
5.3.200.0070.06714.48
5.3.190.0030.07314.54
5.3.180.0030.07314.52
5.3.170.0000.07314.61
5.3.160.0030.04314.49
5.3.150.0130.03714.48
5.3.140.0030.05014.49
5.3.130.0030.07714.46
5.3.120.0000.07014.60
5.3.110.0070.06314.59
5.3.100.0000.07713.96
5.3.90.0070.06314.02
5.3.80.0100.06313.98
5.3.70.0070.05013.84
5.3.60.0030.05714.01
5.3.50.0000.07313.80
5.3.40.0030.07313.79
5.3.30.0030.05013.86
5.3.20.0000.06713.45
5.3.10.0030.07013.50
5.3.00.0000.04713.45
5.2.170.0000.03012.47
5.2.160.0000.06012.47
5.2.150.0070.06312.47
5.2.140.0000.03312.47
5.2.130.0030.04012.47
5.2.120.0030.05312.47
5.2.110.0070.04012.47
5.2.100.0000.03012.47
5.2.90.0000.03712.47
5.2.80.0000.03312.47
5.2.70.0030.03312.47
5.2.60.0100.06312.47
5.2.50.0000.07012.47
5.2.40.0000.06312.47
5.2.30.0070.04012.47
5.2.20.0030.04712.47
5.2.10.0030.04312.47
5.2.00.0100.05012.47
5.1.60.0030.03312.47
5.1.50.0030.05312.47
5.1.40.0000.04712.47
5.1.30.0030.04012.47
5.1.20.0070.04312.47
5.1.10.0030.05312.47
5.1.00.0000.05712.47
5.0.50.0030.03012.47
5.0.40.0030.04712.47
5.0.30.0030.05712.47
5.0.20.0030.04712.47
5.0.10.0000.04712.47
5.0.00.0030.06312.47
4.4.90.0000.03012.47
4.4.80.0030.02312.47
4.4.70.0000.03712.47
4.4.60.0030.02712.47
4.4.50.0030.02312.47
4.4.40.0030.04012.47
4.4.30.0070.03012.47
4.4.20.0030.02312.47
4.4.10.0100.02712.47
4.4.00.0030.04712.47
4.3.110.0000.03012.47
4.3.100.0000.03312.47
4.3.90.0070.03012.47
4.3.80.0000.05012.47
4.3.70.0000.03312.47
4.3.60.0000.02312.47
4.3.50.0030.02312.47
4.3.40.0000.03712.47
4.3.30.0030.02012.47
4.3.20.0000.03312.47
4.3.10.0030.03712.47
4.3.00.0000.03312.47

preferences:
46.11 ms | 401 KiB | 5 Q