3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo implements Iterator { private $bar = ['baz', 'tab']; public mixed current (){} public scalar key (){} public void next (){} public void rewind (){} public boolean valid (){} } 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)
5.4.260.0030.04019.06
5.4.250.0000.07319.19
5.4.240.0030.06719.16
5.4.230.0030.07019.14
5.4.220.0000.04718.99
5.4.210.0100.03319.08
5.4.200.0070.05319.16
5.4.190.0000.05019.15
5.4.180.0030.03719.16
5.4.170.0000.05318.88
5.4.160.0030.03718.79
5.4.150.0030.03719.10
5.4.140.0030.03316.38
5.4.130.0030.07316.51
5.4.120.0000.06316.66
5.4.110.0070.07716.58
5.4.100.0070.05716.56
5.4.90.0030.06316.54
5.4.80.0000.07016.43
5.4.70.0100.06316.57
5.4.60.0000.06016.54
5.4.50.0070.05716.33
5.4.40.0070.03016.52
5.4.30.0030.03316.49
5.4.20.0000.03716.52
5.4.10.0000.03716.53
5.4.00.0070.06016.11
5.3.280.0000.05314.49
5.3.270.0030.07314.82
5.3.260.0030.05014.61
5.3.250.0030.04314.50
5.3.240.0000.04314.71
5.3.230.0000.07714.67
5.3.220.0070.04014.57
5.3.210.0000.05714.48
5.3.200.0030.06314.47
5.3.190.0000.07714.56
5.3.180.0000.04014.47
5.3.170.0070.06314.56
5.3.160.0030.07314.46
5.3.150.0100.07314.53
5.3.140.0030.07314.45
5.3.130.0070.05314.59
5.3.120.0070.06014.56
5.3.110.0070.07014.52
5.3.100.0030.05014.11
5.3.90.0030.04313.99
5.3.80.0000.05013.93
5.3.70.0000.04314.13
5.3.60.0030.06713.93
5.3.50.0000.04714.02
5.3.40.0000.07014.02
5.3.30.0000.04713.88
5.3.20.0000.04313.77
5.3.10.0030.06713.58
5.3.00.0030.07013.64
5.2.170.0000.05313.14
5.2.160.0000.05313.14
5.2.150.0030.03713.14
5.2.140.0070.03313.14
5.2.130.0030.06013.14
5.2.120.0000.05713.14
5.2.110.0000.06313.14
5.2.100.0000.04713.14
5.2.90.0030.06013.14
5.2.80.0030.03313.14
5.2.70.0030.06013.14
5.2.60.0000.03713.14
5.2.50.0000.03713.14
5.2.40.0030.03713.14
5.2.30.0100.05313.14
5.2.20.0000.05013.14
5.2.10.0030.06013.14
5.2.00.0000.04013.14
5.1.60.0030.02713.14
5.1.50.0000.05313.14
5.1.40.0030.02313.14
5.1.30.0000.05313.14
5.1.20.0130.04013.14
5.1.10.0030.05313.14
5.1.00.0000.06013.14
5.0.50.0030.04013.14
5.0.40.0030.02713.14
5.0.30.0030.03313.14
5.0.20.0000.02713.14
5.0.10.0000.02313.14
5.0.00.0030.03013.14
4.4.90.0070.01713.14
4.4.80.0100.01013.14
4.4.70.0000.03713.14
4.4.60.0000.03013.14
4.4.50.0000.02013.14
4.4.40.0030.04013.14
4.4.30.0030.03313.14
4.4.20.0030.03713.14
4.4.10.0030.02713.14
4.4.00.0000.05313.14
4.3.110.0070.02013.14
4.3.100.0030.02013.14
4.3.90.0030.02713.14
4.3.80.0030.02713.14
4.3.70.0000.01713.14
4.3.60.0030.01313.14
4.3.50.0000.01713.14
4.3.40.0000.03313.14
4.3.30.0030.01713.14
4.3.20.0000.02013.14
4.3.10.0000.03013.14
4.3.00.0030.02313.14

preferences:
137.99 ms | 1394 KiB | 7 Q