3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = range(0, 49); $prob = array_fill(0, 50, 0); for ($i = 0; $i < 10000; $i++) { $rand = array_rand($values, 10); foreach($rand as $key => $value) { $prob[$values[$value]]++; } } asort($prob); var_dump($prob);

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)
7.4.00.0050.02315.07
7.3.120.0130.01614.98
7.3.110.0030.02514.79
7.3.100.0050.01714.73
7.3.90.0050.02114.71
7.3.80.0040.01714.91
7.3.70.0030.02014.86
7.3.60.0090.01514.60
7.3.50.0030.01814.89
7.3.40.0050.01614.83
7.3.30.0070.01814.71
7.3.20.0020.02016.55
7.3.10.0080.01416.67
7.3.00.0040.02016.68
7.2.250.0100.01814.93
7.2.240.0080.02015.13
7.2.230.0110.01515.04
7.2.220.0060.01615.13
7.2.210.0120.01314.88
7.2.200.0080.01415.06
7.2.190.0080.01314.82
7.2.180.0080.01714.93
7.2.170.0030.02015.06
7.2.130.0030.01417.06
7.2.120.0040.02216.80
7.2.110.0060.01917.02
7.2.100.0070.01817.03
7.2.90.0080.01517.00
7.2.80.0030.01716.95
7.2.70.0040.01816.95
7.2.60.0100.01716.77
7.2.50.0140.01416.63
7.2.40.0030.02016.92
7.2.30.0090.01516.92
7.2.20.0090.01816.67
7.2.10.0000.02516.73
7.2.00.0050.01618.16
7.1.330.0050.02615.52
7.1.320.0030.02715.85
7.1.310.0020.02415.86
7.1.300.0070.02315.85
7.1.290.0120.02015.59
7.1.280.0070.02315.69
7.1.270.0030.02215.76
7.1.260.0080.02315.60
7.1.250.0090.02215.87
7.1.70.0000.01817.22
7.1.60.0000.01916.91
7.1.50.0060.02917.08
7.1.00.0030.08722.45
7.0.200.0350.01614.87
7.0.110.0230.06719.94
7.0.100.0500.09719.95
7.0.90.0300.09019.86
7.0.80.0430.10319.80
7.0.70.0470.09020.03
7.0.60.0700.09320.06
7.0.50.0070.06720.35
7.0.40.0030.12320.06
7.0.30.0100.09720.27
7.0.20.0070.10320.27
7.0.10.0070.10720.14
7.0.00.0100.09720.04
5.6.250.0100.11320.69
5.6.240.0000.11320.72
5.6.230.0100.09320.59
5.6.220.0070.10720.64
5.6.210.0130.09020.72
5.6.200.0200.11320.95
5.6.190.0170.09320.95
5.6.180.0130.10321.02
5.6.170.0030.10321.09
5.6.160.0070.13021.21
5.6.150.0170.10720.95
5.6.140.0130.09321.06
5.6.130.0100.12720.93
5.6.120.0070.10021.04
5.6.110.0130.11721.07
5.6.100.0130.10720.91
5.6.90.0130.13021.19
5.6.80.0130.11020.32
5.6.70.0170.09020.59
5.6.60.0070.10020.39
5.6.50.0130.10020.52
5.6.40.0100.09720.50
5.6.30.0100.09020.50
5.6.20.0100.08720.40
5.6.10.0100.09320.30
5.6.00.0100.09320.30

preferences:
25.02 ms | 401 KiB | 5 Q