3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data=array(); for($c=0; $c<100000; $c++) $data[$c]=array(1, 2, 3); $filter=array(1, 2, 3); for($kc=0; $kc<3; $kc++) { $cm=memory_get_usage(true); $pm=memory_get_peak_usage(true); echo "loop $kc: current_memory: $cm, peak_memory: $pm...\n"; 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.4.00.0070.02719.83
7.3.120.0170.02719.63
7.3.110.0200.02419.72
7.3.100.0100.02619.71
7.3.90.0130.02219.77
7.3.80.0070.03619.40
7.3.70.0130.02519.80
7.3.60.0130.02419.77
7.3.50.0100.03119.83
7.3.40.0070.02719.62
7.3.30.0100.02319.81
7.3.20.0000.03022.87
7.3.10.0030.02722.72
7.3.00.0030.02822.32
7.2.250.0070.03920.11
7.2.240.0160.02219.85
7.2.230.0030.03419.95
7.2.220.0070.02719.87
7.2.210.0030.03219.82
7.2.200.0100.01919.55
7.2.190.0100.02219.85
7.2.180.0030.03319.83
7.2.170.0030.02319.55
7.2.00.0140.02325.18
7.1.330.0070.02921.80
7.1.320.0000.03421.47
7.1.310.0070.03421.57
7.1.300.0030.03021.64
7.1.290.0000.04721.51
7.1.280.0030.03121.75
7.1.270.0030.03621.57
7.1.260.0030.03421.48
7.1.70.0100.00722.86
7.1.60.0100.03423.17
7.1.50.0100.03222.96
7.1.00.0170.08028.25
7.0.200.0970.02757.00
7.0.140.0130.10762.31
7.0.60.0200.12359.16
7.0.50.0300.11357.05
7.0.40.0200.11023.64
7.0.30.0500.11323.73
7.0.20.0370.09723.57
7.0.10.0200.12723.73
7.0.00.0130.12723.72
5.6.280.0130.15385.66
5.6.210.0200.10785.00
5.6.200.0470.14382.59
5.6.190.0430.11784.77
5.6.180.0330.09784.67
5.6.170.0270.12784.80
5.6.160.0230.16084.77
5.6.150.0300.09382.66
5.6.140.0230.10382.64
5.6.130.0300.13782.59
5.6.120.0270.14785.57
5.6.110.0170.14385.51
5.6.100.0470.13385.50
5.6.90.0300.15385.63
5.6.80.0470.15085.05
5.5.350.0370.07084.96
5.5.340.0530.14082.49
5.5.330.0300.11784.79
5.5.320.0630.13084.42
5.5.310.0530.12084.67
5.5.300.0200.09082.41
5.5.290.0330.11082.49
5.5.280.0330.14785.36
5.5.270.0230.13385.29
5.5.260.0300.14385.50
5.5.250.0130.16385.29
5.5.240.0130.15084.79
5.4.450.1000.14083.73
5.4.440.1230.16084.07
5.4.430.0430.14383.82
5.4.420.0570.15383.94
5.4.410.0530.14383.27
5.4.400.0530.13383.31
5.4.390.0730.14383.23
5.4.380.0430.14383.23
5.4.370.0800.13083.13
5.4.360.0500.13082.96
5.4.350.0210.09376.50
5.4.340.0210.10676.50
5.4.320.0210.09076.98
5.4.310.0200.09676.97
5.4.300.0130.10576.98
5.4.290.0230.10276.97
5.4.280.0300.10176.87
5.4.270.0170.10176.84
5.4.260.0240.09676.84
5.4.250.0260.09476.84
5.4.240.0210.09476.84
5.4.230.0320.08676.83
5.4.220.0170.09876.83
5.4.210.0320.08776.83
5.4.200.0150.11976.84
5.4.190.0290.08676.83
5.4.180.0270.10576.83
5.4.170.0190.09976.84
5.4.160.0210.09376.84
5.4.150.0240.09276.83
5.4.140.0210.09776.51
5.4.130.0290.08876.50
5.4.120.0170.09976.46
5.4.110.0200.10376.46
5.4.100.0200.10876.46
5.4.90.0220.09676.46
5.4.80.0210.10276.45
5.4.70.0140.10576.45
5.4.60.0320.08576.45
5.4.50.0180.09976.45
5.4.40.0210.09776.44
5.4.30.0240.09776.44
5.4.20.0210.10476.44
5.4.10.0190.10976.44
5.4.00.0270.09775.93
5.3.290.0240.09675.91
5.3.280.0180.09875.82
5.3.270.0210.09675.82
5.3.260.0230.10575.82
5.3.250.0180.10775.83
5.3.240.0200.09576.62
5.3.230.0280.10875.82
5.3.220.0290.09075.79
5.3.210.0250.12575.79
5.3.200.0220.10275.79
5.3.190.0370.10375.79
5.3.180.0200.09776.58
5.3.170.0270.08975.79
5.3.160.0360.08375.79
5.3.150.0180.10075.79
5.3.140.0210.09675.78
5.3.130.0220.09675.77
5.3.120.0210.09975.77
5.3.110.0150.10575.77
5.3.100.0130.10375.42
5.3.90.0250.09275.41
5.3.80.0210.09775.39
5.3.70.0230.10675.39
5.3.60.0240.09475.37
5.3.50.0240.10975.32
5.3.40.0210.10175.32
5.3.30.0200.09575.29
5.3.20.0230.09475.07
5.3.10.0190.09975.02
5.3.00.0290.10075.01
5.2.170.0160.10072.88
5.2.160.0300.08972.89
5.2.150.0270.09072.89
5.2.140.0180.09972.88
5.2.130.0200.09772.84
5.2.120.0320.08272.84
5.2.110.0220.09272.84
5.2.100.0210.09272.85
5.2.90.0210.09472.84
5.2.80.0220.09272.84
5.2.70.0210.09372.84
5.2.60.0270.08972.93
5.2.50.0170.12772.90
5.2.40.0270.11772.88
5.2.30.0240.11972.59
5.2.20.0170.12272.59
5.2.10.0190.08972.51
5.2.00.0230.08374.43
5.1.60.0330.10395.90
5.1.50.0270.11795.90
5.1.40.0270.10995.88
5.1.30.0300.10496.23
5.1.20.0270.10896.25
5.1.10.0260.12295.98
5.1.00.0230.11195.98
5.0.50.0230.12494.46
5.0.40.0230.12794.32
5.0.30.0190.13894.13
5.0.20.0260.11594.11
5.0.10.0270.12094.08
5.0.00.0290.12194.08
4.4.90.0240.11892.50
4.4.80.0300.13192.49
4.4.70.0240.12292.48
4.4.60.0300.11192.49
4.4.50.0220.11392.50
4.4.40.0220.12892.49
4.4.30.0290.11692.50
4.4.20.0310.11992.55
4.4.10.0310.11392.56
4.4.00.0230.13292.52
4.3.110.0270.17192.43
4.3.100.0260.14892.42
4.3.90.0310.14292.41
4.3.80.0220.15992.40
4.3.70.0360.18192.41
4.3.60.0260.14992.40
4.3.50.0270.13992.40
4.3.40.0260.15792.36
4.3.30.0340.15291.17
4.3.20.0280.14591.15
4.3.10.0200.16091.11
4.3.00.0830.22792.21

preferences:
30.08 ms | 400 KiB | 5 Q