3v4l.org

run code in 300+ PHP versions simultaneously
<?php class booHoo{ public function __construct($stupidNumber, $anotherStupidNumber) { $this->stupidNumber = $stupidNumber; $this->anotherStupidNumber = $anotherStupidNumber; } public function magic() { $suchFraction = fmod($this->stupidNumber, $this->anotherStupidNumber); if($suchFraction > 0) { echo 'such Float, much fraction. Wow'; } else { echo 'such Integer, much clean. Wow'; } } } $count = float(44.28); $multiple = float(0.36); $greeter = new booHoo($count, $multiple); $greeter->magic();

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.0070.00716.63
8.3.50.0130.00221.92
8.3.40.0030.01218.59
8.3.30.0100.00319.23
8.3.20.0080.00020.16
8.3.10.0040.00423.59
8.3.00.0000.00820.58
8.2.180.0070.00718.43
8.2.170.0110.00422.96
8.2.160.0130.00022.11
8.2.150.0060.00324.18
8.2.140.0060.01024.66
8.2.130.0050.00226.16
8.2.120.0080.00022.29
8.2.110.0090.00020.88
8.2.100.0030.01217.78
8.2.90.0080.00019.16
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0060.00317.93
8.2.30.0070.00018.05
8.2.20.0070.00017.66
8.2.10.0050.00317.58
8.2.00.0080.00017.71
8.1.280.0100.00325.92
8.1.270.0000.00924.02
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00022.81
8.1.230.0070.00417.70
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00617.13
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0050.00318.65
8.1.160.0040.00721.86
8.1.150.0040.00418.47
8.1.140.0000.00817.34
8.1.130.0040.00417.24
8.1.120.0000.00717.29
8.1.110.0040.00717.34
8.1.100.0030.00517.27
8.1.90.0000.00717.21
8.1.80.0070.00017.41
8.1.70.0050.00317.23
8.1.60.0060.00317.29
8.1.50.0040.00417.46
8.1.40.0040.00417.46
8.1.30.0000.00817.60
8.1.20.0000.00717.58
8.1.10.0000.00717.55
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0030.00318.37
8.0.270.0030.00317.10
8.0.260.0000.00716.88
8.0.250.0000.00716.96
8.0.240.0000.00716.80
8.0.230.0070.00016.91
8.0.220.0040.00416.88
8.0.210.0030.00316.85
8.0.200.0070.00016.98
8.0.190.0030.00516.97
8.0.180.0070.00016.84
8.0.170.0000.00716.90
8.0.160.0040.00416.93
8.0.150.0030.00316.79
8.0.140.0070.00016.88
8.0.130.0030.00313.24
8.0.120.0060.00316.81
8.0.110.0040.00416.90
8.0.100.0000.00716.79
8.0.90.0040.00416.96
8.0.80.0090.00916.88
8.0.70.0000.00816.91
8.0.60.0000.00716.79
8.0.50.0040.00416.86
8.0.30.0100.01116.98
8.0.20.0090.01017.40
8.0.10.0000.00716.87
8.0.00.0120.00916.73
7.4.330.0020.00215.02
7.4.320.0000.00716.49
7.4.300.0000.00616.44
7.4.290.0030.00316.46
7.4.280.0030.00316.53
7.4.270.0060.00016.52
7.4.260.0000.00816.41
7.4.250.0040.00416.50
7.4.240.0040.00416.44
7.4.230.0000.00716.56
7.4.220.0100.01616.56
7.4.210.0080.00616.51
7.4.200.0030.00616.33
7.4.190.0040.00416.67
7.4.160.0060.00916.34
7.4.150.0170.00017.40
7.4.140.0110.00817.86
7.4.130.0100.01016.47
7.4.120.0140.00316.38
7.4.110.0060.01016.45
7.4.100.0150.00916.57
7.4.90.0040.01916.41
7.4.80.0090.00916.35
7.4.70.0030.01316.52
7.4.60.0090.00916.50
7.4.50.0040.00416.31
7.4.40.0040.01122.77
7.4.30.0000.01716.36
7.4.00.0090.00814.93
7.3.330.0050.00013.13
7.3.320.0000.00613.08
7.3.310.0030.00316.31
7.3.300.0000.00616.27
7.3.290.0000.01516.31
7.3.280.0100.00916.32
7.3.270.0090.00917.40
7.3.260.0160.00816.36
7.3.250.0120.00516.48
7.3.240.0070.01016.61
7.3.230.0070.01016.39
7.3.210.0100.00716.24
7.3.200.0120.00619.39
7.3.190.0030.02016.22
7.3.180.0130.00316.29
7.3.170.0090.00616.47
7.3.160.0030.01316.45
7.3.120.0050.01114.77
7.3.110.0120.00615.06
7.3.100.0100.00714.52
7.3.90.0040.00814.79
7.3.80.0150.00015.09
7.3.70.0100.00614.86
7.3.60.0000.01014.86
7.3.50.0060.00314.51
7.3.40.0000.01214.82
7.3.30.0100.00314.75
7.3.20.0070.00716.43
7.3.10.0080.00616.63
7.3.00.0090.00616.73
7.2.330.0090.00916.54
7.2.320.0080.01016.48
7.2.310.0110.00616.49
7.2.300.0100.00716.63
7.2.290.0030.01316.54
7.2.250.0000.02014.73
7.2.240.0100.01015.03
7.2.230.0080.00414.69
7.2.220.0030.00915.19
7.2.210.0060.00914.71
7.2.200.0070.01014.84
7.2.190.0080.00415.03
7.2.180.0000.01415.05
7.2.170.0090.00614.76
7.2.60.0000.00916.78
7.2.00.0100.00319.05
7.1.330.0040.01115.83
7.1.320.0030.01015.68
7.1.310.0050.00515.55
7.1.300.0030.00815.57
7.1.290.0030.01015.68
7.1.280.0070.00715.33
7.1.270.0040.00715.64
7.1.260.0110.00415.70
7.1.200.0000.01215.46
7.1.100.0070.00718.13
7.1.70.0130.00416.38
7.1.60.0070.01819.29
7.1.50.0040.01816.89
7.1.00.0000.08022.46
7.0.200.0040.01116.47
7.0.140.0030.07322.08
7.0.100.0030.03719.96
7.0.90.0100.04019.97
7.0.80.0230.04020.13
7.0.70.0030.04020.14
7.0.60.0230.06320.06
7.0.50.0170.06020.26
7.0.40.0070.04020.05
7.0.30.0070.08720.09
7.0.20.0030.08020.11
7.0.10.0070.06720.07
7.0.00.0070.07320.04
5.6.280.0030.07321.14
5.6.250.0070.03720.73
5.6.240.0030.06720.68
5.6.230.0100.03720.70
5.6.220.0000.05020.63
5.6.210.0000.04320.56
5.6.200.0030.04021.05
5.6.190.0000.08321.05
5.6.180.0030.08721.11
5.6.170.0100.04321.03
5.6.160.0130.07720.95
5.6.150.0130.04321.06
5.6.140.0100.08021.00
5.6.130.0130.08021.11
5.6.120.0100.07721.13
5.6.110.0200.07321.17
5.6.100.0130.08021.05
5.6.90.0130.08020.93
5.6.80.0070.04720.28
5.6.70.0170.06320.46
5.6.60.0130.07720.46
5.6.50.0170.07020.57
5.6.40.0070.07720.30
5.6.30.0070.07720.33
5.6.20.0100.06020.44
5.6.10.0070.03320.39
5.6.00.0200.05020.30
5.5.380.0070.04020.36
5.5.370.0030.04020.41
5.5.360.0030.06320.36
5.5.350.0030.04020.36
5.5.340.0000.08020.93
5.5.330.0130.06720.90
5.5.320.0100.05020.79
5.5.310.0130.07320.77
5.5.300.0030.08020.83
5.5.290.0070.08720.93
5.5.280.0170.05720.65
5.5.270.0130.06020.76
5.5.260.0200.04020.64
5.5.250.0400.02320.71
5.5.240.0170.06720.28
5.5.230.0100.07720.29
5.5.220.0030.06020.14
5.5.210.0070.07020.31
5.5.200.0030.07320.14
5.5.190.0000.05020.09
5.5.180.0030.04020.12
5.5.160.0130.04720.29
5.5.150.0170.06720.27
5.5.140.0000.06019.99
5.5.130.0130.07019.98
5.5.120.0130.07020.13
5.5.110.0130.07320.24
5.5.100.0030.05020.18
5.5.90.0100.07020.17
5.5.80.0130.05020.15
5.5.70.0130.06720.07
5.5.60.0100.03719.97
5.5.50.0170.06320.06
5.5.40.0070.04720.09
5.5.30.0000.06720.05
5.5.20.0070.07320.11
5.5.10.0070.07720.03
5.5.00.0030.04719.93
5.4.450.0070.07719.37
5.4.440.0000.08019.56
5.4.430.0070.08019.36
5.4.420.0070.06719.17
5.4.410.0230.05319.29
5.4.400.0030.08019.10
5.4.390.0070.07719.09
5.4.380.0170.07018.90
5.4.370.0070.08019.05
5.4.360.0200.03019.14
5.4.350.0030.07319.19
5.4.340.0130.06719.17
5.4.320.0070.09019.04
5.4.310.0130.07319.20
5.4.300.0100.07019.04
5.4.290.0030.04719.13
5.4.280.0170.07319.25
5.4.270.0000.04318.95
5.4.260.0100.06318.90
5.4.250.0070.04718.89
5.4.240.0070.04719.04
5.4.230.0130.06719.03
5.4.220.0030.05019.20
5.4.210.0100.05019.13
5.4.200.0130.06718.94
5.4.190.0030.06318.84
5.4.180.0130.04319.24
5.4.170.0000.08019.20
5.4.160.0030.07719.16
5.4.150.0000.05719.07
5.4.140.0070.07016.32
5.4.130.0130.06316.49
5.4.120.0070.07716.47
5.4.110.0130.06716.43
5.4.100.0070.07016.32
5.4.90.0100.06716.47
5.4.80.0030.07716.51
5.4.70.0030.06316.49
5.4.60.0070.04316.40
5.4.50.0070.06316.48
5.4.40.0030.04316.54
5.4.30.0100.07016.39
5.4.20.0100.06716.32
5.4.10.0070.06716.41
5.4.00.0170.06315.85
5.3.290.0030.07714.62
5.3.280.0030.04714.58
5.3.270.0100.07014.73
5.3.260.0070.07714.54
5.3.250.0070.08714.59
5.3.240.0100.06014.68
5.3.230.0070.06314.59
5.3.220.0070.05014.51
5.3.210.0030.07714.50
5.3.200.0070.07714.57
5.3.190.0130.06714.64
5.3.180.0130.08014.68
5.3.170.0070.04714.50
5.3.160.0030.07314.54
5.3.150.0030.07314.60
5.3.140.0230.05714.55
5.3.130.0030.07714.64
5.3.120.0070.04314.69
5.3.110.0070.07714.50
5.3.100.0070.07714.09
5.3.90.0100.06714.13
5.3.80.0000.06014.16
5.3.70.0130.06714.09
5.3.60.0100.07313.94
5.3.50.0170.06313.84
5.3.40.0070.06713.88
5.3.30.0000.04313.98
5.3.20.0070.07313.68
5.3.10.0070.07313.59
5.3.00.0000.07013.64
5.2.170.0030.05311.22
5.2.160.0100.05311.20
5.2.150.0030.03011.26
5.2.140.0030.06311.20
5.2.130.0070.05711.20
5.2.120.0030.06011.13
5.2.110.0000.06311.13
5.2.100.0000.06711.12
5.2.90.0000.06011.04
5.2.80.0070.06311.20
5.2.70.0100.05311.05
5.2.60.0000.04311.12
5.2.50.0030.05711.10
5.2.40.0100.06011.01
5.2.30.0070.04711.04
5.2.20.0000.06710.99
5.2.10.0130.03311.00
5.2.00.0000.03310.65
5.1.60.0030.04710.07
5.1.50.0100.02710.07
5.1.40.0030.0279.99
5.1.30.0070.05310.38
5.1.20.0070.04010.29
5.1.10.0000.0409.96
5.1.00.0070.02310.08
5.0.50.0030.0278.64
5.0.40.0070.0408.50
5.0.30.0000.0578.08
5.0.20.0070.0308.24
5.0.10.0100.0408.21
5.0.00.0030.0508.05
4.4.90.0000.0377.80
4.4.80.0000.0337.80
4.4.70.0000.0377.80
4.4.60.0070.0307.80
4.4.50.0030.0307.80
4.4.40.0030.0507.80
4.4.30.0030.0337.80
4.4.20.0000.0337.80
4.4.10.0070.0177.80
4.4.00.0030.0477.80
4.3.110.0070.0307.80
4.3.100.0030.0337.80
4.3.90.0000.0377.80
4.3.80.0000.0377.80
4.3.70.0000.0337.80
4.3.60.0030.0337.80
4.3.50.0000.0377.80
4.3.40.0030.0477.80
4.3.30.0000.0377.80
4.3.20.0000.0377.80
4.3.10.0030.0137.80
4.3.00.0000.0377.80

preferences:
45.95 ms | 401 KiB | 5 Q