3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo implements Iterator { public function __construct() { $this->position = 0; } function rewind() { $this->position = 0; } function current() { return $this->array[$this->position]; } function key() { return $this->position; } function next() { ++$this->position; } function valid() { return isset($this->array[$this->position]); } static function bar() { return "brap brap"; } } echo foo::bar(); $foo = new foo(); var_dump (foo instanceOf Iterator);

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.40.0000.01518.84
8.3.30.0150.00018.99
8.3.20.0040.00418.85
8.3.10.0040.00420.98
8.3.00.0000.00823.45
8.2.170.0070.00722.96
8.2.160.0120.00322.21
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.00
8.2.110.0060.00322.08
8.2.100.0040.00817.78
8.2.90.0030.00617.84
8.2.80.0000.00817.97
8.2.70.0070.00417.75
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0050.00218.09
8.2.30.0030.00521.13
8.2.20.0050.00317.77
8.2.10.0040.00417.75
8.2.00.0030.01017.80
8.1.270.0040.00423.99
8.1.260.0110.00726.35
8.1.250.0030.00528.09
8.1.240.0050.00522.07
8.1.230.0040.00820.94
8.1.220.0040.00417.74
8.1.210.0040.00418.79
8.1.200.0030.00717.35
8.1.190.0030.00617.52
8.1.180.0000.00818.10
8.1.170.0030.00618.48
8.1.160.0000.00718.88
8.1.150.0030.00718.56
8.1.140.0000.00717.44
8.1.130.0030.00317.89
8.1.120.0030.00617.48
8.1.110.0040.00417.39
8.1.100.0030.00617.35
8.1.90.0070.00017.45
8.1.80.0030.00517.48
8.1.70.0000.00717.34
8.1.60.0100.00017.59
8.1.50.0000.00917.50
8.1.40.0040.00417.44
8.1.30.0030.00617.66
8.1.20.0000.00817.52
8.1.10.0040.00417.44
8.1.00.0000.01017.43
8.0.300.0050.00219.98
8.0.290.0070.00017.16
8.0.280.0000.00718.45
8.0.270.0080.00317.16
8.0.260.0050.00316.87
8.0.250.0000.00717.05
8.0.240.0080.00417.04
8.0.230.0000.00716.98
8.0.220.0050.00216.84
8.0.210.0000.00716.96
8.0.200.0000.00616.93
8.0.190.0000.00717.04
8.0.180.0040.00417.06
8.0.170.0070.00017.00
8.0.160.0030.00316.98
8.0.150.0050.00217.01
8.0.140.0000.00716.82
8.0.130.0050.00013.35
8.0.120.0070.00016.79
8.0.110.0040.00416.82
8.0.100.0040.00416.92
8.0.90.0000.00716.77
8.0.80.0120.00616.94
8.0.70.0040.00416.95
8.0.60.0030.00516.84
8.0.50.0000.00716.79
8.0.30.0130.00817.25
8.0.20.0090.01217.40
8.0.10.0000.00717.04
8.0.00.0110.00616.77
7.4.330.0050.00014.68
7.4.320.0090.00016.43
7.4.300.0000.00616.46
7.4.290.0070.00016.45
7.4.280.0050.00316.46
7.4.270.0000.00716.47
7.4.260.0030.00313.29
7.4.250.0040.00416.59
7.4.240.0000.00816.60
7.4.230.0040.00416.54
7.4.220.0120.00316.43
7.4.210.0070.00916.62
7.4.200.0040.00416.64
7.4.190.0000.00816.77
7.4.160.0080.00816.47
7.4.150.0060.01217.40
7.4.140.0110.00717.86
7.4.130.0030.01416.54
7.4.120.0080.00816.60
7.4.110.0140.00316.36
7.4.100.0140.00316.46
7.4.90.0150.00416.59
7.4.80.0130.00619.39
7.4.70.0070.01016.52
7.4.60.0070.01016.45
7.4.50.0040.00416.56
7.4.40.0000.01522.52
7.4.30.0130.00316.42
7.4.00.0090.00614.94
7.3.330.0000.00513.40
7.3.320.0050.00013.24
7.3.310.0000.00716.41
7.3.300.0040.00216.30
7.3.290.0070.00716.36
7.3.280.0060.01116.36
7.3.270.0080.00817.40
7.3.260.0110.00618.24
7.3.250.0090.01116.50
7.3.240.0060.01016.58
7.3.230.0070.01016.39
7.3.210.0060.01216.64
7.3.200.0090.01219.39
7.3.190.0070.01316.35
7.3.180.0100.00516.59
7.3.170.0040.01216.34
7.3.160.0090.00616.43
7.3.120.0060.01014.84
7.3.110.0050.01014.96
7.3.100.0120.00514.84
7.3.90.0100.00714.74
7.3.80.0070.00514.76
7.3.70.0040.00714.79
7.3.60.0050.00714.69
7.3.50.0100.00514.67
7.3.40.0040.01214.82
7.3.30.0100.00614.68
7.3.20.0070.00716.65
7.3.10.0080.00616.47
7.3.00.0110.00616.71
7.2.330.0100.00716.57
7.2.320.0030.01516.61
7.2.310.0070.01116.63
7.2.300.0090.00916.71
7.2.290.0070.01016.67
7.2.250.0080.01014.92
7.2.240.0060.01115.15
7.2.230.0000.01515.01
7.2.220.0090.00515.19
7.2.210.0070.00715.21
7.2.200.0070.00915.02
7.2.190.0100.00314.99
7.2.180.0080.00714.92
7.2.170.0060.00615.04
7.2.160.0050.00714.88
7.2.150.0050.01016.98
7.2.140.0090.00516.84
7.2.130.0080.00916.87
7.2.120.0020.01116.93
7.2.110.0060.01116.69
7.2.100.0040.01316.86
7.2.90.0080.00616.74
7.2.80.0060.01016.87
7.2.70.0060.00616.87
7.2.60.0060.00616.88
7.2.50.0080.00516.94
7.2.40.0100.00616.88
7.2.30.0080.00716.77
7.2.20.0040.01116.86
7.2.10.0050.00816.93
7.2.00.0050.00617.57
7.1.330.0090.00815.66
7.1.320.0050.00815.69
7.1.310.0050.00815.68
7.1.300.0040.00915.61
7.1.290.0050.00615.68
7.1.280.0030.00615.73
7.1.270.0060.00815.70
7.1.260.0070.00715.77
7.1.250.0050.00715.56
7.1.240.0030.00815.80
7.1.230.0030.01315.61
7.1.220.0070.00915.78
7.1.210.0070.00515.70
7.1.200.0040.00815.63
7.1.190.0100.00315.70
7.1.180.0080.00315.71
7.1.170.0080.00615.76
7.1.160.0070.00815.82
7.1.150.0080.00315.74
7.1.140.0020.01115.59
7.1.130.0100.00415.61
7.1.120.0070.00715.61
7.1.110.0060.00715.74
7.1.100.0030.00916.57
7.1.90.0090.00415.71
7.1.80.0060.00815.77
7.1.70.0030.01116.25
7.1.60.0050.01116.93
7.1.50.0070.01016.10
7.1.40.0060.00915.72
7.1.30.0020.01115.77
7.1.20.0040.00715.55
7.1.10.0030.00715.79
7.1.00.0030.01917.89
7.0.330.0050.00515.51
7.0.320.0080.00615.40
7.0.310.0050.00815.55
7.0.300.0030.00815.40
7.0.290.0070.00715.32
7.0.280.0080.00615.22
7.0.270.0040.00915.39
7.0.260.0050.00615.32
7.0.250.0050.00715.30
7.0.240.0070.00715.44
7.0.230.0080.00315.57
7.0.220.0050.00515.38
7.0.210.0070.00515.30
7.0.200.0060.00615.70
7.0.190.0080.00815.48
7.0.180.0070.00715.38
7.0.170.0090.00515.44
7.0.160.0020.01115.29
7.0.150.0020.01015.50
7.0.140.0070.02617.57
7.0.130.0090.00315.36
7.0.120.0030.00815.34
7.0.110.0080.00615.37
7.0.100.0000.00815.32
7.0.90.0030.01115.30
7.0.80.0020.01415.44
7.0.70.0090.02217.36
7.0.60.0040.02217.43
7.0.50.0050.03317.64
7.0.40.0050.02515.69
7.0.30.0030.03515.65
7.0.20.0070.03015.62
7.0.10.0040.02415.61
7.0.00.0040.03415.67
5.6.400.0050.01014.17
5.6.390.0040.00614.53
5.6.380.0050.00814.33
5.6.370.0030.01214.09
5.6.360.0030.01114.57
5.6.350.0050.00814.50
5.6.340.0080.00314.70
5.6.330.0050.01014.28
5.6.320.0050.00814.35
5.6.310.0080.00514.56
5.6.300.0060.00614.55
5.6.290.0070.00714.38
5.6.280.0090.02816.45
5.6.270.0050.00914.31
5.6.260.0100.00314.46
5.6.250.0100.00514.42
5.6.240.0050.00914.39
5.6.230.0040.00814.46
5.6.220.0060.02816.50
5.6.210.0050.02116.36
5.6.200.0080.02816.64
5.6.190.0040.02916.50
5.6.180.0060.02916.62
5.6.170.0060.02716.66
5.6.160.0040.03216.56
5.6.150.0050.03116.51
5.6.140.0070.02016.63
5.6.130.0010.03716.60
5.6.120.0060.03216.56
5.6.110.0040.03116.57
5.6.100.0060.02516.49
5.6.90.0080.02516.54
5.6.80.0050.03216.30
5.6.70.0120.02016.27
5.6.60.0070.03016.36
5.6.50.0060.02116.29
5.6.40.0060.02816.25
5.6.30.0080.02916.43
5.6.20.0020.03316.49
5.6.10.0050.01916.33
5.6.00.0060.02616.30
5.5.380.0080.00614.31
5.5.370.0090.00614.28
5.5.360.0080.02716.48
5.5.350.0080.01716.54
5.5.340.0090.02816.42
5.5.330.0080.02816.46
5.5.320.0010.03716.59
5.5.310.0060.02916.48
5.5.300.0060.02316.59
5.5.290.0050.03516.53
5.5.280.0060.02216.52
5.5.270.0060.03016.55
5.5.260.0050.03316.49
5.5.250.0060.03216.44
5.5.240.0030.03316.36
5.5.230.0090.02216.19
5.5.220.0050.03316.31
5.5.210.0060.02516.18
5.5.200.0070.02916.26
5.5.190.0090.02816.21
5.5.180.0050.02216.13
5.5.170.0050.00714.30
5.5.160.0060.02816.19
5.5.150.0070.02016.33
5.5.140.0050.02516.28
5.5.130.0050.02916.23
5.5.120.0070.01816.25
5.5.110.0060.03016.37
5.5.100.0060.02516.26
5.5.90.0030.03116.07
5.5.80.0080.03116.24
5.5.70.0030.03316.13
5.5.60.0080.02316.10
5.5.50.0070.03116.19
5.5.40.0020.03516.16
5.5.30.0080.02816.32
5.5.20.0040.03416.27
5.5.10.0070.02716.16
5.5.00.0070.02316.05
5.4.450.0050.02614.42
5.4.440.0060.02114.49
5.4.430.0070.02614.43
5.4.420.0070.02014.47
5.4.410.0030.02814.36
5.4.400.0070.02814.34
5.4.390.0040.02914.42
5.4.380.0040.02714.31
5.4.370.0030.02714.38
5.4.360.0070.02614.33
5.4.350.0040.03014.36
5.4.340.0050.03014.43
5.4.330.0050.00212.03
5.4.320.0030.02914.30
5.4.310.0040.02814.33
5.4.300.0020.03314.36
5.4.290.0060.02114.42
5.4.280.0040.01614.34
5.4.270.0050.02914.40
5.4.260.0040.03114.36
5.4.250.0030.03014.39
5.4.240.0100.02614.36
5.4.230.0010.02914.42
5.4.220.0090.01714.31
5.4.210.0040.02714.38
5.4.200.0020.02714.31
5.4.190.0010.03314.34
5.4.180.0050.03014.36
5.4.170.0030.03114.38
5.4.160.0040.03014.37
5.4.150.0080.02714.32
5.4.140.0030.02413.45
5.4.130.0040.01813.47
5.4.120.0020.02113.45
5.4.110.0050.02413.50
5.4.100.0030.01713.51
5.4.90.0040.01613.49
5.4.80.0010.01713.50
5.4.70.0010.01813.48
5.4.60.0020.02513.44
5.4.50.0060.02613.50
5.4.40.0050.01513.49
5.4.30.0050.02613.49
5.4.20.0050.02113.44
5.4.10.0030.03013.47
5.4.00.0050.02213.29
5.3.290.0030.03312.93
5.3.280.0050.02512.89
5.3.270.0020.02312.92
5.3.260.0010.03312.89
5.3.250.0040.02712.89
5.3.240.0040.02812.90
5.3.230.0050.01612.92
5.3.220.0050.02612.88
5.3.210.0010.02112.88
5.3.200.0020.02012.92
5.3.190.0060.01412.87
5.3.180.0030.01612.87
5.3.170.0030.02012.91
5.3.160.0020.01712.89
5.3.150.0040.01312.89
5.3.140.0040.01612.86
5.3.130.0050.02012.88
5.3.120.0030.03012.85
5.3.110.0050.02312.87
5.3.100.0040.02612.74
5.3.90.0020.02812.66
5.3.80.0030.02812.70
5.3.70.0030.03012.71
5.3.60.0050.02712.68
5.3.50.0090.02412.70
5.3.40.0000.02512.71
5.3.30.0030.02312.70
5.3.20.0020.02912.59
5.3.10.0020.02812.56
5.3.00.0030.02012.58
5.2.170.0000.04711.29
5.2.160.0030.06711.25
5.2.150.0000.03311.03
5.2.140.0030.06311.21
5.2.130.0070.06011.12
5.2.120.0030.05311.22
5.2.110.0000.06711.23
5.2.100.0000.05311.16
5.2.90.0070.06010.97
5.2.80.0000.04711.11
5.2.70.0030.04310.99
5.2.60.0000.06311.16
5.2.50.0070.05710.93
5.2.40.0000.06711.06
5.2.30.0130.05311.10
5.2.20.0030.06011.03
5.2.10.0030.06010.88
5.2.00.0070.05710.67
5.1.60.0000.04310.34
5.1.50.0030.05310.34
5.1.40.0030.05310.34
5.1.30.0000.03710.40
5.1.20.0030.05310.34
5.1.10.0030.05310.34
5.1.00.0000.05010.34
5.0.50.0000.04010.34
5.0.40.0030.04310.34
5.0.30.0100.05710.34
5.0.20.0000.04010.34
5.0.10.0030.04010.34
5.0.00.0030.04710.34
4.4.90.0030.02710.34
4.4.80.0000.03310.34
4.4.70.0030.03310.34
4.4.60.0030.03710.34
4.4.50.0030.03310.34
4.4.40.0000.05710.34
4.4.30.0000.02710.34
4.4.20.0070.03010.34
4.4.10.0000.02710.34
4.4.00.0000.05310.34
4.3.110.0030.03710.34
4.3.100.0030.03010.34
4.3.90.0000.03310.34
4.3.80.0070.04310.34
4.3.70.0030.03310.34
4.3.60.0000.03010.34
4.3.50.0070.03310.34
4.3.40.0070.05010.34
4.3.30.0030.03710.34
4.3.20.0030.02310.34
4.3.10.0070.03310.34
4.3.00.0030.03310.34

preferences:
46.6 ms | 400 KiB | 5 Q