3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new ArrayIterator( array( 'foo' => 1, 'bar' => 2, ) ); $keys = array_keys( $x ); if ( ! empty( $keys ) && is_array( $keys ) ) { print "PASS"; } else { print "FAIL"; }

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.140.0150.00016.77
8.3.130.0050.00316.47
8.3.120.0110.00718.89
8.3.110.0030.00620.94
8.3.100.0080.00024.06
8.3.90.0100.01026.77
8.3.80.0060.00318.56
8.3.70.0120.00316.50
8.3.60.0120.00918.56
8.3.50.0130.00521.94
8.3.40.0120.00318.93
8.3.30.0110.00819.09
8.3.20.0090.00620.34
8.3.10.0000.00823.66
8.3.00.0030.01022.46
8.2.250.0030.01218.53
8.2.240.0050.00517.15
8.2.230.0080.00822.58
8.2.220.0060.00337.54
8.2.210.0000.00726.77
8.2.200.0080.00016.63
8.2.190.0140.00716.75
8.2.180.0120.00618.67
8.2.170.0150.00622.96
8.2.160.0100.00322.13
8.2.150.0150.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0110.00017.63
8.2.110.0040.00420.52
8.2.100.0110.00017.78
8.2.90.0000.00818.89
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0050.00317.91
8.2.50.0000.00818.07
8.2.40.0040.00421.09
8.2.30.0030.00517.99
8.2.20.0040.00417.68
8.2.10.0050.00217.98
8.2.00.0000.00717.87
8.1.300.0070.00716.26
8.1.290.0090.00018.88
8.1.280.0040.01125.92
8.1.270.0080.00820.32
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0050.00521.88
8.1.230.0070.00420.91
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00717.36
8.1.190.0040.00417.35
8.1.180.0000.00718.10
8.1.170.0050.00318.50
8.1.160.0030.00321.91
8.1.150.0000.00718.75
8.1.140.0070.00017.30
8.1.130.0070.00017.37
8.1.120.0000.00817.29
8.1.110.0000.01017.33
8.1.100.0060.00217.34
8.1.90.0080.00317.34
8.1.80.0040.00717.30
8.1.70.0070.00417.33
8.1.60.0070.00617.50
8.1.50.0060.00717.39
8.1.40.0060.00617.46
8.1.30.0070.00717.62
8.1.20.0090.00417.54
8.1.10.0080.00517.55
8.1.00.0060.00717.50
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0030.00318.43
8.0.270.0040.00416.81
8.0.260.0030.00316.69
8.0.250.0030.00317.00
8.0.240.0040.00316.88
8.0.230.0070.00416.94
8.0.220.0060.00616.87
8.0.210.0100.00116.85
8.0.200.0060.00516.85
8.0.190.0070.00616.96
8.0.180.0070.00416.81
8.0.170.0100.00116.91
8.0.160.0100.00216.84
8.0.150.0080.00416.77
8.0.140.0060.00516.82
8.0.130.0100.00015.04
8.0.120.0040.00716.88
8.0.110.0070.00316.83
8.0.100.0090.00316.88
8.0.90.0050.00716.73
8.0.80.0100.00616.89
8.0.70.0080.00416.85
8.0.60.0100.00216.76
8.0.50.0090.00216.79
8.0.30.0100.00716.95
8.0.20.0090.01017.25
8.0.10.0040.00716.91
8.0.00.0060.00916.72
7.4.330.0050.00015.08
7.4.320.0070.00416.55
7.4.300.0050.00416.60
7.4.290.0090.00216.51
7.4.280.0060.00616.61
7.4.270.0070.00516.55
7.4.260.0080.00416.56
7.4.250.0110.00216.52
7.4.240.0060.00516.48
7.4.230.0080.00416.54
7.4.220.0130.00616.53
7.4.210.0080.00616.55
7.4.200.0040.00616.64
7.4.190.0140.00016.55
7.4.180.0090.00516.43
7.4.160.0100.00516.43
7.4.150.0130.00316.95
7.4.140.0070.01017.34
7.4.130.0150.00416.50
7.4.120.0080.00816.40
7.4.110.0100.00616.32
7.4.100.0120.00716.50
7.4.90.0070.00816.44
7.4.80.0120.00317.88
7.4.70.0030.01416.38
7.4.60.0120.00216.51
7.4.50.0010.00916.31
7.4.40.0070.00816.44
7.4.30.0100.00516.39
7.4.20.0090.00316.27
7.4.10.0100.00316.46
7.4.00.0050.00615.54
7.3.330.0080.00214.58
7.3.320.0060.00414.50
7.3.310.0080.00216.13
7.3.300.0070.00316.09
7.3.290.0080.00516.18
7.3.280.0140.00616.13
7.3.270.0080.00816.86
7.3.260.0100.00516.39
7.3.250.0100.00816.15
7.3.240.0120.00316.25
7.3.230.0120.00316.22
7.3.220.0080.00816.11
7.3.210.0110.00416.26
7.3.200.0110.00417.65
7.3.190.0120.00316.16
7.3.180.0080.00816.23
7.3.170.0120.00316.25
7.3.160.0110.00516.18
7.3.150.0110.00416.05
7.3.140.0070.00715.95
7.3.130.0100.00315.95
7.3.120.0080.00616.12
7.3.110.0100.00516.07
7.3.100.0090.00615.85
7.3.90.0030.01016.39
7.3.80.0100.00316.17
7.3.70.0040.00916.29
7.3.60.0150.00016.26
7.3.50.0090.00516.12
7.3.40.0130.00016.38
7.3.30.0090.00516.39
7.3.20.0110.00416.22
7.3.10.0110.00516.46
7.3.00.0100.00716.44
7.2.340.0140.00016.36
7.2.330.0090.00616.22
7.2.320.0080.01016.49
7.2.310.0100.00716.32
7.2.300.0070.00816.33
7.2.290.0120.00616.41
7.2.280.0050.00816.25
7.2.270.0050.00816.07
7.2.260.0100.00316.23
7.2.250.0090.00516.39
7.2.240.0100.00516.20
7.2.230.0090.00516.20
7.2.220.0120.00216.20
7.2.210.0090.00516.33
7.2.200.0130.00316.31
7.2.190.0110.00616.41
7.2.180.0070.00716.27
7.2.170.0140.00016.43
7.2.160.0110.00316.48
7.2.150.0150.00016.39
7.2.140.0100.00516.39
7.2.130.0070.00916.78
7.2.120.0060.00916.71
7.2.110.0080.00816.67
7.2.100.0100.00316.57
7.2.90.0110.00516.75
7.2.80.0090.00516.71
7.2.70.0070.00616.77
7.2.60.0040.00916.55
7.2.50.0070.00816.85
7.2.40.0190.01216.72
7.2.30.0060.00816.80
7.2.20.0100.00416.75
7.2.10.0060.00916.71
7.2.00.0070.00717.36
7.1.330.0110.00315.49
7.1.320.0050.01015.36
7.1.310.0100.00415.34
7.1.300.0120.00415.60
7.1.290.0150.00015.35
7.1.280.0090.00615.46
7.1.270.0000.01315.27
7.1.260.0070.00715.25
7.1.250.0040.01015.39
7.1.240.0100.00415.32
7.1.230.0130.00015.27
7.1.220.0120.00215.29
7.1.210.0070.00715.56
7.1.200.0090.00215.45
7.1.190.0030.01115.52
7.1.180.0150.00015.42
7.1.170.0140.00015.36
7.1.160.0300.00715.44
7.1.150.0120.00315.44
7.1.140.0100.00315.44
7.1.130.0140.00015.45
7.1.120.0100.00415.46
7.1.110.0140.00015.29
7.1.100.0070.00316.68
7.1.90.0050.01015.34
7.1.80.0150.00015.46
7.1.70.0050.00516.12
7.1.60.0110.00917.28
7.1.50.0080.01216.05
7.1.40.0050.00915.35
7.1.30.0000.01415.36
7.1.20.0120.00215.39
7.1.10.0130.00015.35
7.1.00.0090.04918.85
7.0.330.0050.00915.02
7.0.320.0080.00815.30
7.0.310.0100.00315.15
7.0.300.0100.00415.17
7.0.290.0110.00315.13
7.0.280.0210.00415.13
7.0.270.0140.00014.99
7.0.260.0110.00414.92
7.0.250.0110.00415.44
7.0.240.0080.00515.13
7.0.230.0080.00515.38
7.0.220.0080.00515.20
7.0.210.0100.00315.31
7.0.200.0060.00515.80
7.0.190.0130.00015.16
7.0.180.0090.00515.30
7.0.170.0080.00515.16
7.0.160.0070.00714.93
7.0.150.0100.00315.04
7.0.140.0090.00514.98
7.0.130.0100.00315.17
7.0.120.0100.00315.23
7.0.110.0140.00015.24
7.0.100.0050.00815.22
7.0.90.0110.00315.18
7.0.80.0070.00714.98
7.0.70.0030.01015.20
7.0.60.0220.03518.45
7.0.50.0070.02316.43
7.0.40.0040.02917.63
7.0.30.0350.03517.60
7.0.20.0220.03717.50
7.0.10.0120.04217.60
7.0.00.0060.03917.53
5.6.400.0070.00715.65
5.6.390.0130.00015.80
5.6.380.0130.00015.87
5.6.370.0100.00315.62
5.6.360.0100.00315.57
5.6.350.0000.01315.85
5.6.340.0130.00015.60
5.6.330.0080.00415.58
5.6.320.0060.00615.62
5.6.310.0100.00315.79
5.6.300.0070.00715.72
5.6.290.0000.01315.78
5.6.280.0040.04018.30
5.6.270.0060.00615.67
5.6.260.0080.00415.66
5.6.250.0120.00015.78
5.6.240.0060.00615.88
5.6.230.0050.00815.98
5.6.220.0140.00015.88
5.6.210.0150.03818.16
5.6.200.0110.02317.06
5.6.190.0060.02818.20
5.6.180.0260.02618.14
5.6.170.0200.03018.18
5.6.160.0100.03818.21
5.6.150.0080.03517.11
5.6.140.0060.03917.09
5.6.130.0060.04417.01
5.6.120.0130.04018.42
5.6.110.0110.04018.45
5.6.100.0060.02218.47
5.6.90.0120.04218.40
5.6.80.0130.03618.12
5.6.70.0070.00515.93
5.6.60.0080.00415.93
5.6.50.0080.00415.73
5.6.40.0130.00015.83
5.6.30.0040.00815.68
5.6.20.0080.00415.61
5.6.10.0080.00415.84
5.6.00.0090.00315.77
5.5.380.0060.00616.01
5.5.370.0080.00415.72
5.5.360.0060.00615.82
5.5.350.0220.03717.97
5.5.340.0120.04016.72
5.5.330.0050.03217.99
5.5.320.0250.02517.93
5.5.310.0180.04217.90
5.5.300.0050.04816.82
5.5.290.0060.04616.87
5.5.280.0060.02218.32
5.5.270.0150.03518.21
5.5.260.0110.04118.18
5.5.250.0060.02418.23
5.5.240.0100.03317.90
5.5.230.0090.00415.87
5.5.220.0080.00415.53
5.5.210.0120.00016.03
5.5.200.0090.00315.73
5.5.190.0100.00315.67
5.5.180.0060.00615.50
5.5.170.0040.00915.38
5.5.160.0100.00315.39
5.5.150.0040.00915.50
5.5.140.0100.00515.35
5.5.130.0120.00015.36
5.5.120.0090.00315.60
5.5.110.0130.00015.43
5.5.100.0000.01315.56
5.5.90.0100.00315.74
5.5.80.0120.00015.96
5.5.70.0120.00015.61
5.5.60.0100.00315.49
5.5.50.0090.00315.68
5.5.40.0120.00015.50
5.5.30.0080.00415.55
5.5.20.0090.00315.80
5.5.10.0120.00015.89
5.5.00.0090.00315.59
5.4.450.0340.03415.93
5.4.440.0480.03215.75
5.4.430.0480.04015.93
5.4.420.0500.03216.09
5.4.410.0410.02815.97
5.4.400.0520.02715.65
5.4.390.0440.03115.75
5.4.380.0510.02615.93
5.4.370.0440.02715.72
5.4.360.0530.03515.71
5.4.350.0620.02515.86
5.4.340.0420.02815.62
5.4.330.0050.00512.50
5.4.320.0500.02615.68
5.4.310.0470.02615.91
5.4.300.0640.03315.75
5.4.290.0470.02915.82
5.4.280.0440.03415.92
5.4.270.0440.03115.97
5.4.260.0450.03515.80
5.4.250.0430.03015.80
5.4.240.0430.03715.60
5.4.230.0620.02715.70
5.4.220.0490.02815.66
5.4.210.0420.02515.66
5.4.200.0430.02414.54
5.4.190.0470.02015.64
5.4.180.0360.03115.68
5.4.170.0500.02715.79
5.4.160.0520.02215.88
5.4.150.0490.02615.59
5.4.140.0540.02814.43
5.4.130.0630.03014.49
5.4.120.0400.02514.46
5.4.110.0560.02914.45
5.4.100.0500.02314.55
5.4.90.0460.02714.52
5.4.80.0470.02714.61
5.4.70.0500.02714.31
5.4.60.0430.02914.34
5.4.50.0430.02814.25
5.4.40.0580.02714.41
5.4.30.0450.02814.54
5.4.20.0420.03114.60
5.4.10.0500.02514.45
5.4.00.0530.03214.10

preferences:
33.41 ms | 403 KiB | 5 Q