3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo implements Iterator { private $bar = ['baz', 'tab']; public function current (){ die('hmm'); } public function key (){ die('hmm'); } public function next (){ die('hmm'); } public function rewind (){ die('hmm'); } public function valid (){ die('hmm'); } } var_dump((array) new Foo());

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.0070.00716.63
8.3.50.0060.01322.96
8.3.40.0140.00418.62
8.3.30.0100.00318.91
8.3.20.0070.00020.18
8.3.10.0080.00021.76
8.3.00.0040.00417.25
8.2.180.0130.00916.63
8.2.170.0140.00022.96
8.2.160.0100.00320.35
8.2.150.0070.00024.18
8.2.140.0050.00224.66
8.2.130.0120.00626.16
8.2.120.0000.00820.86
8.2.110.0080.00320.47
8.2.100.0120.00017.78
8.2.90.0040.00419.08
8.2.80.0050.00317.97
8.2.70.0040.00417.67
8.2.60.0040.00417.50
8.2.50.0080.00017.55
8.2.40.0050.00317.63
8.2.30.0000.00817.53
8.2.20.0070.00017.61
8.2.10.0070.00017.92
8.2.00.0070.00017.54
8.1.280.0100.00325.92
8.1.270.0050.00323.91
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0000.01023.92
8.1.230.0120.00022.76
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0050.00317.10
8.1.190.0040.00417.10
8.1.180.0090.00618.10
8.1.170.0040.00417.62
8.1.160.0040.00418.75
8.1.150.0000.00718.71
8.1.140.0040.00417.34
8.1.130.0030.00317.68
8.1.120.0070.00017.41
8.1.110.0030.00417.43
8.1.100.0040.00417.31
8.1.90.0030.00317.28
8.1.80.0000.00717.35
8.1.70.0070.00017.34
8.1.60.0000.00817.49
8.1.50.0030.00517.42
8.1.40.0030.00517.47
8.1.30.0040.00417.48
8.1.20.0030.00617.56
8.1.10.0040.00417.50
8.1.00.0000.00817.37
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.01
8.0.270.0040.00418.07
8.0.260.0030.00317.21
8.0.250.0040.00416.95
8.0.240.0030.00716.95
8.0.230.0070.00016.77
8.0.220.0040.00416.82
8.0.210.0000.00716.86
8.0.200.0030.00316.86
8.0.190.0040.00416.91
8.0.180.0000.00716.73
8.0.170.0000.00716.83
8.0.160.0000.00716.86
8.0.150.0070.00016.84
8.0.140.0000.00716.71
8.0.130.0030.00313.28
8.0.120.0030.00516.82
8.0.110.0000.00816.89
8.0.100.0050.00316.87
8.0.90.0070.00016.95
8.0.80.0060.01216.93
8.0.70.0080.00016.73
8.0.60.0070.00016.90
8.0.50.0020.00516.76
8.0.30.0110.00916.91
8.0.20.0110.00817.40
8.0.10.0030.00616.95
8.0.00.0080.01216.67
7.4.330.0050.00015.00
7.4.320.0000.00616.46
7.4.300.0050.00216.52
7.4.290.0030.00516.45
7.4.280.0040.00416.35
7.4.270.0070.00016.52
7.4.260.0050.00516.49
7.4.250.0000.00716.42
7.4.240.0070.00016.46
7.4.230.0070.00016.41
7.4.220.0180.00016.38
7.4.210.0110.00416.50
7.4.200.0000.00816.63
7.4.160.0050.01016.20
7.4.150.0070.01017.40
7.4.140.0100.01017.86
7.4.130.0170.00316.34
7.4.120.0160.00516.50
7.4.110.0130.00316.48
7.4.100.0150.00316.32
7.4.90.0120.00816.52
7.4.80.0070.01019.39
7.4.70.0120.00616.53
7.4.60.0100.00716.48
7.4.50.0060.00316.30
7.4.40.0070.01016.41
7.4.30.0100.00516.31
7.4.00.0100.00315.13
7.3.330.0060.00013.07
7.3.320.0050.00013.05
7.3.310.0070.00016.37
7.3.300.0020.00516.10
7.3.290.0060.01316.12
7.3.280.0060.01116.28
7.3.270.0060.01317.40
7.3.260.0110.00716.20
7.3.240.0070.01016.58
7.3.230.0060.01216.53
7.3.210.0070.01016.25
7.3.200.0040.01119.39
7.3.190.0100.00716.31
7.3.180.0090.00616.34
7.3.170.0000.01616.38
7.3.160.0110.00416.46
7.3.10.0000.01516.41
7.3.00.0030.01016.56
7.2.330.0060.01516.45
7.2.320.0130.00416.44
7.2.310.0120.00616.32
7.2.300.0030.01216.45
7.2.290.0040.01116.40
7.2.130.0040.01216.93
7.2.120.0000.01316.91
7.2.110.0070.00716.76
7.2.100.0070.00716.80
7.2.90.0060.00916.95
7.2.80.0060.00316.55
7.2.70.0000.01216.88
7.2.60.0030.01116.92
7.2.50.0000.01416.63
7.2.40.0060.00916.78
7.2.30.0060.00616.69
7.2.20.0100.00316.77
7.2.10.0040.00716.87
7.2.00.0070.00518.08
7.1.250.0130.00015.77
7.1.100.0070.00317.71
7.1.70.0000.01016.97
7.1.60.0130.01019.40
7.1.50.0070.01416.86
7.1.00.0030.07722.33
7.0.200.0080.00016.80
7.0.140.0000.07722.00
7.0.60.0170.07719.91
7.0.50.0130.05717.93
7.0.40.0070.04020.27
7.0.30.0500.07320.20
7.0.20.0270.03720.30
7.0.10.0100.08020.09
7.0.00.0000.04320.10
5.6.210.0000.08320.57
5.6.200.0070.07018.19
5.6.190.0070.05020.47
5.6.180.2970.04320.55
5.6.170.0300.03320.71
5.6.160.0130.07320.46
5.6.150.0170.07018.21
5.6.140.0030.09018.15
5.6.130.0100.08018.26
5.6.120.0200.07020.97
5.6.110.0030.08721.11
5.6.100.0130.08020.98
5.6.90.0000.09321.08
5.6.80.0070.03720.39
5.5.350.0300.08020.40
5.5.340.0030.08317.96
5.5.330.0030.06320.42
5.5.320.0430.06720.51
5.5.310.0200.07020.50
5.5.300.0030.04317.92
5.5.290.0000.06717.98
5.5.280.0030.04320.85
5.5.270.0030.07720.64
5.5.260.0100.08020.97
5.5.250.0030.04720.70
5.5.240.0170.07020.27
5.4.450.1900.04319.41
5.4.440.1870.04019.48
5.4.430.1900.03319.53
5.4.420.1070.04019.31
5.4.410.0030.04719.43
5.4.400.0030.03718.99
5.4.390.0700.03718.87
5.4.380.1900.03319.16
5.4.370.1900.03019.20
5.4.360.2100.04319.21
5.4.350.2200.04718.95
5.4.340.1870.04019.22
5.4.320.1830.04019.16
5.4.310.1900.04019.08
5.4.300.1900.03719.13
5.4.290.2300.03318.94
5.4.280.2100.04319.07
5.4.270.2000.03319.21
5.4.260.2230.04019.21
5.4.250.2000.04019.21
5.4.240.1800.03319.21
5.4.230.1970.04019.05
5.4.220.1870.04019.19
5.4.210.2030.04719.05
5.4.200.1930.04318.98
5.4.190.2030.03319.13
5.4.180.2170.04018.86
5.4.170.1670.04319.03
5.4.160.0200.04719.06
5.4.150.0300.06719.19
5.4.140.0200.07316.39
5.4.130.0200.06016.50
5.4.120.0170.04316.34
5.4.110.0230.03016.25
5.4.100.0330.06016.45
5.4.90.0130.07016.55
5.4.80.0130.04716.33
5.4.70.0170.05716.54
5.4.60.0230.03316.34
5.4.50.0200.07316.42
5.4.40.0300.04716.52
5.4.30.0230.05016.16
5.4.20.0300.04016.52
5.4.10.0230.06716.16
5.4.00.0130.04715.75
5.3.290.0200.04314.79
5.3.280.0170.07314.61
5.3.270.0270.06014.71
5.3.260.0200.04014.52
5.3.250.0270.07314.57
5.3.240.0270.04014.65
5.3.230.0230.03314.58
5.3.220.0300.03014.64
5.3.210.0130.04014.58
5.3.200.0130.05014.53
5.3.190.0170.03314.63
5.3.180.0200.04014.70
5.3.170.0070.04714.71
5.3.160.0130.07314.47
5.3.150.0170.04714.50
5.3.140.0230.03714.46
5.3.130.0300.06714.55
5.3.120.0200.06714.53
5.3.110.0230.04314.56
5.3.100.0130.04714.18
5.3.90.0200.07014.01
5.3.80.0200.07013.92
5.3.70.0330.06314.03
5.3.60.0270.04713.99
5.3.50.0230.06313.96
5.3.40.0130.04313.87
5.3.30.0230.06713.92
5.3.20.0170.04013.78
5.3.10.0270.06013.66
5.3.00.0300.03013.56
5.2.170.0200.06011.20
5.2.160.0170.05311.05
5.2.150.0200.05311.29
5.2.140.0170.05711.14
5.2.130.0200.05311.32
5.2.120.0100.04011.18
5.2.110.0130.05711.22
5.2.100.0200.04311.07
5.2.90.0200.02311.02
5.2.80.0170.05311.02
5.2.70.0100.05311.31
5.2.60.0170.03311.09
5.2.50.0170.04010.92
5.2.40.0170.02710.99
5.2.30.0170.04310.92
5.2.20.0130.03310.93
5.2.10.0230.04710.78
5.2.00.0070.03710.61
5.1.60.0100.04310.07
5.1.50.0000.0409.89
5.1.40.0170.0479.88
5.1.30.0130.02310.30
5.1.20.0130.03010.27
5.1.10.0170.03710.04
5.1.00.0130.02310.04
5.0.50.0070.0438.52
5.0.40.0030.0208.29
5.0.30.0070.0308.12
5.0.20.0000.0278.14
5.0.10.0070.0208.11
5.0.00.0070.0538.11
4.4.90.0070.0278.11
4.4.80.0070.0278.11
4.4.70.0030.0208.11
4.4.60.0070.0338.11
4.4.50.0170.0238.11
4.4.40.0100.0278.11
4.4.30.0100.0138.11
4.4.20.0030.0178.11
4.4.10.0000.0278.11
4.4.00.0100.0538.11
4.3.110.0030.0208.11
4.3.100.0170.0178.11
4.3.90.0100.0178.11
4.3.80.0070.0238.11
4.3.70.0070.0138.11
4.3.60.0030.0208.11
4.3.50.0030.0208.11
4.3.40.0130.0178.11
4.3.30.0030.0138.11
4.3.20.0030.0178.11
4.3.10.0000.0208.11
4.3.00.0030.0138.11

preferences:
51.34 ms | 400 KiB | 5 Q