3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data=array(); for($c=0; $c<1000; $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.0060.00915.08
7.3.120.0100.01014.75
7.3.110.0070.00714.95
7.3.100.0040.00814.82
7.3.90.0060.00614.93
7.3.80.0000.01615.13
7.3.70.0030.00914.65
7.3.60.0030.00914.97
7.3.50.0000.01415.02
7.3.40.0070.00714.90
7.3.30.0000.01414.92
7.3.20.0130.00316.51
7.3.10.0110.00716.71
7.3.00.0100.00616.58
7.2.250.0060.01315.30
7.2.240.0110.00715.22
7.2.230.0070.01114.95
7.2.220.0040.01115.18
7.2.210.0030.01315.04
7.2.200.0130.00614.93
7.2.190.0040.01115.10
7.2.180.0030.00815.18
7.2.170.0080.00615.20
7.2.00.0000.01219.63
7.1.330.0110.00315.83
7.1.320.0030.01215.93
7.1.310.0000.01415.95
7.1.300.0040.01115.81
7.1.290.0000.01115.55
7.1.280.0060.01015.71
7.1.270.0060.01015.67
7.1.260.0060.00615.61
7.1.70.0000.00717.17
7.1.60.0060.01919.82
7.1.50.0110.00716.90
7.1.00.0000.08022.37
7.0.200.0110.00016.59
7.0.140.0000.07721.97
7.0.100.0130.07320.34
7.0.90.0070.08720.32
7.0.80.0130.06020.28
7.0.70.0330.07320.30
7.0.60.0330.07020.33
7.0.50.0100.07020.63
7.0.40.0100.08320.10
7.0.30.0000.05320.13
7.0.20.0130.07320.10
7.0.10.0030.05020.10
7.0.00.0130.07720.03
5.6.280.0030.07021.50
5.6.250.0070.08021.08
5.6.240.0100.06721.14
5.6.230.0130.05321.16
5.6.220.0170.07021.18
5.6.210.0070.04021.07
5.6.200.0000.08721.53
5.6.190.0170.06321.48
5.6.180.0100.08021.55
5.6.170.0030.05321.55
5.6.160.0030.07321.55
5.6.150.0130.08021.56
5.6.140.0170.06721.62
5.6.130.0130.07721.52
5.6.120.0130.04721.45
5.6.110.0070.10021.63
5.6.100.0100.07021.44
5.6.90.0070.05321.54
5.6.80.0270.06720.84
5.6.70.0130.06720.90
5.6.60.0100.08020.81
5.6.50.0030.04721.02
5.6.40.0070.07720.91
5.6.30.0000.08720.92
5.6.20.0100.08021.04
5.6.10.0130.07320.89
5.6.00.0100.07720.80
5.5.380.0070.07320.87
5.5.370.0070.08020.88
5.5.360.0030.05320.93
5.5.350.0070.05320.99
5.5.340.0100.07021.41
5.5.330.0100.08321.37
5.5.320.0170.06721.22
5.5.310.0100.08021.42
5.5.300.0170.05721.43
5.5.290.0100.05321.29
5.5.280.0100.08021.36
5.5.270.0130.08321.25
5.5.260.0100.08321.23
5.5.250.0100.04321.18
5.5.240.0070.04720.69
5.5.230.0100.05720.64
5.5.220.0170.06320.64
5.5.210.0170.07320.68
5.5.200.0070.07720.75
5.5.190.0030.08320.70
5.5.180.0000.05320.71
5.5.160.0130.07020.71
5.5.150.0070.08020.61
5.5.140.0070.04720.49
5.5.130.0070.08320.74
5.5.120.0030.05020.72
5.5.110.0270.03320.77
5.5.100.0070.05020.68
5.5.90.0130.07020.58
5.5.80.0070.05720.52
5.5.70.0070.08320.47
5.5.60.0100.06320.66
5.5.50.0130.04020.55
5.5.40.0130.07720.66
5.5.30.0130.04020.55
5.5.20.0100.04720.48
5.5.10.0000.08020.73
5.5.00.0130.07020.50
5.4.450.0070.07719.77
5.4.440.0000.07319.80
5.4.430.0030.07319.73
5.4.420.0030.06319.88
5.4.410.0170.07319.63
5.4.400.0170.05019.52
5.4.390.0100.08319.49
5.4.380.0070.05019.49
5.4.370.0170.06719.59
5.4.360.0030.06719.49
5.4.350.0170.06319.54
5.4.340.0030.06719.48
5.4.320.0130.07719.49
5.4.310.0030.04719.41
5.4.300.0070.04319.43
5.4.290.0100.03319.33
5.4.280.0030.05719.47
5.4.270.0130.06719.49
5.4.260.0070.06019.44
5.4.250.0100.04719.43
5.4.240.0030.05319.50
5.4.230.0100.06719.60
5.4.220.0100.07719.48
5.4.210.0100.07319.23
5.4.200.0070.05719.41
5.4.190.0070.06719.54
5.4.180.0030.08019.52
5.4.170.0100.07019.38
5.4.160.0030.07319.39
5.4.150.0100.07319.25
5.4.140.0100.03316.66
5.4.130.0230.04716.55
5.4.120.0130.07316.85
5.4.110.0070.04316.81
5.4.100.0000.05716.69
5.4.90.0130.06716.70
5.4.80.0170.06316.74
5.4.70.0030.07716.78
5.4.60.0070.04016.82
5.4.50.0030.05316.79
5.4.40.0100.06316.86
5.4.30.0070.05016.68
5.4.20.0100.07316.62
5.4.10.0070.06316.70
5.4.00.0100.07316.47
5.3.290.0070.05315.31
5.3.280.0070.06315.25
5.3.270.0030.06315.26
5.3.260.0100.06715.29
5.3.250.0070.08015.15
5.3.240.0100.07015.30
5.3.230.0070.04715.29
5.3.220.0130.06715.09
5.3.210.0000.08315.24
5.3.200.0070.07315.21
5.3.190.0170.06715.19
5.3.180.0070.05315.11
5.3.170.0070.07015.24
5.3.160.0000.04314.86
5.3.150.0130.05315.21
5.3.140.0070.08015.06
5.3.130.0130.06315.25
5.3.120.0100.04715.24
5.3.110.0130.07315.05
5.3.100.0070.05014.71
5.3.90.0130.04014.66
5.3.80.0070.07314.68
5.3.70.0030.08714.70
5.3.60.0170.06014.59
5.3.50.0070.07014.48
5.3.40.0170.04014.61
5.3.30.0170.04714.59
5.3.20.0030.05314.36
5.3.10.0070.07014.12
5.3.00.0130.07014.30
5.2.170.0030.07011.27
5.2.160.0100.05311.28
5.2.150.0070.03311.21
5.2.140.0100.04011.40
5.2.130.0030.05711.32
5.2.120.0030.06711.37
5.2.110.0130.06311.29
5.2.100.0000.06711.37
5.2.90.0130.05311.32
5.2.80.0070.03311.16
5.2.70.0000.03711.36
5.2.60.0030.05311.18
5.2.50.0030.03711.28
5.2.40.0000.06311.26
5.2.30.0000.05711.08
5.2.20.0030.06311.23
5.2.10.0070.05711.13
5.2.00.0070.05310.85
5.1.60.0000.04710.94
5.1.50.0070.05010.70
5.1.40.0000.02710.87
5.1.30.0030.05711.14
5.1.20.0030.05311.26
5.1.10.0070.05010.96
5.1.00.0130.04010.96
5.0.50.0100.0439.42
5.0.40.0030.0379.27
5.0.30.0070.0508.92
5.0.20.0100.0409.13
5.0.10.0000.0439.04
5.0.00.0030.0578.91
4.4.90.0000.0338.10
4.4.80.0000.0208.10
4.4.70.0030.0308.10
4.4.60.0100.0178.10
4.4.50.0070.0338.10
4.4.40.0000.0578.10
4.4.30.0000.0338.10
4.4.20.0070.0338.10
4.4.10.0070.0278.10
4.4.00.0070.0508.10
4.3.110.0000.0238.10
4.3.100.0000.0238.10
4.3.90.0070.0138.10
4.3.80.0000.0278.10
4.3.70.0030.0278.10
4.3.60.0030.0338.10
4.3.50.0030.0308.10
4.3.40.0000.0378.10
4.3.30.0000.0408.10
4.3.20.0000.0378.10
4.3.10.0000.0308.10
4.3.00.0030.0238.10

preferences:
41.68 ms | 401 KiB | 5 Q