3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataset = array("a" => "one", "b" => "two"); reset($dataset); while ($a = next($dataset)) { var_dump($a); }

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.60.0090.00918.30
8.3.50.0250.00222.01
8.3.40.0080.00818.70
8.3.30.0100.00719.05
8.3.20.0070.00020.21
8.3.10.0040.00423.56
8.3.00.0050.00320.88
8.2.180.0130.00316.63
8.2.170.0070.00722.96
8.2.160.0130.00720.22
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00619.36
8.2.110.0000.00922.37
8.2.100.0070.00417.78
8.2.90.0050.00519.06
8.2.80.0000.00817.97
8.2.70.0050.00517.50
8.2.60.0030.00717.80
8.2.50.0060.00318.07
8.2.40.0030.00619.95
8.2.30.0040.00418.23
8.2.20.0020.00517.61
8.2.10.0040.00417.92
8.2.00.0000.00819.34
8.1.280.0140.00025.92
8.1.270.0090.00023.87
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00523.92
8.1.230.0110.00018.89
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.13
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0070.00318.51
8.1.160.0040.00421.93
8.1.150.0000.00818.54
8.1.140.0000.00717.38
8.1.130.0000.00817.80
8.1.120.0000.00717.32
8.1.110.0040.00417.21
8.1.100.0000.00817.41
8.1.90.0070.00017.39
8.1.80.0030.00317.39
8.1.70.0040.00417.25
8.1.60.0080.00017.39
8.1.50.0000.00917.44
8.1.40.0050.00317.41
8.1.30.0040.00417.48
8.1.20.0000.00817.47
8.1.10.0080.00017.52
8.1.00.0040.00417.49
8.0.300.0070.00018.77
8.0.290.0000.00716.58
8.0.280.0000.00718.29
8.0.270.0070.00017.20
8.0.260.0060.00017.12
8.0.250.0040.00316.87
8.0.240.0030.00516.89
8.0.230.0050.00216.88
8.0.220.0030.00316.70
8.0.210.0030.00316.86
8.0.200.0070.00016.95
8.0.190.0040.00416.88
8.0.180.0050.00216.83
8.0.170.0000.00716.82
8.0.160.0000.00816.67
8.0.150.0000.00716.66
8.0.140.0070.00016.79
8.0.130.0030.00313.18
8.0.120.0000.00716.79
8.0.110.0040.00416.69
8.0.100.0000.00716.83
8.0.90.0000.00716.67
8.0.80.0040.01116.82
8.0.70.0000.00716.80
8.0.60.0000.00816.84
8.0.50.0050.00316.63
8.0.30.0050.01417.01
8.0.20.0110.00917.40
8.0.10.0040.00417.00
8.0.00.0100.00916.70
7.4.330.0060.00015.00
7.4.320.0060.00016.53
7.4.300.0040.00416.48
7.4.290.0000.00716.34
7.4.280.0080.00016.52
7.4.270.0030.00316.36
7.4.260.0000.00716.52
7.4.250.0040.00416.53
7.4.240.0060.00216.50
7.4.230.0000.00716.53
7.4.220.0060.01216.29
7.4.210.0060.01316.54
7.4.200.0040.00416.41
7.4.160.0060.01016.37
7.4.150.0040.01417.40
7.4.140.0050.01217.86
7.4.130.0120.00516.22
7.4.120.0120.00516.39
7.4.110.0140.00316.31
7.4.100.0160.00616.47
7.4.90.0100.00616.58
7.4.80.0150.00919.39
7.4.70.0100.00716.45
7.4.60.0000.02016.54
7.4.50.0040.00416.39
7.4.40.0080.01116.39
7.4.30.0000.01716.41
7.4.00.0070.01014.77
7.3.330.0000.00513.01
7.3.320.0000.00712.97
7.3.310.0030.00316.06
7.3.300.0000.00615.96
7.3.290.0100.00316.08
7.3.280.0090.00816.06
7.3.270.0160.00317.40
7.3.260.0120.00916.13
7.3.250.0160.00716.24
7.3.240.0100.01016.30
7.3.230.0110.00516.39
7.3.210.0030.01416.18
7.3.200.0130.00719.39
7.3.190.0190.00316.08
7.3.180.0030.01216.07
7.3.170.0110.00616.27
7.3.160.0160.00316.23
7.3.120.0100.00714.73
7.2.330.0140.00316.27
7.2.320.0160.00616.52
7.2.310.0100.00616.29
7.2.300.0130.00316.56
7.2.290.0120.00316.45
7.2.00.0090.00619.34
7.1.200.0050.00315.72
7.1.100.0030.00817.61
7.1.70.0030.00617.16
7.1.60.0070.01319.70
7.1.50.0110.00716.87
7.1.00.0070.07322.33
7.0.200.0030.00716.74
7.0.140.0030.07322.08
7.0.60.0100.08319.95
7.0.50.0170.07017.63
7.0.40.0170.04320.40
7.0.30.0500.07720.11
7.0.20.0170.04319.95
7.0.10.0070.05319.99
7.0.00.0030.07320.20
5.6.280.0000.07321.14
5.6.210.0100.06720.46
5.6.200.0100.08018.22
5.6.190.0130.05720.43
5.6.180.0370.06720.37
5.6.170.0270.05720.33
5.6.160.0070.08320.49
5.6.150.0070.04018.17
5.6.140.0000.04718.11
5.6.130.0100.08018.07
5.6.120.0100.04321.11
5.6.110.0030.04021.13
5.6.100.0100.08321.09
5.6.90.0030.04020.96
5.6.80.0100.06720.48
5.6.70.3830.04020.41
5.5.350.0100.08020.43
5.5.340.0070.04318.02
5.5.330.0070.08320.57
5.5.320.0270.04320.24
5.5.310.0170.05320.24
5.5.300.0070.04317.91
5.5.290.0070.06717.96
5.5.280.0000.05320.96
5.5.270.0100.05020.78
5.5.260.0000.07020.82
5.5.250.0130.07020.69
5.5.240.0000.08320.12
5.4.450.0330.04033.59
5.4.440.0330.05031.25
5.4.430.0270.04329.32
5.4.420.0370.03729.30
5.4.410.0370.05029.29
5.4.400.0570.03729.27
5.4.390.0330.03329.14
5.4.380.0230.04318.59
5.4.370.0100.05318.52
5.4.360.0230.04018.52
5.4.350.0130.05318.57
5.4.340.0100.05318.57
5.4.320.0030.03912.46
5.4.310.0060.03612.45
5.4.300.0060.03812.46
5.4.290.0100.04312.45
5.4.280.0050.04112.35
5.4.270.0080.03312.35
5.4.260.0070.03612.35
5.4.250.0040.04112.35
5.4.240.0090.03512.35
5.4.230.0050.04112.34
5.4.220.0050.03812.34
5.4.210.0080.03412.34
5.4.200.0060.03812.34
5.4.190.0050.03812.34
5.4.180.0060.03712.34
5.4.170.0030.03912.35
5.4.160.0060.03612.34
5.4.150.0070.03412.34
5.4.140.0090.03412.03
5.4.130.0060.03512.02
5.4.120.0040.03711.97
5.4.110.0070.03411.97
5.4.100.0080.03311.96
5.4.90.0060.03611.96
5.4.80.0100.04411.96
5.4.70.0080.03311.96
5.4.60.0050.04011.96
5.4.50.0080.03611.96
5.4.40.0040.03611.95
5.4.30.0040.03611.95
5.4.20.0040.03711.95
5.4.10.0070.03311.95
5.4.00.0050.03711.43
5.3.290.0130.04912.80
5.3.280.0050.03912.71
5.3.270.0040.04112.72
5.3.260.0050.04012.72
5.3.250.0070.03712.72
5.3.240.0050.03812.72
5.3.230.0050.03912.71
5.3.220.0050.03812.68
5.3.210.0060.03912.68
5.3.200.0080.03412.68
5.3.190.0050.03912.68
5.3.180.0100.03212.67
5.3.170.0110.03212.67
5.3.160.0080.03412.67
5.3.150.0060.03712.67
5.3.140.0070.03612.66
5.3.130.0070.03812.66
5.3.120.0080.03912.66
5.3.110.0040.04212.66
5.3.100.0100.03512.12
5.3.90.0060.04712.09
5.3.80.0040.03912.07
5.3.70.0070.03612.07
5.3.60.0070.03612.07
5.3.50.0080.03512.00
5.3.40.0070.03612.00
5.3.30.0080.03511.94
5.3.20.0030.04211.73
5.3.10.0090.03611.69
5.3.00.0070.03711.68
5.2.170.0090.0309.18
5.2.160.0070.0309.18
5.2.150.0050.0339.17
5.2.140.0050.0319.18
5.2.130.0030.0329.13
5.2.120.0080.0259.14
5.2.110.0040.0299.14
5.2.100.0040.0289.14
5.2.90.0050.0289.14
5.2.80.0060.0299.13
5.2.70.0060.0299.13
5.2.60.0070.0279.09
5.2.50.0010.0349.05
5.2.40.0060.0359.03
5.2.30.0040.0319.01
5.2.20.0040.0318.99
5.2.10.0030.0308.92
5.2.00.0040.0318.78
5.1.60.0050.0248.06
5.1.50.0050.0248.06
5.1.40.0050.0258.04
5.1.30.0050.0268.39
5.1.20.0050.0268.41
5.1.10.0050.0258.14
5.1.00.0030.0268.14
5.0.50.0030.0216.61
5.0.40.0010.0226.47
5.0.30.0040.0316.29
5.0.20.0040.0206.25
5.0.10.0040.0196.23
5.0.00.0030.0316.22
4.4.90.0020.0164.78
4.4.80.0040.0144.75
4.4.70.0040.0154.75
4.4.60.0030.0174.75
4.4.50.0030.0154.77
4.4.40.0020.0264.71
4.4.30.0020.0164.75
4.4.20.0020.0164.84
4.4.10.0070.0114.85
4.4.00.0030.0304.76
4.3.110.0040.0144.67
4.3.100.0020.0154.67
4.3.90.0050.0134.63
4.3.80.0030.0244.58
4.3.70.0030.0194.63
4.3.60.0040.0134.62
4.3.50.0040.0184.63
4.3.40.0030.0244.54
4.3.30.0020.0193.29
4.3.20.0020.0183.26
4.3.10.0020.0153.22
4.3.00.0070.01728.69

preferences:
51.44 ms | 401 KiB | 5 Q