3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x=100; $y=30; $z=25; function isMultiplo($a, $b){ $a=$a%$b; if($a==0){ return 'il primo numero è multiplo del secondo'; } else{ return 'il primo numero non è multiplo del secondo'; } } echo "risultato: ".isMultiplo($x,$y); echo "\n"; echo "risultato: ".isMultiplo($x,$z);

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0030.01019.27
7.1.100.0070.00717.59
7.1.70.0040.00417.13
7.1.60.0070.01319.21
7.1.50.0100.01416.63
7.1.00.0030.04722.31
7.0.200.2110.00714.81
7.0.140.0070.07022.04
7.0.60.0200.07020.00
7.0.50.0000.07717.83
7.0.40.0100.08020.14
7.0.30.0330.05720.20
7.0.20.0200.06720.24
7.0.10.0200.05320.12
7.0.00.0100.04020.24
5.6.280.0030.07321.13
5.6.210.0200.06720.48
5.6.200.0130.07318.27
5.6.190.0100.08320.77
5.6.180.0270.08020.57
5.6.170.0170.08720.52
5.6.160.0170.04318.15
5.6.150.0000.04318.28
5.6.140.0070.06018.18
5.6.130.0000.04318.23
5.6.120.0000.04321.00
5.6.110.0170.07321.14
5.6.100.0130.07720.99
5.6.90.0200.04721.10
5.6.80.0100.05020.44
5.5.350.0030.08720.41
5.5.340.0130.03317.99
5.5.330.0070.08320.42
5.5.320.0400.07320.52
5.5.310.0270.06320.41
5.5.300.0070.08018.09
5.5.290.0070.05017.98
5.5.280.0070.04720.80
5.5.270.0000.05020.62
5.5.260.0170.07720.80
5.5.250.0130.07720.61
5.5.240.0270.07320.07
5.4.450.0330.07719.18
5.4.440.0300.04319.47
5.4.430.0370.07019.63
5.4.420.0300.04019.63
5.4.410.0430.02719.51
5.4.400.0270.03719.16
5.4.390.0270.03719.00
5.4.380.0230.04018.96
5.4.370.0300.03019.14
5.4.360.0270.05018.85
5.4.350.0170.04019.19
5.4.340.0230.03719.00
5.4.320.0200.04719.00
5.4.310.0130.04019.03
5.4.300.0230.04018.99
5.4.290.0170.03719.09
5.4.280.0230.04019.08
5.4.270.0130.04019.24
5.4.260.0200.04718.87
5.4.250.0230.03719.05
5.4.240.0100.05019.09
5.4.230.0230.03319.18
5.4.220.0130.04019.21
5.4.210.0230.03319.18
5.4.200.0100.04318.84
5.4.190.0200.03319.23
5.4.180.0170.03719.15
5.4.170.0200.03719.31
5.4.160.0230.03319.30
5.4.150.0200.04019.07
5.4.140.0330.06716.39
5.4.130.0270.03716.33
5.4.120.0270.06316.51
5.4.110.0300.04716.47
5.4.100.0330.04016.27
5.4.90.0370.03716.41
5.4.80.0370.04016.57
5.4.70.0230.08016.44
5.4.60.0430.02716.25
5.4.50.0270.04316.43
5.4.40.0300.07016.42
5.4.30.0330.04016.55
5.4.20.0330.06016.37
5.4.10.0370.06016.53
5.4.00.0230.04315.80
5.3.290.0200.03714.74
5.3.280.0170.03714.59
5.3.270.0170.04014.59
5.3.260.0230.03714.71
5.3.250.0200.04714.61
5.3.240.0230.04714.52
5.3.230.0200.05014.61
5.3.220.0370.06014.56
5.3.210.0330.05014.58
5.3.200.0500.04314.71
5.3.190.0400.07714.48
5.3.180.0200.05014.53
5.3.170.0300.07314.46
5.3.160.0300.07014.46
5.3.150.0300.06714.55
5.3.140.0300.07314.78
5.3.130.0270.08314.53
5.3.120.0300.07314.46
5.3.110.0270.04714.45
5.3.100.0270.04314.02
5.3.90.0300.06313.92
5.3.80.0230.04313.95
5.3.70.0230.04014.02
5.3.60.0270.07313.91
5.3.50.0270.05313.96
5.3.40.0270.07313.95
5.3.30.0300.05713.98
5.3.20.0330.06713.80
5.3.10.0370.05713.66
5.3.00.0370.06313.55
5.2.170.0270.04711.07
5.2.160.0270.05311.13
5.2.150.0370.02311.12
5.2.140.0200.03311.37
5.2.130.0270.05011.02
5.2.120.0270.05311.33
5.2.110.0270.05011.18
5.2.100.0270.05011.15
5.2.90.0270.03311.01
5.2.80.0230.04311.14
5.2.70.0300.06011.17
5.2.60.0200.05010.95
5.2.50.0230.03310.97
5.2.40.0170.03010.91
5.2.30.0230.05011.01
5.2.20.0170.04011.18
5.2.10.0170.06310.81
5.2.00.0300.03710.82
5.1.60.0200.04310.00
5.1.50.0170.05310.00
5.1.40.0230.03010.09
5.1.30.0270.05310.25
5.1.20.0200.03310.26
5.1.10.0230.04710.00
5.1.00.0170.03310.00
5.0.50.0100.04010.00
5.0.40.0130.03010.00
5.0.30.0130.03310.00
5.0.20.0130.04310.00
5.0.10.0170.03310.00
5.0.00.0070.03710.00
4.4.90.0130.02310.00
4.4.80.0100.03310.00
4.4.70.0130.03310.00
4.4.60.0170.02710.00
4.4.50.0130.02310.00
4.4.40.0100.04010.00
4.4.30.0130.03010.00
4.4.20.0070.03710.00
4.4.10.0130.03310.00
4.4.00.0100.05310.00
4.3.110.0130.01710.00
4.3.100.0100.02710.00
4.3.90.0100.02010.00
4.3.80.0170.04310.00
4.3.70.0100.03010.00
4.3.60.0130.03310.00
4.3.50.0070.03710.00
4.3.40.0130.05010.00
4.3.30.0000.03710.00
4.3.20.0070.03710.00
4.3.10.0030.02310.00
4.3.00.0030.03310.00