3v4l.org

run code in 200+ PHP versions simultaneously
<?php $array = ['a', 'b', 'c']; foreach ($array as $values[]); var_dump($values);

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.0080.00714.75
7.4.0rc60.0080.00714.73
7.4.0rc50.0080.00714.73
7.4.0rc40.0070.00914.76
7.4.0rc30.0090.00714.75
7.4.0rc20.0080.00714.71
7.4.0rc10.0080.00714.78
7.4.0beta40.0080.00714.75
7.4.0beta20.0080.00814.76
7.4.0beta10.0080.00714.76
7.4.0alpha30.0080.00714.83
7.4.0alpha20.0080.00714.90
7.4.0alpha10.0080.00814.89
7.3.120.0080.00814.69
7.3.110.0080.00814.66
7.3.100.0080.00714.64
7.3.90.0080.00714.68
7.3.80.0080.00814.66
7.3.70.0080.00714.63
7.3.60.0080.00714.61
7.3.50.0080.00714.63
7.3.40.0070.00714.63
7.3.30.0080.00714.61
7.3.20.0080.00814.85
7.3.10.0080.00714.84
7.3.00.0080.00714.86
7.2.250.0070.00914.82
7.2.240.0070.00814.81
7.2.230.0070.00914.86
7.2.220.0090.00814.84
7.2.210.0080.00814.83
7.2.200.0080.00814.80
7.2.190.0080.00814.82
7.2.180.0080.00814.85
7.2.170.0070.00814.82
7.2.160.0090.00914.84
7.2.150.0100.00814.93
7.2.140.0100.00714.96
7.2.130.0130.01015.10
7.2.120.0120.00714.96
7.2.110.0100.00814.98
7.2.100.0110.00814.87
7.2.90.0130.00815.02
7.2.80.0110.00915.03
7.2.70.0170.00615.03
7.2.60.0140.00614.98
7.2.50.0110.01014.92
7.2.40.0090.00915.03
7.2.30.0100.00914.90
7.2.20.0090.00914.81
7.2.10.0110.00914.99
7.2.00.0100.00715.01
7.1.330.0100.00713.96
7.1.320.0080.00813.94
7.1.310.0080.00813.97
7.1.300.0080.00713.92
7.1.290.0070.00813.96
7.1.280.0080.00713.99
7.1.270.0080.00713.97
7.1.260.0100.00714.00
7.1.250.0100.00814.04
7.1.240.0080.00913.90
7.1.230.0070.00913.87
7.1.220.0070.01013.77
7.1.210.0120.00613.78
7.1.200.0100.00813.76
7.1.190.0110.00813.80
7.1.180.0120.00613.75
7.1.170.0120.00713.85
7.1.160.0110.00913.86
7.1.150.0130.00713.92
7.1.140.0130.00413.91
7.1.130.0100.00613.80
7.1.120.0110.00713.87
7.1.110.0100.00713.84
7.1.100.0140.00513.94
7.1.90.0110.00613.84
7.1.80.0110.00613.79
7.1.70.0110.00813.76
7.1.60.0110.00713.92
7.1.50.0120.00713.78
7.1.40.0130.00513.78
7.1.30.0140.00513.91
7.1.20.0080.00913.77
7.1.10.0120.00713.77
7.1.00.0120.00713.76
7.0.330.0100.00813.62
7.0.320.0110.00713.39
7.0.310.0120.00713.44
7.0.300.0130.00613.52
7.0.290.0140.00413.53
7.0.280.0110.00613.55
7.0.270.0110.00713.42
7.0.260.0120.00813.48
7.0.250.0120.00513.53
7.0.240.0100.00713.52
7.0.230.0110.00613.47
7.0.220.0080.00813.56
7.0.210.0120.00613.51
7.0.200.0090.00913.48
7.0.190.0160.01013.51
7.0.180.0160.00213.58
7.0.170.0100.01013.65
7.0.160.0140.00713.55
7.0.150.0130.00713.47
7.0.140.0120.00513.50
7.0.130.0100.00913.59
7.0.120.0120.00613.41
7.0.110.0120.01013.54
7.0.100.0100.01013.56
7.0.90.0110.00713.45
7.0.80.0100.00713.47
7.0.70.0090.00913.50
7.0.60.0110.00613.56
7.0.50.0110.00713.59
7.0.40.0100.00913.63
7.0.30.0100.00713.57
7.0.20.0130.00613.52
7.0.10.0090.00913.58
7.0.00.0110.00713.50
5.6.400.0120.00714.29
5.6.390.0090.01014.35
5.6.380.0110.00714.29
5.6.370.0120.00914.25
5.6.360.0130.01014.42
5.6.350.0170.00514.39
5.6.340.0130.00914.40
5.6.330.0140.00514.15
5.6.320.0140.01014.41
5.6.310.0140.00614.37
5.6.300.0160.00614.32
5.6.290.0130.00814.41
5.6.280.0150.00914.49
5.6.270.0160.00614.26
5.6.260.0110.01114.40
5.6.250.0120.01114.30
5.6.240.0130.00814.31
5.6.230.0140.00914.32
5.6.220.0130.01014.39
5.6.210.0130.00814.28
5.6.200.0150.00614.26
5.6.190.0130.00914.42
5.6.180.0110.01114.28
5.6.170.0150.00514.35
5.6.160.0150.00614.29
5.6.150.0130.00714.33
5.6.140.0110.00914.31
5.6.130.0100.01114.26
5.6.120.0120.00914.41
5.6.110.0120.00814.36
5.6.100.0130.00614.19
5.6.90.0130.00814.23
5.6.80.0100.01214.33
5.6.70.0130.00814.19
5.6.60.0100.01114.27
5.6.50.0160.00614.29
5.6.40.0130.00714.22
5.6.30.0140.00914.22
5.6.20.0130.00814.28
5.6.10.0140.00614.29
5.6.00.0120.00914.20
5.5.380.0130.00914.28
5.5.370.0130.00714.29
5.5.360.0140.00814.29
5.5.350.0150.00714.15
5.5.340.0120.00914.11
5.5.330.0140.00714.11
5.5.320.0120.00914.28
5.5.310.0120.00914.38
5.5.300.0130.00814.35
5.5.290.0150.00714.12
5.5.280.0130.00714.30
5.5.270.0130.00714.26
5.5.260.0120.00914.28
5.5.250.0150.00614.29
5.5.240.0110.01014.24
5.5.230.0110.00914.32
5.5.220.0100.01014.19
5.5.210.0130.00814.15
5.5.200.0150.00614.26
5.5.190.0150.00714.11
5.5.180.0150.00814.24
5.5.170.0120.00914.21
5.5.160.0150.00514.19
5.5.150.0130.00814.19
5.5.140.0110.01114.27
5.5.130.0130.00814.16
5.5.120.0130.01014.12
5.5.110.0120.00814.26
5.5.100.0140.00714.21
5.5.90.0110.00914.15
5.5.80.0090.00914.15
5.5.70.0110.00814.30
5.5.60.0110.00914.15
5.5.50.0110.01014.20
5.5.40.0090.01014.09
5.5.30.0150.00614.20
5.5.20.0130.00714.28
5.5.10.0110.00914.18
5.5.00.0120.00714.26
5.4.450.0100.00511.02
5.4.440.0100.00511.00
5.4.430.0120.00511.09
5.4.420.0120.00311.02
5.4.410.0100.00511.04
5.4.400.0100.00510.93
5.4.390.0090.00810.96
5.4.380.0140.00411.12
5.4.370.0100.00511.00
5.4.360.0110.00610.79
5.4.350.0050.00910.90
5.4.340.0080.00810.89
5.4.330.0090.00811.13
5.4.320.0080.00610.91
5.4.310.0080.00710.96
5.4.300.0090.00611.04
5.4.290.0110.00511.07
5.4.280.0120.00410.99
5.4.270.0070.00910.89
5.4.260.0090.00510.91
5.4.250.0080.00610.86
5.4.240.0090.00511.00
5.4.230.0090.00610.87
5.4.220.0080.00610.87
5.4.210.0090.00510.87
5.4.200.0110.00610.96
5.4.190.0090.00610.94
5.4.180.0110.00511.02
5.4.170.0090.00511.04
5.4.160.0080.00710.98
5.4.150.0110.00510.93
5.4.140.0130.00311.01
5.4.130.0090.00811.00
5.4.120.0070.00810.95
5.4.110.0070.00811.00
5.4.100.0100.00610.87
5.4.90.0120.00510.98
5.4.80.0120.00510.97
5.4.70.0110.00510.98
5.4.60.0140.00511.10
5.4.50.0100.00510.91
5.4.40.0130.00310.99
5.4.30.0110.00610.95
5.4.20.0080.00710.93
5.4.10.0090.00610.96
5.4.00.0120.00411.00
5.3.290.0120.00410.25
5.3.280.0080.00610.15
5.3.270.0100.00510.27
5.3.260.0070.00810.21
5.3.250.0090.00610.21
5.3.240.0100.00510.19
5.3.230.0100.00610.17
5.3.220.0110.00410.16
5.3.210.0100.00610.20
5.3.200.0120.00410.14
5.3.190.0120.00410.28
5.3.180.0100.00710.25
5.3.170.0080.00710.27
5.3.160.0080.00710.35
5.3.150.0100.00510.34
5.3.140.0080.00810.30
5.3.130.0080.00510.28
5.3.120.0080.00710.23
5.3.110.0100.00510.31
5.3.100.0080.00610.27
5.3.90.0080.00610.31
5.3.80.0090.00510.23
5.3.70.0090.00510.21
5.3.60.0090.00510.27
5.3.50.0100.00410.20
5.3.40.0070.00710.19
5.3.30.0100.00510.16
5.3.20.0080.00410.20
5.3.10.0090.00310.09
5.3.00.0090.00510.06
5.2.170.0070.0069.86
5.2.160.0040.0079.86
5.2.150.0080.0049.87
5.2.140.0070.0049.86
5.2.130.0050.0079.86
5.2.120.0090.0039.86
5.2.110.0050.0079.86
5.2.100.0070.0059.86
5.2.90.0090.0039.86
5.2.80.0070.0059.86
5.2.70.0070.0069.86
5.2.60.0060.0069.86
5.2.50.0050.0059.86
5.2.40.0070.0049.86
5.2.30.0060.0049.86
5.2.20.0080.0039.86
5.2.10.0080.0039.86
5.2.00.0080.0029.86
5.1.60.0070.0039.86
5.1.50.0080.0049.86
5.1.40.0040.0059.86
5.1.30.0080.0019.86
5.1.20.0070.0039.86
5.1.10.0050.0059.86
5.1.00.0060.0059.86
5.0.50.0050.0049.86
5.0.40.0070.0019.86
5.0.30.0070.0029.86
5.0.20.0070.0019.86
5.0.10.0050.0049.86
5.0.00.0030.0059.86
4.4.90.0050.0039.86
4.4.80.0050.0029.86
4.4.70.0040.0029.86
4.4.60.0040.0029.86
4.4.50.0030.0039.86
4.4.40.0040.0049.86
4.4.30.0050.0039.86
4.4.20.0040.0039.86
4.4.10.0050.0029.86
4.4.00.0050.0029.86
4.3.110.0030.0049.86
4.3.100.0030.0049.86
4.3.90.0040.0039.86
4.3.80.0050.0019.86
4.3.70.0050.0019.86
4.3.60.0040.0039.86
4.3.50.0060.0019.86
4.3.40.0060.0019.86
4.3.30.0030.0049.86
4.3.20.0040.0039.86
4.3.10.0060.0029.86
4.3.00.0020.0049.86