3v4l.org

run code in 300+ PHP versions simultaneously
<?php public function buildHash($hash, $test = 1) { if ($test > 10) { throw new Exception("uh o"); } try { throw new Exception("doh"); } catch (Exception $e) { buildHash($hash, $test++); } } buildHash("test");

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)
5.4.300.0270.07019.07
5.4.290.0300.06719.15
5.4.280.0200.03319.21
5.4.270.0170.04318.88
5.4.260.0570.05319.13
5.4.250.0230.07318.85
5.4.240.0170.07018.85
5.4.230.0130.05019.06
5.4.220.0200.07719.08
5.4.210.0300.04019.30
5.4.200.0200.05718.94
5.4.190.0170.04319.14
5.4.180.0170.04019.23
5.4.170.0130.05318.98
5.4.160.0230.04719.18
5.4.150.0230.04719.30
5.4.140.0170.03716.46
5.4.130.0270.04716.52
5.4.120.0230.03316.29
5.4.110.0170.04016.62
5.4.100.0200.05316.43
5.4.90.0270.06016.47
5.4.80.0230.06316.44
5.4.70.0130.05016.50
5.4.60.0200.04716.54
5.4.50.0200.04716.53
5.4.40.0130.07016.34
5.4.30.0170.06716.43
5.4.20.0170.06016.21
5.4.10.0100.07316.23
5.4.00.0200.03315.81
5.3.280.0170.04714.44
5.3.270.0100.05314.45
5.3.260.0200.08014.46
5.3.250.0100.05014.56
5.3.240.0200.06714.56
5.3.230.0230.05314.48
5.3.220.0200.07314.43
5.3.210.0170.04314.50
5.3.200.0330.06714.52
5.3.190.0230.07014.43
5.3.180.0200.06314.66
5.3.170.0230.06714.50
5.3.160.0200.07314.41
5.3.150.0200.06314.40
5.3.140.0170.07014.41
5.3.130.0230.05714.58
5.3.120.0130.07314.57
5.3.110.0200.07014.59
5.3.100.0130.03713.89
5.3.90.0130.03713.97
5.3.80.0170.03713.94
5.3.70.0100.03714.10
5.3.60.0130.03713.84
5.3.50.0070.04313.82
5.3.40.0100.03713.77
5.3.30.0170.02713.89
5.3.20.0100.03713.67
5.3.10.0100.04013.74
5.3.00.0170.03013.43
5.2.170.0130.02712.31
5.2.160.0100.02712.31
5.2.150.0070.03012.31
5.2.140.0030.03312.31
5.2.130.0070.03012.31
5.2.120.0100.02712.31
5.2.110.0130.02712.31
5.2.100.0130.02712.31
5.2.90.0130.02712.31
5.2.80.0130.03012.31
5.2.70.0070.03312.31
5.2.60.0130.03312.31
5.2.50.0100.03012.31
5.2.40.0170.02012.31
5.2.30.0100.02712.31
5.2.20.0100.02712.31
5.2.10.0070.03012.31
5.2.00.0170.02012.31
5.1.60.0100.02012.31
5.1.50.0000.03012.31
5.1.40.0130.02312.31
5.1.30.0100.02712.31
5.1.20.0070.02712.31
5.1.10.0070.02712.31
5.1.00.0100.02312.31
5.0.50.0030.01712.31
5.0.40.0070.02312.31
5.0.30.0070.03012.31
5.0.20.0030.01712.31
5.0.10.0070.01712.31
5.0.00.0030.03012.31
4.4.90.0070.01712.31
4.4.80.0030.01712.31
4.4.70.0000.01312.31
4.4.60.0000.01712.31
4.4.50.0070.01712.31
4.4.40.0030.02312.31
4.4.30.0000.03012.31
4.4.20.0030.01712.31
4.4.10.0070.01312.31
4.4.00.0030.02712.31
4.3.110.0070.01312.31
4.3.100.0030.01312.31
4.3.90.0030.01312.31
4.3.80.0000.03012.31
4.3.70.0030.01712.31
4.3.60.0070.01012.31
4.3.50.0070.01312.31
4.3.40.0030.02312.31
4.3.30.0070.03312.31
4.3.20.0030.01712.31
4.3.10.0030.01712.31
4.3.00.0000.01712.31

preferences:
141.72 ms | 1394 KiB | 7 Q