3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array(); if ( $x instanceof FooBarArrayIterator ) { echo 'true'; } else { echo 'false'; }

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.0040.01617.44
8.4.10.0000.00817.63
8.3.150.0080.00016.57
8.3.140.0040.01519.02
8.3.130.0090.00618.39
8.3.120.0070.00318.66
8.3.110.0090.00016.48
8.3.100.0120.00316.49
8.3.90.0080.00018.11
8.3.80.0030.00618.05
8.3.70.0170.00316.48
8.3.60.0070.01016.38
8.3.50.0150.00821.25
8.3.40.0140.00718.46
8.3.30.0190.00019.02
8.3.20.0040.00422.12
8.3.10.0040.00421.54
8.3.00.0040.00417.46
8.2.260.0120.00317.28
8.2.250.0070.00718.22
8.2.240.0060.01017.11
8.2.230.0110.00820.94
8.2.220.0050.00337.54
8.2.210.0050.00326.77
8.2.200.0040.00416.50
8.2.190.0180.00316.58
8.2.180.0130.01018.06
8.2.170.0140.00318.83
8.2.160.0060.00922.96
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00521.11
8.2.110.0060.00321.04
8.2.100.0080.00417.84
8.2.90.0030.00519.08
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0080.00017.80
8.2.50.0050.00318.07
8.2.40.0030.00619.82
8.2.30.0050.00218.05
8.2.20.0040.00417.61
8.2.10.0000.00818.01
8.2.00.0000.00817.86
8.1.310.0060.01216.72
8.1.300.0080.00815.95
8.1.290.0090.00018.88
8.1.280.0070.00725.92
8.1.270.0080.00022.07
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00319.22
8.1.230.0000.01117.45
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00717.22
8.1.190.0060.00317.25
8.1.180.0030.00518.10
8.1.170.0050.00318.50
8.1.160.0040.00421.93
8.1.150.0000.00718.81
8.1.140.0000.00817.38
8.1.130.0030.00317.82
8.1.120.0070.00017.45
8.1.110.0040.00417.38
8.1.100.0040.00417.37
8.1.90.0040.00417.27
8.1.80.0070.00017.33
8.1.70.0030.00517.39
8.1.60.0060.00317.46
8.1.50.0040.00417.36
8.1.40.0000.00817.42
8.1.30.0000.00817.48
8.1.20.0040.00417.54
8.1.10.0000.00817.38
8.1.00.0000.00817.29
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0000.00816.73
8.0.260.0000.00617.17
8.0.250.0000.00916.90
8.0.240.0040.00416.92
8.0.230.0070.00016.71
8.0.220.0070.00016.68
8.0.210.0040.00416.81
8.0.200.0030.00616.75
8.0.190.0000.00716.89
8.0.180.0050.00616.82
8.0.170.0030.00616.82
8.0.160.0040.00416.80
8.0.150.0080.00016.80
8.0.140.0000.00716.80
8.0.130.0030.00313.22
8.0.120.0040.00416.77
8.0.110.0000.00816.70
8.0.100.0040.00416.64
8.0.90.0050.00316.89
8.0.80.0060.00916.78
8.0.70.0040.00416.70
8.0.60.0000.00716.60
8.0.50.0000.00716.71
8.0.30.0180.00617.04
8.0.20.0110.00717.40
8.0.10.0040.00416.88
8.0.00.0130.00516.66
7.4.330.0000.00515.03
7.4.320.0030.00316.44
7.4.300.0000.00616.34
7.4.290.0070.00016.42
7.4.280.0060.00316.50
7.4.270.0070.00016.33
7.4.260.0040.00416.46
7.4.250.0040.00416.49
7.4.240.0020.00516.53
7.4.230.0030.00316.61
7.4.220.0030.01316.58
7.4.210.0100.00716.46
7.4.200.0030.00516.57
7.4.160.0090.00616.21
7.4.150.0140.00317.40
7.4.140.0100.00917.86
7.4.130.0110.00816.41
7.4.120.0080.01116.31
7.4.110.0120.00616.18
7.4.100.0070.01116.44
7.4.90.0030.01416.33
7.4.80.0070.01119.39
7.4.70.0130.00416.38
7.4.60.0130.00716.35
7.4.50.0060.00316.36
7.4.40.0000.01516.50
7.4.30.0130.01016.53
7.4.10.0100.00714.74
7.4.00.0050.01115.01
7.3.330.0060.00013.03
7.3.320.0050.00013.03
7.3.310.0030.00316.25
7.3.300.0070.00016.24
7.3.290.0040.00416.20
7.3.280.0090.00816.17
7.3.270.0030.01317.40
7.3.260.0060.00916.11
7.3.250.0090.00816.27
7.3.240.0090.01516.19
7.3.230.0170.00616.39
7.3.210.0100.00716.50
7.3.200.0110.01119.39
7.3.190.0060.01116.37
7.3.180.0030.01316.54
7.3.170.0160.00316.30
7.3.160.0080.00816.57
7.3.130.0100.00714.97
7.3.120.0060.01314.90
7.3.110.0060.01214.78
7.3.100.0030.01214.66
7.3.90.0000.01414.66
7.3.80.0090.00014.69
7.3.70.0110.00314.61
7.3.60.0080.00414.86
7.3.50.0030.01014.88
7.3.40.0060.00614.80
7.3.30.0030.00614.89
7.3.20.0040.01216.67
7.3.10.0070.01116.43
7.3.00.0070.01016.59
7.2.330.0070.01616.55
7.2.320.0080.00816.61
7.2.310.0150.00416.29
7.2.300.0120.00816.27
7.2.290.0030.01316.28
7.2.260.0060.01014.74
7.2.250.0070.01314.76
7.2.240.0000.01414.94
7.2.230.0060.01014.77
7.2.220.0030.01415.14
7.2.210.0070.00315.16
7.2.200.0040.01214.95
7.2.190.0000.01514.61
7.2.180.0040.00814.88
7.2.170.0030.01014.77
7.2.160.0030.00914.84
7.2.150.0000.01616.57
7.2.140.0000.01616.55
7.2.130.0070.00416.95
7.2.120.0030.01016.57
7.2.110.0030.01316.84
7.2.100.0030.01416.81
7.2.90.0030.01016.99
7.2.80.0080.00616.83
7.2.70.0060.01016.56
7.2.60.0060.00616.76
7.2.50.0070.00716.43
7.2.40.0150.00016.61
7.2.30.0060.00616.96
7.2.20.0090.00016.85
7.2.10.0070.00716.91
7.2.00.0060.00518.01
7.1.330.0060.00915.59
7.1.320.0120.00615.86
7.1.310.0100.00315.78
7.1.300.0080.00415.73
7.1.290.0040.01115.84
7.1.280.0060.00615.48
7.1.270.0060.00615.62
7.1.260.0060.00915.77
7.1.250.0080.00315.65
7.1.240.0000.01615.86
7.1.230.0070.00715.53
7.1.220.0100.00315.88
7.1.210.0050.01115.62
7.1.200.0040.00815.45
7.1.190.0060.00615.71
7.1.180.0040.00815.83
7.1.170.0030.01215.67
7.1.160.0100.00315.47
7.1.150.0070.00715.53
7.1.140.0080.00015.49
7.1.130.0030.00915.64
7.1.120.0110.00615.55
7.1.110.0060.00615.84
7.1.100.0020.01016.82
7.1.90.0060.00915.62
7.1.80.0030.01415.55
7.1.70.0030.00716.10
7.1.60.0050.00617.60
7.1.50.0090.01116.24
7.1.40.0070.01015.58
7.1.30.0110.00315.52
7.1.20.0060.00915.62
7.1.10.0000.01215.28
7.1.00.0070.03919.04
7.0.330.0050.00815.39
7.0.320.0030.01315.16
7.0.310.0080.00815.20
7.0.300.0100.00315.46
7.0.290.0000.01115.35
7.0.280.0080.00415.33
7.0.270.0000.01315.48
7.0.260.0040.00715.09
7.0.250.0130.00015.37
7.0.240.0060.00315.20
7.0.230.0060.00615.39
7.0.220.0000.00815.41
7.0.210.0090.00315.39
7.0.200.0060.00315.88
7.0.190.0060.00615.33
7.0.180.0030.01215.29
7.0.170.0070.01015.23
7.0.160.0070.00715.20
7.0.150.0090.00315.30
7.0.140.0100.00315.41
7.0.130.0000.01415.35
7.0.120.0030.01415.26
7.0.110.0030.00515.22
7.0.100.0060.00615.54
7.0.90.0030.01315.30
7.0.80.0070.00715.45
7.0.70.0000.01115.54
7.0.60.0030.03417.67
7.0.50.0000.03816.50
7.0.40.0090.02316.70
7.0.30.0250.03216.84
7.0.20.0120.04016.87
7.0.10.0070.04716.70
7.0.00.0070.02316.82
5.6.400.0030.01314.26
5.6.390.0050.00314.41
5.6.380.0030.01214.15
5.6.370.0030.01414.51
5.6.360.0030.01314.56
5.6.350.0090.00914.05
5.6.340.0060.00914.52
5.6.330.0040.01114.54
5.6.320.0030.00614.51
5.6.310.0000.00914.24
5.6.300.0030.01114.51
5.6.290.0070.01014.11
5.6.280.0090.03917.59
5.6.270.0070.01014.45
5.6.260.0050.00314.48
5.6.250.0040.01114.37
5.6.240.0100.01014.39
5.6.230.0040.00414.22
5.6.220.0060.00614.07
5.6.210.0100.04217.54
5.6.200.0040.04316.12
5.6.190.0060.04117.50
5.6.180.0150.04317.45
5.6.170.0220.03417.38
5.6.160.0020.03417.30
5.6.150.0100.03216.16
5.6.140.0130.03816.16
5.6.130.0130.03516.28
5.6.120.0090.03817.80
5.6.110.0020.04017.55
5.6.100.0060.03917.68
5.6.90.0110.04217.51
5.6.80.0030.04317.29
5.6.70.2280.02417.39
5.6.60.0100.00713.98
5.6.50.0070.00714.17
5.6.40.0090.00614.29
5.6.30.0080.00814.27
5.6.20.0030.00514.38
5.6.10.0040.01114.23
5.6.00.0030.01014.20
5.5.380.0070.00714.22
5.5.370.0040.00814.17
5.5.360.0100.00313.95
5.5.350.0140.02717.44
5.5.340.0070.02715.96
5.5.330.0100.04217.12
5.5.320.0200.02517.34
5.5.310.0150.04617.20
5.5.300.0030.04016.04
5.5.290.0020.05016.18
5.5.280.0070.02417.59
5.5.270.0030.02717.53
5.5.260.0070.03117.34
5.5.250.0100.03517.38
5.5.240.2000.02517.15
5.5.230.0040.00914.35
5.5.220.0030.01014.18
5.5.210.0030.00614.24
5.5.200.0080.00813.90
5.5.190.0110.00313.89
5.5.180.0040.00713.93
5.5.170.0060.00914.14
5.5.160.0040.00413.98
5.5.150.0090.00314.17
5.5.140.0040.00813.95
5.5.130.0120.00313.94
5.5.120.0080.00514.25
5.5.110.0030.00614.05
5.5.100.0070.00414.20
5.5.90.0040.01113.75
5.5.80.0030.01014.31
5.5.70.0000.01213.93
5.5.60.0030.00914.02
5.5.50.0060.00614.05
5.5.40.0030.01214.09
5.5.30.0080.00413.95
5.5.20.0000.01413.72
5.5.10.0000.01013.97
5.5.00.0100.00714.23
5.4.450.0020.02215.90
5.4.440.0250.02415.94
5.4.430.0470.02015.88
5.4.420.0070.03015.88
5.4.410.0080.03115.65
5.4.400.0080.03015.56
5.4.390.0140.02215.50
5.4.380.0130.02515.41
5.4.370.0070.03115.51
5.4.360.0080.03715.51
5.4.350.0100.03215.53
5.4.340.0070.03515.52
5.4.330.0000.00612.31
5.4.320.0100.03015.44
5.4.310.0080.04015.54
5.4.300.0050.03015.45
5.4.290.0120.02515.46
5.4.280.0100.03515.40
5.4.270.0050.03615.41
5.4.260.0100.03015.49
5.4.250.0100.04015.45
5.4.240.0120.03215.40
5.4.230.0190.02315.39
5.4.220.0130.02715.44
5.4.210.0090.02815.39
5.4.200.0140.02514.40
5.4.190.0070.03015.40
5.4.180.0070.03515.50
5.4.170.0030.03815.49
5.4.160.0070.02915.47
5.4.150.0120.03915.39
5.4.140.0100.03714.24
5.4.130.0090.03314.20
5.4.120.0090.02614.25
5.4.110.0050.03014.24
5.4.100.0010.03614.28
5.4.90.0020.03814.24
5.4.80.0020.03414.28
5.4.70.0060.02814.29
5.4.60.0120.02514.24
5.4.50.0070.02914.22
5.4.40.0080.02814.30
5.4.30.0090.03314.23
5.4.20.0050.03314.20
5.4.10.0050.03214.22
5.4.00.0120.03014.01
5.3.290.0170.07014.57
5.3.280.0230.06014.56
5.3.270.0270.06014.59
5.3.260.0100.07014.53
5.3.250.0200.04714.49
5.3.240.0130.07314.49
5.3.230.0130.06014.52
5.3.220.0130.06314.47
5.3.210.0030.08314.52
5.3.200.0130.06314.55
5.3.190.0100.07014.56
5.3.180.0100.06314.61
5.3.170.0070.07314.52
5.3.160.0100.05014.64
5.3.150.0030.06014.65
5.3.140.0100.05014.50
5.3.130.0030.06014.59
5.3.120.0230.05314.49
5.3.110.0300.04714.55
5.3.100.0100.05314.01
5.3.90.0030.06013.95
5.3.80.0130.06314.05
5.3.70.0230.05313.93
5.3.60.0130.06313.96
5.3.50.0200.05314.02
5.3.40.0130.04713.90
5.3.30.0070.05713.87
5.3.20.0070.05313.66
5.3.10.0130.04713.61
5.3.00.0100.05013.61
5.2.170.0130.03711.11
5.2.160.0070.04311.14
5.2.150.0070.04311.14
5.2.140.0130.03711.19
5.2.130.0030.04311.03
5.2.120.0100.05011.05
5.2.110.0100.04011.03
5.2.100.0030.04311.06
5.2.90.0070.04311.05
5.2.80.0070.05311.01
5.2.70.0100.04011.06
5.2.60.0100.04011.18
5.2.50.0100.04010.98
5.2.40.0000.05710.97
5.2.30.0030.06010.96
5.2.20.0100.05010.89
5.2.10.0070.04010.82
5.2.00.0070.04310.71
5.1.60.0130.0309.94
5.1.50.0070.03310.02
5.1.40.0030.03710.04
5.1.30.0100.03710.35
5.1.20.0070.03710.41
5.1.10.0100.03310.04
5.1.00.0030.04010.04
5.0.50.0070.0378.61
5.0.40.0030.0278.52
5.0.30.0130.0338.31
5.0.20.0100.0338.38
5.0.10.0000.0338.26
5.0.00.0130.0478.28
4.4.90.0100.0175.89
4.4.80.0070.0275.89
4.4.70.0030.0335.88
4.4.60.0030.0205.89
4.4.50.0000.0275.83
4.4.40.0030.0475.86
4.4.30.0070.0175.94
4.4.20.0030.0235.94
4.4.10.0070.0176.00
4.4.00.0030.0375.92
4.3.110.0170.0175.76
4.3.100.0000.0235.80
4.3.90.0000.0235.80
4.3.80.0000.0405.82
4.3.70.0070.0205.77
4.3.60.0070.0235.77
4.3.50.0030.0275.79
4.3.40.0100.0405.75
4.3.30.0000.0234.63
4.3.20.0030.0234.51
4.3.10.0030.0234.57
4.3.00.0030.01715.86

preferences:
38.12 ms | 403 KiB | 5 Q