3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new ArrayIterator( array( 'foo' => 1, 'bar' => 2, ) ); if ( array_key_exists( 'foo', $x ) ) { echo "PASS\n"; } else { echo "FAIL\n"; } if ( ! array_key_exists( 'baz', $x ) ) { echo "PASS\n"; } else { echo "FAIL\n"; }

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.4.20.0150.00417.97
8.4.10.0040.00417.95
8.3.150.0040.01516.92
8.3.140.0110.00316.54
8.3.130.0040.01118.59
8.3.120.0060.00318.73
8.3.110.0040.00420.94
8.3.100.0040.00724.06
8.3.90.0000.00826.77
8.3.80.0060.00316.50
8.3.70.0070.00716.88
8.3.60.0140.00718.27
8.3.50.0120.00822.08
8.3.40.0090.00618.84
8.3.30.0060.01318.85
8.3.20.0060.00620.33
8.3.10.0070.00723.27
8.3.00.0140.00022.43
8.2.270.0150.00316.62
8.2.260.0060.00318.90
8.2.250.0080.00416.91
8.2.240.0090.00618.84
8.2.230.0040.00422.58
8.2.220.0000.00837.54
8.2.210.0080.00026.77
8.2.200.0030.00618.42
8.2.190.0140.00316.63
8.2.180.0100.01025.92
8.2.170.0100.01018.91
8.2.160.0090.00622.96
8.2.150.0030.00525.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.86
8.2.110.0070.00420.44
8.2.100.0120.00018.09
8.2.90.0050.00319.22
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0030.00618.03
8.2.50.0040.00418.07
8.2.40.0030.00518.22
8.2.30.0050.00317.94
8.2.20.0000.00717.73
8.2.10.0000.00817.98
8.2.00.0000.00817.93
8.1.310.0110.00718.54
8.1.300.0090.00918.43
8.1.290.0090.00030.84
8.1.280.0130.00725.92
8.1.270.0070.00720.36
8.1.260.0030.00526.35
8.1.250.0030.00628.09
8.1.240.0030.00623.79
8.1.230.0100.00319.16
8.1.220.0000.00817.76
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0030.00617.35
8.1.180.0060.00318.10
8.1.170.0000.00818.56
8.1.160.0040.00418.79
8.1.150.0040.00420.07
8.1.140.0040.00417.32
8.1.130.0000.00717.68
8.1.120.0000.00717.39
8.1.110.0050.00317.39
8.1.100.0000.00817.40
8.1.90.0000.00817.43
8.1.80.0030.00317.36
8.1.70.0000.00717.35
8.1.60.0040.00417.50
8.1.50.0000.00917.50
8.1.40.0040.00417.43
8.1.30.0080.00017.48
8.1.20.0000.00717.59
8.1.10.0000.00817.52
8.1.00.0040.00417.42
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.29
8.0.270.0030.00716.81
8.0.260.0000.00817.20
8.0.250.0000.00816.96
8.0.240.0030.00316.95
8.0.230.0040.00416.91
8.0.220.0000.00716.76
8.0.210.0000.00816.87
8.0.200.0000.00716.91
8.0.190.0060.00316.93
8.0.180.0040.00316.82
8.0.170.0000.00716.83
8.0.160.0000.00716.93
8.0.150.0030.00316.80
8.0.140.0060.00316.85
8.0.130.0070.00013.36
8.0.120.0040.00416.83
8.0.110.0050.00316.78
8.0.100.0000.00716.75
8.0.90.0040.00416.68
8.0.80.0060.01016.94
8.0.70.0030.00516.72
8.0.60.0040.00416.90
8.0.50.0000.00716.75
8.0.30.0090.00717.18
8.0.20.0110.00717.40
8.0.10.0040.00416.92
8.0.00.0110.00716.75
7.4.330.0060.00015.08
7.4.320.0030.00616.55
7.4.300.0060.00016.41
7.4.290.0070.00316.50
7.4.280.0030.00316.63
7.4.270.0080.00016.49
7.4.260.0070.00016.57
7.4.250.0000.00716.36
7.4.240.0030.00316.46
7.4.230.0040.00416.70
7.4.220.0060.01316.50
7.4.210.0030.01016.60
7.4.200.0000.00716.60
7.4.160.0040.01116.66
7.4.150.0100.00717.40
7.4.140.0080.01017.86
7.4.130.0110.00716.56
7.4.120.0110.00916.53
7.4.110.0070.01016.55
7.4.100.0130.01016.40
7.4.90.0170.00716.60
7.4.80.0060.01019.39
7.4.70.0110.00716.50
7.4.60.0040.01516.59
7.4.50.0060.00316.70
7.4.40.0000.01616.34
7.4.30.0090.00916.57
7.4.00.0060.00314.90
7.3.330.0000.00512.98
7.3.320.0030.00312.98
7.3.310.0030.00316.20
7.3.300.0060.00016.12
7.3.290.0080.00616.10
7.3.280.0100.00916.11
7.3.270.0150.00617.40
7.3.260.0070.01016.10
7.3.250.0070.01316.13
7.3.240.0120.00616.12
7.3.230.0060.01216.39
7.3.210.0140.00316.38
7.3.200.0070.01019.39
7.3.190.0160.00016.53
7.3.180.0080.00816.42
7.3.170.0060.01116.27
7.3.160.0130.00316.22
7.3.120.0060.01014.59
7.3.110.0030.01014.88
7.3.100.0000.01614.72
7.3.90.0100.00314.71
7.3.80.0070.00714.88
7.3.70.0080.00314.63
7.3.60.0150.00014.81
7.3.50.0030.00714.73
7.3.40.0110.00014.48
7.3.30.0030.01314.56
7.3.20.0100.00016.68
7.3.10.0080.00416.57
7.3.00.0030.00716.53
7.2.330.0120.00516.38
7.2.320.0060.02016.35
7.2.310.0070.01016.57
7.2.300.0090.00916.77
7.2.290.0130.00916.68
7.2.240.0030.00814.97
7.2.230.0000.01415.16
7.2.220.0070.01115.13
7.2.210.0090.00614.71
7.2.200.0090.00614.71
7.2.190.0000.01515.11
7.2.180.0060.01215.13
7.2.170.0090.00614.98
7.2.160.0070.00714.96
7.2.150.0070.01116.79
7.2.140.0080.00816.88
7.2.130.0160.00016.93
7.2.120.0090.00317.00
7.2.110.0070.01016.73
7.2.100.0100.00616.68
7.2.90.0090.00616.88
7.2.80.0120.00316.84
7.2.70.0060.00916.89
7.2.60.0040.00916.78
7.2.50.0060.00616.99
7.2.40.0090.00316.90
7.2.30.0140.00016.93
7.2.20.0060.01216.89
7.2.10.0000.01616.97
7.2.00.0050.00918.11
7.1.330.0040.00415.82
7.1.320.0000.01115.79
7.1.310.0000.01015.50
7.1.300.0060.00615.72
7.1.290.0040.01115.85
7.1.280.0000.01015.74
7.1.270.0050.00515.85
7.1.260.0060.01015.73
7.1.250.0080.00615.73
7.1.200.0030.01015.82
7.1.100.0070.01018.07
7.1.70.0030.00517.06
7.1.60.0060.01619.19
7.1.50.0100.01616.66
7.1.00.0030.07722.44
7.0.200.0070.00316.75
7.0.60.0070.07319.87
7.0.50.0030.04717.66
7.0.40.0100.03720.23
7.0.30.0300.05320.04
7.0.20.0270.08720.20
7.0.10.0100.08320.16
7.0.00.0100.03720.20
5.6.280.0030.05721.10
5.6.210.0130.07320.64
5.6.200.0070.08318.24
5.6.190.0130.05320.57
5.6.180.3300.03020.41
5.6.170.0230.03720.50
5.6.160.0100.06720.54
5.6.150.0170.07318.21
5.6.140.0100.04318.07
5.6.130.0070.05018.16
5.6.120.0030.04320.96
5.6.110.0030.06021.04
5.6.100.0100.06721.03
5.6.90.0030.04020.95
5.6.80.0070.07720.40
5.6.70.0370.06720.23
5.5.350.0300.07020.52
5.5.340.0130.04017.89
5.5.330.0130.05720.36
5.5.320.0300.07720.52
5.5.310.0270.08020.23
5.5.300.0030.05317.95
5.5.290.0070.05318.01
5.5.280.0070.03720.79
5.5.270.0000.04720.63
5.5.260.0170.08020.67
5.5.250.0000.04320.69
5.5.240.4230.03020.13
5.4.450.0800.05319.48
5.4.440.0770.06019.45
5.4.430.0870.05019.32
5.4.420.0770.06019.31
5.4.410.0900.04719.45
5.4.400.0770.05719.30
5.4.390.0800.05719.30
5.4.380.0800.05718.79
5.4.370.0870.05319.12
5.4.360.0730.06319.25
5.4.350.0870.04719.30
5.4.340.0930.06018.91
5.4.320.0830.05319.14
5.4.310.0830.05319.27
5.4.300.0770.05318.94
5.4.290.0800.05719.21
5.4.280.0700.05018.80
5.4.270.0830.05019.11
5.4.260.0800.04719.07
5.4.250.0770.05319.30
5.4.240.0800.05019.13
5.4.230.0770.04719.15
5.4.220.0870.06319.14
5.4.210.0700.05719.25
5.4.200.0700.05716.89
5.4.190.0630.05319.08
5.4.180.0930.04719.28
5.4.170.0930.04318.93
5.4.160.0930.04718.90
5.4.150.0900.05318.80
5.4.140.0870.05016.43
5.4.130.0930.05316.22
5.4.120.0800.06316.32
5.4.110.1100.05016.36
5.4.100.1030.06316.37
5.4.90.1030.05716.31
5.4.80.1300.06016.16
5.4.70.0930.06016.16
5.4.60.0970.06016.29
5.4.50.0870.07316.23
5.4.40.0900.06716.29
5.4.30.1000.06716.34
5.4.20.1030.04716.16
5.4.10.0770.05316.35
5.4.00.0800.05015.67
5.3.290.0870.05314.45
5.3.280.0900.04714.43
5.3.270.0630.06014.45
5.3.260.0670.05314.54
5.3.250.0570.06014.61
5.3.240.0670.05314.40
5.3.230.0670.06714.39
5.3.220.0630.06314.52
5.3.210.0730.06314.55
5.3.200.0900.07314.42
5.3.190.1000.07014.36
5.3.180.0900.04014.52
5.3.170.0770.06014.41
5.3.160.0670.05314.54
5.3.150.0870.06314.42
5.3.140.0830.06014.54
5.3.130.0770.06314.39
5.3.120.0600.06714.34
5.3.110.0900.06314.64
5.3.100.0670.05014.13
5.3.90.0770.05714.00
5.3.80.0770.05314.00
5.3.70.0730.06013.96
5.3.60.0800.05014.02
5.3.50.0570.05313.96
5.3.40.0700.04314.04
5.3.30.0600.04713.75
5.3.20.0970.04713.57
5.3.10.1000.03013.61
5.3.00.0770.06713.45
5.2.170.0700.04011.00
5.2.160.0700.03710.98
5.2.150.0700.04710.98
5.2.140.0670.04310.98
5.2.130.0700.03710.90
5.2.120.0530.04311.12
5.2.110.0630.05310.93
5.2.100.0800.03311.09
5.2.90.0630.04011.04
5.2.80.0630.04011.04
5.2.70.0530.04010.89
5.2.60.0700.05311.12
5.2.50.0670.04010.86
5.2.40.0530.04010.78
5.2.30.0570.03710.76
5.2.20.0530.03710.75
5.2.10.0530.04010.91
5.2.00.0670.03710.62
5.1.60.0430.04010.07
5.1.50.0570.03010.01
5.1.40.0400.0379.84
5.1.30.0770.04310.27
5.1.20.0470.04010.30
5.1.10.0530.0379.96
5.1.00.0500.03710.22
5.0.50.0200.0378.43
5.0.40.0300.0238.42
5.0.30.0230.0608.08
5.0.20.0330.0238.42
5.0.10.0270.0278.14
5.0.00.0270.0378.15
4.4.90.0200.0205.78
4.4.80.0230.0205.77
4.4.70.0230.0205.81
4.4.60.0200.0235.78
4.4.50.0300.0135.85
4.4.40.0170.0375.80
4.4.30.0130.0275.83
4.4.20.0230.0205.82
4.4.10.0200.0235.85
4.4.00.0230.0335.82
4.3.110.0200.0235.75
4.3.100.0200.0235.72
4.3.90.0200.0235.80
4.3.80.0300.0275.73
4.3.70.0330.0175.66
4.3.60.0100.0305.82
4.3.50.0230.0205.74
4.3.40.0230.0305.71
4.3.30.0070.0274.46
4.3.20.0070.0274.52
4.3.10.0070.0274.43
4.3.00.0200.0176.85

preferences:
30.49 ms | 403 KiB | 5 Q