3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "Date fiind următoarele variabile inițializate cu următoarele valori: \n\n"; $var1 = md5('240610708'); $var2 = md5('QNKCDZO'); echo "\$var1 = md5('240610708') = " . $var1 . "\n"; echo "\$var2 = md5('QNKCDZO') = " . $var2 . "\n"; echo "De ce, totuși:\n\n"; echo "var_dump(md5('240610708') == md5('QNKCDZO')) = \n\t "; var_dump(md5('240610708') == md5('QNKCDZO')); echo "\n\nÎ: \tDe ce cele 2 hashuri sunt văzute ca 'egale'?\n\n"; echo "\n\nR: \tPentru că sunt evaluate ca întregi:\n\n"; echo "\t++\$var2 = " . ++$var1 . "\n"; echo "\t++\$var2 = " . ++$var2 . "\n";
based on o3Tp0

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.3.10.0180.00416.02
7.3.00.0170.00616.40
7.2.130.0220.00616.63
7.2.120.0130.00316.32
7.2.110.0160.00516.34
7.2.100.0060.01316.44
7.2.90.0160.00316.51
7.2.80.0150.00616.12
7.2.70.0160.00316.41
7.2.60.0090.00816.64
7.2.50.0140.00716.05
7.2.40.0110.00716.32
7.2.30.0180.00016.39
7.2.20.0130.00616.21
7.2.10.0170.00816.46
7.2.00.0050.00918.13
7.1.250.0190.00615.19
7.1.200.0140.00315.90
7.1.100.0130.00318.33
7.1.70.0050.00317.20
7.1.60.0130.01019.50
7.1.50.0100.00317.01
7.1.00.0030.07722.51
7.0.200.0130.00314.98
7.0.140.0070.06721.95
7.0.60.0070.05319.91
7.0.50.0000.05017.79
7.0.40.0070.09020.24
7.0.30.0370.07320.00
7.0.20.0430.06720.20
7.0.10.0100.06320.02
7.0.00.0000.05720.29
5.6.280.0000.07720.91
5.6.210.0070.08020.76
5.6.200.0000.04318.21
5.6.190.0070.08720.33
5.6.180.0270.04720.56
5.6.170.0230.05720.54
5.6.160.0030.04320.32
5.6.150.0000.06718.12
5.6.140.0070.04318.18
5.6.130.0130.05318.08
5.6.120.0070.05021.02
5.6.110.0100.05321.00
5.6.100.0100.03720.97
5.6.90.0070.06721.12
5.6.80.0200.06720.53
5.5.350.3670.04020.41
5.5.340.0070.06017.98
5.5.330.0030.04320.23
5.5.320.0370.07320.14
5.5.310.0170.06020.29
5.5.300.0070.03717.98
5.5.290.0130.06718.07
5.5.280.0070.08320.88
5.5.270.0000.04320.86
5.5.260.0200.07020.76
5.5.250.0070.08320.68
5.5.240.0000.04320.19
5.4.450.0570.04719.63
5.4.440.0900.06019.59
5.4.430.0630.06719.56
5.4.420.0030.06319.27
5.4.410.0200.04718.85
5.4.400.0270.07318.49
5.4.390.0300.06318.46
5.4.380.0400.07718.74
5.4.370.0600.05718.49
5.4.360.0500.06318.72
5.4.350.0430.06318.66
5.4.340.0400.07018.72
5.4.320.0370.06018.69
5.4.310.0300.06318.70
5.4.300.0300.05318.66
5.4.290.0270.07018.56
5.4.280.0330.06318.73
5.4.270.0370.05318.71
5.4.260.0470.06318.63
5.4.250.0430.05318.77
5.4.240.0330.05718.57
5.4.230.0370.05718.57
5.4.220.0330.06018.64
5.4.210.0370.05718.66
5.4.200.0430.06316.62
5.4.190.0400.05018.57
5.4.180.0330.06718.66
5.4.170.0370.05318.54
5.4.160.0400.04718.48
5.4.150.0370.05318.54
5.4.140.0530.06016.31
5.4.130.0270.05716.13
5.4.120.0400.06716.04
5.4.110.0330.06316.22
5.4.100.0230.07016.16
5.4.90.0370.05016.24
5.4.80.0270.06016.07
5.4.70.0330.06316.04
5.4.60.0300.06016.32
5.4.50.0430.07316.07
5.4.40.0230.06716.29
5.4.30.0400.05716.27
5.4.20.0300.06016.03
5.4.10.0370.05016.01
5.4.00.0300.05715.61
5.3.290.0300.06714.61
5.3.280.0300.05314.54
5.3.270.0330.06014.53
5.3.260.0400.05714.59
5.3.250.0300.06314.69
5.3.240.0370.05714.50
5.3.230.0330.05314.59
5.3.220.0370.05014.59
5.3.210.0430.05314.46
5.3.200.0330.05714.53
5.3.190.0230.06014.55
5.3.180.0400.05014.61
5.3.170.0370.04714.54
5.3.160.0330.05714.63
5.3.150.0300.06014.67
5.3.140.0230.06314.55
5.3.130.0330.08014.47
5.3.120.0400.07314.64
5.3.110.0370.07314.55
5.3.100.0330.05714.07
5.3.90.0370.06013.95
5.3.80.0370.04714.00
5.3.70.0400.04314.11
5.3.60.0330.06313.99
5.3.50.0530.05013.93
5.3.40.0370.07313.95
5.3.30.0270.06013.88
5.3.20.0270.05713.67
5.3.10.0270.05713.63
5.3.00.0370.04713.73
5.2.170.0270.04711.11
5.2.160.0270.05011.12
5.2.150.0270.04311.13
5.2.140.0330.04011.12
5.2.130.0300.04011.05
5.2.120.0300.03711.02
5.2.110.0270.04311.05
5.2.100.0330.04711.16
5.2.90.0230.05311.14
5.2.80.0330.04711.09
5.2.70.0370.04311.06
5.2.60.0200.05011.08
5.2.50.0300.03710.95
5.2.40.0330.03310.93
5.2.30.0230.04010.93
5.2.20.0130.04710.99
5.2.10.0170.05010.97
5.2.00.0170.04310.71
5.1.60.0330.02010.12
5.1.50.0200.03710.09
5.1.40.0230.0339.97
5.1.30.0270.05010.38
5.1.20.0230.05010.43
5.1.10.0270.03010.10
5.1.00.0300.05010.16
5.0.50.0030.0508.75
5.0.40.0130.0338.50
5.0.30.0130.0578.35
5.0.20.0130.0338.29
5.0.10.0130.0308.35
5.0.00.0130.0438.28
4.4.90.0170.0175.91
4.4.80.0100.0235.90
4.4.70.0130.0205.86
4.4.60.0100.0235.88
4.4.50.0100.0235.88
4.4.40.0100.0405.88
4.4.30.0100.0275.88
4.4.20.0100.0336.02
4.4.10.0170.0175.94
4.4.00.0100.0405.93
4.3.110.0170.0205.82
4.3.100.0100.0235.84
4.3.90.0070.0275.83
4.3.80.0200.0335.82
4.3.70.0200.0135.79
4.3.60.0130.0275.77
4.3.50.0100.0275.89
4.3.40.0100.0375.78
4.3.30.0070.0235.25
4.3.20.0070.0205.25
4.3.10.0030.0235.25
4.3.00.0070.0236.95