3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data=array(); for($c=0; $c<32; $c++) $data[$c]=array(1, 2, 3); $filter=array(1, 2, 3); for($kc=0; $kc<25600; $kc++) { $cm=memory_get_usage(true); $pm=memory_get_peak_usage(true); echo "<b>loop $kc: current_memory: $cm, peak_memory: $pm...</b>" . PHP_EOL; flush(); foreach($data as $entry) foreach($filter as $pattern) continue 2; }

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.2.100.0360.00614.54
7.2.90.0350.00814.59
7.2.80.1210.00414.23
7.2.70.1060.00615.04
7.2.60.1150.00314.95
7.2.50.0460.01114.88
7.2.40.1230.00314.96
7.2.30.1370.00914.66
7.2.20.0200.00714.90
7.2.10.0830.01314.77
7.2.00.0340.00514.80
7.1.220.1200.00613.79
7.1.210.0140.00513.78
7.1.200.0090.01313.65
7.1.190.1140.00014.00
7.1.180.0750.00713.84
7.1.170.1390.00013.51
7.1.160.0550.00613.93
7.1.150.0750.00613.64
7.1.140.0120.00913.73
7.1.130.0370.01413.69
7.1.120.0190.00013.81
7.1.110.1780.01013.64
7.1.100.0120.00413.81
7.1.90.1330.00713.78
7.1.80.0720.00213.89
7.1.70.0110.01113.79
7.1.60.2200.01032.16
7.1.50.1830.01632.04
7.1.40.0340.01332.06
7.1.30.0360.01031.99
7.1.20.0850.01231.67
7.1.10.0790.00613.60
7.1.00.0240.00614.06
7.0.310.0300.00313.16
7.0.300.0300.00713.14
7.0.290.1290.00813.48
7.0.280.1620.00613.26
7.0.270.0130.00613.07
7.0.260.1960.00313.32
7.0.250.1340.00713.52
7.0.240.1640.00713.20
7.0.230.0120.00613.50
7.0.220.0430.01113.65
7.0.210.2040.01313.48
7.0.200.0100.00713.43
7.0.190.1150.00413.17
7.0.180.0940.01313.53
7.0.170.0310.00913.56
7.0.160.0200.00613.44
7.0.150.0470.00613.45
7.0.140.0450.00513.50
7.0.130.0150.01113.62
7.0.120.0080.00813.46
7.0.110.0200.00013.24
7.0.100.0160.01113.48
7.0.90.0130.00513.27
7.0.80.0380.00413.26
7.0.70.0100.01013.54
7.0.60.0300.00313.45
7.0.50.0610.00313.65
7.0.40.0560.00713.54
7.0.30.0180.01113.30
5.6.380.0150.00314.44
5.6.370.0060.00814.30
5.6.360.0070.00714.00
5.6.350.0110.01614.00
5.6.340.0000.01614.39
5.6.330.0070.01114.22
5.6.320.0070.02114.31
5.6.310.0070.01114.25
5.6.300.0110.01414.12
5.6.290.0060.01514.55
5.6.280.0030.01614.27
5.6.270.0030.01414.60
5.6.260.0070.01714.04
5.6.250.0100.00714.17
5.6.240.0130.01114.25
5.6.230.0100.01014.29
5.6.220.0070.01414.28
5.6.210.0030.01314.32
5.6.200.0000.01514.21
5.6.190.0120.00214.21
5.6.180.0130.01014.35
5.6.170.0070.01314.38
5.5.380.0040.00812.66
5.5.370.0040.02112.66
5.5.360.0030.01012.66
5.5.350.0080.01112.66
5.5.340.0080.00412.66
5.5.330.0060.00912.66
5.5.320.0060.00912.66

preferences:
33.71 ms | 401 KiB | 5 Q