3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( $iterator = new IteratorIterator(['foo', 'bar']) );

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.0140.00718.56
8.3.50.0150.00016.17
8.3.40.0120.00618.97
8.3.30.0120.00318.85
8.3.20.0080.00020.76
8.3.10.0040.00421.95
8.3.00.0060.00319.37
8.2.180.0060.01016.75
8.2.170.0110.00322.96
8.2.160.0030.01020.43
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0110.00320.39
8.2.120.0040.00426.35
8.2.110.0000.00920.35
8.2.100.0090.00317.72
8.2.90.0040.00419.13
8.2.80.0050.00317.97
8.2.70.0030.00517.50
8.2.60.0000.00817.80
8.2.50.0000.00918.10
8.2.40.0080.00020.61
8.2.30.0040.00419.17
8.2.20.0070.00017.97
8.2.10.0000.00717.88
8.2.00.0020.00518.06
8.1.280.0080.00525.92
8.1.270.0030.00622.25
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00520.76
8.1.230.0040.00719.00
8.1.220.0020.00517.74
8.1.210.0030.00618.77
8.1.200.0060.00317.10
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0060.00318.65
8.1.160.0000.00718.96
8.1.150.0040.00420.42
8.1.140.0070.00319.44
8.1.130.0050.00318.76
8.1.120.0070.00017.24
8.1.110.0090.00017.28
8.1.100.0040.00417.39
8.1.90.0040.00417.39
8.1.80.0040.00417.22
8.1.70.0070.00017.31
8.1.60.0050.00317.46
8.1.50.0050.00317.43
8.1.40.0000.00817.34
8.1.30.0050.00317.63
8.1.20.0040.00817.55
8.1.10.0040.00417.46
8.1.00.0050.00217.51
8.0.300.0080.00018.77
8.0.290.0030.00616.75
8.0.280.0030.00318.39
8.0.270.0030.00317.18
8.0.260.0030.00316.80
8.0.250.0070.00016.95
8.0.240.0000.00916.88
8.0.230.0030.00316.99
8.0.220.0030.00316.91
8.0.210.0000.00716.84
8.0.200.0090.00016.84
8.0.190.0040.00416.93
8.0.180.0070.00016.82
8.0.170.0000.00716.89
8.0.160.0070.00016.81
8.0.150.0000.00716.87
8.0.140.0050.00316.93
8.0.130.0050.00013.31
8.0.120.0050.00316.86
8.0.110.0050.00316.78
8.0.100.0000.00716.95
8.0.90.0000.00716.84
8.0.80.0060.01016.82
8.0.70.0040.00416.93
8.0.60.0050.00316.76
8.0.50.0050.00316.81
8.0.30.0110.00716.99
8.0.20.0110.00717.40
8.0.10.0040.00417.01
8.0.00.0100.00716.83
7.4.330.0000.00615.55
7.4.320.0050.00216.40
7.4.300.0030.00316.53
7.4.290.0080.00016.42
7.4.280.0000.00816.43
7.4.270.0000.00616.59
7.4.260.0000.00513.22
7.4.250.0050.00216.36
7.4.240.0070.00016.55
7.4.230.0000.00716.43
7.4.220.0130.01316.59
7.4.210.0090.00616.65
7.4.200.0030.00316.62
7.4.160.0090.00916.46
7.4.150.0040.01417.40
7.4.140.0100.00917.86
7.4.130.0090.00916.48
7.4.120.0130.00816.54
7.4.110.0050.01616.48
7.4.100.0030.01316.61
7.4.90.0080.01116.59
7.4.80.0090.00919.39
7.4.70.0080.00816.32
7.4.60.0060.01216.31
7.4.50.0120.00416.23
7.4.40.0130.00916.67
7.4.30.0100.00616.57
7.4.00.0060.00814.70
7.3.330.0030.00313.09
7.3.320.0060.00012.94
7.3.310.0000.00816.40
7.3.300.0030.00316.24
7.3.290.0030.00316.26
7.3.280.0070.00916.28
7.3.270.0400.01317.40
7.3.260.0080.00916.46
7.3.250.0140.00716.40
7.3.240.0070.01116.46
7.3.230.0070.01016.32
7.3.210.0070.01116.37
7.3.200.0110.00516.50
7.3.190.0050.01116.29
7.3.180.0120.00316.25
7.3.170.0030.01316.36
7.3.160.0030.01316.37
7.3.10.0080.00416.66
7.3.00.0040.00816.37
7.2.330.0160.01316.49
7.2.320.0060.01616.46
7.2.310.0100.00716.43
7.2.300.0110.01116.52
7.2.290.0030.01416.37
7.2.130.0090.00316.73
7.2.120.0030.01416.80
7.2.110.0000.01316.61
7.2.100.0000.01216.77
7.2.90.0140.00016.90
7.2.80.0030.01016.86
7.2.70.0080.00416.80
7.2.60.0060.00716.48
7.2.50.0110.00416.44
7.2.40.0040.01116.75
7.2.30.0060.00616.69
7.2.20.0030.01416.95
7.2.10.0030.01016.91
7.2.00.0060.00917.77
7.1.250.0030.00715.63
7.1.200.0070.00715.61
7.1.100.0030.01017.97
7.1.70.0040.00416.98
7.1.60.2570.01333.24
7.1.50.2200.01732.57
7.1.40.1470.01732.43
7.1.30.3400.01332.56
7.1.20.2130.02032.55
7.1.10.2200.00714.36
7.1.00.2330.01314.75
7.0.200.2630.01314.92
7.0.190.1730.01314.83
7.0.180.1930.01314.29
7.0.170.3670.01314.26
7.0.160.3800.01714.39
7.0.150.2100.01014.27
7.0.140.2130.00714.20
7.0.130.1900.01014.72
7.0.120.1700.01014.73
7.0.110.2630.01314.45
7.0.100.2870.01014.45
7.0.90.2730.01714.15
7.0.80.2000.01714.37
7.0.70.2300.01714.43
7.0.60.2330.01013.95
7.0.50.1970.01314.38
7.0.40.1700.01014.39
7.0.30.2370.01014.43
7.0.20.2500.01714.40
7.0.10.2330.01314.57
7.0.00.2700.02014.45

preferences:
39.7 ms | 400 KiB | 5 Q