3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array("A","B","C","D"); foreach ( $list as $var ) { print(item($list)); } function item($list) { return current($list); } ?>

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)
8.3.130.0090.00018.58
8.3.120.0040.00420.61
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0110.00726.77
8.3.80.0040.00416.63
8.3.70.0120.00916.58
8.3.60.0140.00716.50
8.3.50.0260.00521.95
8.3.40.0070.01118.71
8.3.30.0140.00018.96
8.3.20.0030.00520.02
8.3.10.0080.00023.66
8.3.00.0040.00420.63
8.2.250.0060.00316.60
8.2.240.0150.00418.90
8.2.230.0030.00522.58
8.2.220.0080.00037.54
8.2.210.0070.01026.77
8.2.200.0060.00318.31
8.2.190.0150.00316.58
8.2.180.0070.01125.92
8.2.170.0070.01118.96
8.2.160.0110.00722.96
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0130.00321.13
8.2.110.0080.00020.29
8.2.100.0130.00017.78
8.2.90.0030.00517.75
8.2.80.0060.00317.97
8.2.70.0050.00317.50
8.2.60.0000.00917.50
8.2.50.0000.00817.63
8.2.40.0080.00019.35
8.2.30.0050.00218.08
8.2.20.0040.00417.73
8.2.10.0040.00417.56
8.2.00.0030.00517.74
8.1.300.0070.00318.32
8.1.290.0090.00030.84
8.1.280.0120.00325.92
8.1.270.0050.00323.99
8.1.260.0030.00726.35
8.1.250.0040.00428.09
8.1.240.0070.00322.13
8.1.230.0070.00423.98
8.1.220.0040.00417.74
8.1.210.0000.00819.03
8.1.200.0030.00617.22
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0030.00617.62
8.1.160.0000.00722.02
8.1.150.0040.00418.57
8.1.140.0070.00017.43
8.1.130.0030.00317.40
8.1.120.0070.00017.42
8.1.110.0070.00017.43
8.1.100.0030.00517.50
8.1.90.0040.00417.41
8.1.80.0070.00017.35
8.1.70.0000.00717.40
8.1.60.0000.00817.62
8.1.50.0030.00517.52
8.1.40.0040.00417.54
8.1.30.0000.00817.63
8.1.20.0000.00817.55
8.1.10.0040.00417.48
8.1.00.0040.00417.43
8.0.300.0000.00719.66
8.0.290.0070.00016.63
8.0.280.0030.00318.44
8.0.270.0050.00316.79
8.0.260.0000.00718.60
8.0.250.0000.00616.99
8.0.240.0000.00816.86
8.0.230.0000.00716.98
8.0.220.0030.00316.92
8.0.210.0070.00016.91
8.0.200.0030.00316.92
8.0.190.0040.00416.95
8.0.180.0090.00016.81
8.0.170.0030.00516.97
8.0.160.0040.00416.83
8.0.150.0040.00416.86
8.0.140.0030.00316.89
8.0.130.0050.00013.38
8.0.120.0030.00516.81
8.0.110.0000.00716.86
8.0.100.0000.00716.80
8.0.90.0000.00816.89
8.0.80.0110.00416.81
8.0.70.0030.00616.76
8.0.60.0000.00716.89
8.0.50.0000.00716.93
8.0.30.0120.00617.00
8.0.20.0090.01017.40
8.0.10.0040.00416.97
8.0.00.0130.01016.65
7.4.330.0020.00315.00
7.4.320.0000.00716.52
7.4.300.0070.00016.55
7.4.290.0030.00316.61
7.4.280.0050.00316.47
7.4.270.0050.00216.60
7.4.260.0040.00416.51
7.4.250.0000.00716.46
7.4.240.0030.00316.49
7.4.230.0070.00016.44
7.4.220.0030.00316.47
7.4.210.0150.00616.55
7.4.200.0050.00216.68
7.4.190.0040.00416.65
7.4.160.0060.00916.46
7.4.150.0100.01017.40
7.4.140.0100.01017.86
7.4.130.0090.00816.48
7.4.120.0130.00616.55
7.4.110.0100.00716.42
7.4.100.0110.00716.36
7.4.90.0070.01416.56
7.4.80.0090.01416.53
7.4.70.0100.00716.39
7.4.60.0080.00916.52
7.4.50.0040.00416.39
7.4.40.0060.00622.77
7.4.30.0140.00316.45
7.4.10.0030.01414.95
7.4.00.0070.00914.92
7.3.330.0000.00613.16
7.3.320.0000.00513.16
7.3.310.0000.00716.29
7.3.300.0070.00016.16
7.3.290.0000.00716.12
7.3.280.0120.00816.27
7.3.270.0150.00917.40
7.3.260.0130.01016.48
7.3.250.0110.00616.25
7.3.240.0080.00816.32
7.3.230.0100.00716.39
7.3.210.0120.00616.39
7.3.200.0050.01719.39
7.3.190.0090.00616.25
7.3.180.0060.00916.27
7.3.170.0030.01316.38
7.3.160.0060.01016.29
7.3.130.0140.00314.82
7.3.120.0100.00814.88
7.3.110.0040.01514.84
7.3.100.0000.01415.04
7.3.90.0040.01114.66
7.3.80.0120.00014.75
7.3.70.0040.01114.62
7.3.60.0090.00314.90
7.3.50.0030.01014.84
7.3.40.0040.00814.85
7.3.30.0070.00714.84
7.3.20.0040.01116.72
7.3.10.0040.01116.80
7.3.00.0070.00716.59
7.2.330.0030.01416.67
7.2.320.0090.00616.69
7.2.310.0090.01716.59
7.2.300.0120.01216.76
7.2.290.0090.00916.52
7.2.260.0140.00414.84
7.2.250.0070.00714.95
7.2.240.0060.00615.04
7.2.230.0060.01215.17
7.2.220.0070.01014.97
7.2.210.0000.01214.89
7.2.200.0060.01014.88
7.2.190.0060.00914.98
7.2.180.0040.01115.09
7.2.170.0090.00615.00
7.2.160.0040.01115.02
7.2.150.0040.00816.84
7.2.140.0070.00716.60
7.2.130.0040.00816.71
7.2.120.0030.01016.85
7.2.110.0160.01016.73
7.2.100.0040.00716.88
7.2.90.0070.00717.02
7.2.80.0080.00316.86
7.2.70.0130.00316.86
7.2.60.0090.00516.80
7.2.50.0030.01316.82
7.2.40.0110.00416.98
7.2.30.0100.00717.04
7.2.20.0030.01016.91
7.2.10.0030.00916.79
7.2.00.0040.01116.88
7.1.330.0060.00615.88
7.1.320.0040.01115.74
7.1.310.0060.00615.79
7.1.300.0060.00616.03
7.1.290.0030.00615.71
7.1.280.0110.00315.82
7.1.270.0070.00415.81
7.1.260.0090.00015.98
7.1.250.0060.00615.80
7.1.240.0110.00415.97
7.1.230.0060.01215.87
7.1.220.0000.01015.86
7.1.210.0040.00815.61
7.1.200.0020.01015.82
7.1.190.0030.00915.62
7.1.180.0070.00415.77
7.1.170.0110.00415.73
7.1.160.0030.01115.86
7.1.150.0030.00615.55
7.1.140.0030.00615.79
7.1.130.0030.00915.78
7.1.120.0040.01115.54
7.1.110.0070.01015.73
7.1.100.0100.00315.57
7.1.90.0000.01315.89
7.1.80.0060.00615.79
7.1.70.0040.00816.53
7.1.60.0050.01317.53
7.1.50.0070.00316.40
7.1.40.0030.00715.55
7.1.30.0030.00515.76
7.1.20.0080.00315.75
7.1.10.0030.00915.96
7.1.00.0050.04218.93
7.0.330.0030.01315.41
7.0.320.0030.00715.16
7.0.310.0040.00715.19
7.0.300.0060.00315.39
7.0.290.0070.01015.30
7.0.280.0030.01015.36
7.0.270.0070.00415.27
7.0.260.0040.00815.48
7.0.250.0080.00615.19
7.0.240.0000.00815.70
7.0.230.0030.00715.39
7.0.220.0030.01015.53
7.0.210.0030.00515.49
7.0.200.0030.00716.08
7.0.190.0040.00715.23
7.0.180.0030.00915.21
7.0.170.0030.01015.38
7.0.160.0030.00615.15
7.0.150.0030.00715.30
7.0.140.0070.03618.86
7.0.130.0090.00315.29
7.0.120.0030.01315.40
7.0.110.0000.01215.11
7.0.100.0070.04517.70
7.0.90.0060.02617.71
7.0.80.0000.03217.68
7.0.70.0070.03917.64
7.0.60.0300.03517.68
7.0.50.0070.04217.91
7.0.40.0090.04316.85
7.0.30.0110.04116.69
7.0.20.0090.04216.66
7.0.10.0090.04716.66
7.0.00.0080.03716.73
5.6.400.0030.00914.11
5.6.390.0080.00414.18
5.6.380.0000.00914.05
5.6.370.0000.01113.95
5.6.360.0000.01014.40
5.6.350.0090.00014.30
5.6.340.0080.00514.34
5.6.330.0030.01014.40
5.6.320.0000.01414.55
5.6.310.0090.00014.61
5.6.300.0070.00314.55
5.6.290.0060.00314.01
5.6.280.0080.03817.68
5.6.270.0060.00914.39
5.6.260.0100.00314.29
5.6.250.0090.04817.48
5.6.240.0060.02817.60
5.6.230.0050.04617.64
5.6.220.0080.04317.43
5.6.210.0090.04117.49
5.6.200.0070.04317.60
5.6.190.0100.03117.62
5.6.180.0050.04317.75
5.6.170.0100.04617.68
5.6.160.0090.04017.67
5.6.150.0080.04817.82
5.6.140.0080.04517.58
5.6.130.0140.03917.57
5.6.120.0070.04717.67
5.6.110.0110.04317.78
5.6.100.0070.04517.52
5.6.90.0050.03217.62
5.6.80.0050.03817.38
5.6.70.0100.03017.26
5.6.60.0070.03917.18
5.6.50.0130.02517.38
5.6.40.0110.03817.14
5.6.30.0030.04017.29
5.6.20.0050.04317.34
5.6.10.0070.04617.39
5.6.00.0130.04317.31
5.5.380.0050.04917.35
5.5.370.0070.02817.30
5.5.360.0130.04017.36
5.5.350.0090.03817.32
5.5.340.0080.04317.34
5.5.330.0020.04917.46
5.5.320.0080.04517.56
5.5.310.0030.02917.53
5.5.300.0050.04317.59
5.5.290.0080.04217.57
5.5.280.0050.04517.44
5.5.270.0100.04017.46
5.5.260.0080.03117.66
5.5.250.0020.02817.38
5.5.240.0080.03917.14
5.5.230.0060.04217.19
5.5.220.0070.03817.04
5.5.210.0040.04417.20
5.5.200.0080.02617.09
5.5.190.0080.03517.18
5.5.180.0020.04417.24
5.5.170.0060.00914.22
5.5.160.0080.03817.08
5.5.150.0030.03617.17
5.5.140.0080.04117.13
5.5.130.0060.03316.97
5.5.120.0040.03017.29
5.5.110.0050.04117.14
5.5.100.0100.03817.17
5.5.90.0060.02817.11
5.5.80.0050.03917.11
5.5.70.0050.04817.12
5.5.60.0020.03717.16
5.5.50.0050.02016.87
5.5.40.0020.02917.14
5.5.30.0100.04216.92
5.5.20.0190.03017.14
5.5.10.0100.02017.08
5.5.00.0050.03517.09
5.4.450.0080.04115.32
5.4.440.0030.04515.18
5.4.430.0080.04115.38
5.4.420.0060.03815.30
5.4.410.0080.03815.23
5.4.400.0060.02815.06
5.4.390.0040.04014.76
5.4.380.0080.03815.04
5.4.370.0030.04014.96
5.4.360.0050.04514.90
5.4.350.0050.03015.15
5.4.340.0080.04115.04
5.4.330.0000.00711.05
5.4.320.0060.02314.93
5.4.310.0110.03314.79
5.4.300.0080.03714.84
5.4.290.0060.04115.11
5.4.280.0070.02715.04
5.4.270.0100.02114.89
5.4.260.0050.04215.02
5.4.250.0070.02215.01
5.4.240.0020.03515.07
5.4.230.0030.04115.07
5.4.220.0040.02315.11
5.4.210.0080.03715.17
5.4.200.0070.04114.93
5.4.190.0050.03915.09
5.4.180.0060.03814.92
5.4.170.0030.02815.08
5.4.160.0060.02514.97
5.4.150.0020.03214.85
5.4.140.0070.02513.55
5.4.130.0030.02613.61
5.4.120.0050.03913.73
5.4.110.0080.02713.54
5.4.100.0060.02313.77
5.4.90.0050.03213.84
5.4.80.0030.02813.75
5.4.70.0070.04213.71
5.4.60.0070.04013.71
5.4.50.0080.03613.64
5.4.40.0050.03913.63
5.4.30.0050.04013.70
5.4.20.0070.04013.81
5.4.10.0070.03713.74
5.4.00.0030.04213.35
5.3.290.0050.02412.67
5.3.280.0050.03512.55
5.3.270.0080.03012.52
5.3.260.0090.04012.52
5.3.250.0050.04612.54
5.3.240.0100.03812.52
5.3.230.0070.03512.56
5.3.220.0080.03512.39
5.3.210.0090.03212.49
5.3.200.0050.04112.55
5.3.190.0080.02212.58
5.3.180.0080.03312.62
5.3.170.0080.03812.45
5.3.160.0040.04212.43
5.3.150.0130.02712.66
5.3.140.0050.04012.54
5.3.130.0060.04112.62
5.3.120.0030.04112.54
5.3.110.0080.04012.42
5.3.100.0070.04212.20
5.3.90.0170.02012.27
5.3.80.0050.04212.37
5.3.70.0060.03712.27
5.3.60.0050.03112.25
5.3.50.0040.03012.23
5.3.40.0070.04112.26
5.3.30.0030.02312.26
5.3.20.0040.02512.13
5.3.10.0030.03812.07
5.3.00.0070.03511.98
5.2.170.0070.03711.19
5.2.160.0200.05011.02
5.2.150.0100.05711.05
5.2.140.0100.04711.23
5.2.130.0100.03710.96
5.2.120.0030.04311.12
5.2.110.0100.05311.21
5.2.100.0030.04011.14
5.2.90.0000.06711.16
5.2.80.0070.06011.15
5.2.70.0100.03011.01
5.2.60.0070.03310.98
5.2.50.0030.06311.05
5.2.40.0070.05711.01
5.2.30.0030.03710.88
5.2.20.0130.05311.07
5.2.10.0030.06010.88
5.2.00.0030.05010.70
5.1.60.0070.05710.10
5.1.50.0030.03310.06
5.1.40.0030.05310.08
5.1.30.0100.04010.25
5.1.20.0070.06010.27
5.1.10.0070.05310.10
5.1.00.0000.05710.06
5.0.50.0100.0238.61
5.0.40.0000.0438.49
5.0.30.0100.0478.28
5.0.20.0070.0338.28
5.0.10.0030.0338.29
5.0.00.0000.0378.29
4.4.90.0030.0178.28
4.4.80.0000.0278.28
4.4.70.0070.0208.28
4.4.60.0030.0178.28
4.4.50.0070.0338.28
4.4.40.0030.0438.28
4.4.30.0070.0338.28
4.4.20.0030.0338.28
4.4.10.0030.0238.28
4.4.00.0000.0408.28
4.3.110.0030.0238.28
4.3.100.0000.0378.28
4.3.90.0000.0238.28
4.3.80.0000.0538.28
4.3.70.0030.0278.28
4.3.60.0030.0238.28
4.3.50.0030.0308.28
4.3.40.0000.0478.28
4.3.30.0000.0338.28
4.3.20.0000.0378.28
4.3.10.0000.0378.28
4.3.00.0000.0378.28

preferences:
28.82 ms | 403 KiB | 5 Q