3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new ArrayIterator(['foo', 'bar']); $it->rewind(); $el = $it->current(); var_dump($el);

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.70.0110.00718.43
8.3.60.0070.00718.55
8.3.50.0120.00317.98
8.3.40.0040.01118.41
8.3.30.0070.00718.53
8.3.20.0040.00419.04
8.3.10.0070.00021.77
8.3.00.0070.00020.57
8.2.180.0110.00418.38
8.2.170.0140.00022.96
8.2.160.0070.00720.52
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00418.09
8.2.120.0000.00726.35
8.2.110.0030.00721.05
8.2.100.0060.00617.72
8.2.90.0030.00717.63
8.2.80.0000.00817.97
8.2.70.0040.00417.93
8.2.60.0040.00418.09
8.2.50.0050.00318.10
8.2.40.0030.00519.35
8.2.30.0000.00719.05
8.2.20.0070.00018.00
8.2.10.0050.00317.97
8.2.00.0030.00617.57
8.1.280.0070.01425.92
8.1.270.0090.00020.48
8.1.260.0100.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.42
8.1.230.0110.00021.93
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.22
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0040.00418.28
8.1.160.0040.00418.82
8.1.150.0040.00418.73
8.1.140.0040.00423.91
8.1.130.0040.00420.29
8.1.120.0000.00717.41
8.1.110.0000.00717.40
8.1.100.0000.00717.27
8.1.90.0040.00417.39
8.1.80.0040.00417.35
8.1.70.0070.00017.43
8.1.60.0080.00017.51
8.1.50.0030.00617.48
8.1.40.0000.00717.34
8.1.30.0100.00417.47
8.1.20.0000.00817.54
8.1.10.0000.00817.48
8.1.00.0000.00717.48
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0040.00418.38
8.0.270.0030.00317.06
8.0.260.0060.00318.37
8.0.250.0080.00016.78
8.0.240.0000.00616.87
8.0.230.0070.00016.93
8.0.220.0040.00416.68
8.0.210.0030.00316.80
8.0.200.0030.00316.90
8.0.190.0040.00416.82
8.0.180.0000.00816.92
8.0.170.0060.00316.75
8.0.160.0040.00416.83
8.0.150.0000.00816.70
8.0.140.0030.00316.67
8.0.130.0000.00513.24
8.0.120.0040.00416.68
8.0.110.0050.00316.78
8.0.100.0030.00516.77
8.0.90.0040.00416.74
8.0.80.0090.00916.79
8.0.70.0050.00216.65
8.0.60.0000.00816.80
8.0.50.0000.00816.71
8.0.30.0120.00716.96
8.0.20.0110.01117.40
8.0.10.0040.00416.72
8.0.00.0070.01016.68
7.4.330.0050.00015.55
7.4.320.0000.00616.46
7.4.300.0030.00316.50
7.4.290.0000.00616.43
7.4.280.0020.00816.42
7.4.270.0070.00016.36
7.4.260.0000.00816.56
7.4.250.0070.00016.41
7.4.240.0000.00716.51
7.4.230.0050.00216.61
7.4.220.0080.00016.41
7.4.210.0060.00916.50
7.4.200.0050.00216.62
7.4.160.0070.00816.36
7.4.140.0110.01117.86
7.4.130.0090.00916.45
7.4.120.0070.01016.43
7.4.110.0150.00416.29
7.4.100.0140.00316.45
7.4.90.0070.01016.17
7.4.80.0150.00019.39
7.4.70.0070.01016.42
7.4.60.0040.01116.52
7.4.50.0110.00716.43
7.4.40.0160.00016.57
7.3.330.0050.00013.04
7.3.320.0000.00513.02
7.3.310.0030.00615.98
7.3.300.0030.00316.11
7.3.290.0000.00616.15
7.3.280.0090.01316.07
7.3.260.0070.01116.29
7.3.240.0090.00916.20
7.3.230.0090.00916.24
7.3.210.0130.00316.14
7.3.200.0120.01116.28
7.3.190.0120.00316.12
7.3.180.0030.01416.40
7.3.170.0100.01416.11
7.3.160.0080.01216.35
7.2.330.0110.00616.38
7.2.320.0060.01216.46
7.2.310.0090.00816.41
7.2.300.0090.00916.65
7.2.290.0030.01416.42

preferences:
43.73 ms | 401 KiB | 5 Q