3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar; } $foo = new Foo(); foreach ([1, 2, 3] as $foo->bar) { var_dump($foo->bar); }

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.0040.01118.18
8.3.50.0030.01717.98
8.3.40.0030.01218.47
8.3.30.0060.00918.85
8.3.20.0080.00024.18
8.3.10.0090.00024.66
8.3.00.0000.00826.16
8.2.180.0070.00725.92
8.2.170.0040.01118.90
8.2.160.0100.00322.96
8.2.150.0020.00525.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00026.35
8.2.110.0090.00022.29
8.2.100.0000.01117.84
8.2.90.0040.00418.09
8.2.80.0000.00818.00
8.2.70.0080.00017.50
8.2.60.0090.00017.38
8.2.50.0060.00318.05
8.2.40.0000.00818.16
8.2.30.0000.00817.87
8.2.20.0000.00717.97
8.2.10.0000.00819.22
8.2.00.0050.00319.21
8.1.280.0100.00325.92
8.1.270.0050.00323.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00424.02
8.1.230.0040.00720.88
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0080.00317.10
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0000.00818.52
8.1.160.0000.00718.88
8.1.150.0040.00418.82
8.1.140.0040.00418.76
8.1.130.0030.00319.95
8.1.120.0040.00417.43
8.1.110.0080.00017.37
8.1.100.0040.00417.43
8.1.90.0050.00317.38
8.1.80.0000.01117.42
8.1.70.0000.00717.39
8.1.60.0060.00317.59
8.1.50.0040.00417.45
8.1.40.0000.00717.49
8.1.30.0000.00817.48
8.1.20.0000.01217.56
8.1.10.0000.01017.47
8.1.00.0030.00517.55
8.0.300.0000.00719.74
8.0.290.0040.00416.63
8.0.280.0030.00318.61
8.0.270.0030.00317.93
8.0.260.0030.00318.25
8.0.250.0000.00616.83
8.0.240.0000.00616.88
8.0.230.0030.00316.86
8.0.220.0000.00716.80
8.0.210.0060.00016.73
8.0.200.0040.00416.77
8.0.190.0000.00816.90
8.0.180.0000.00716.75
8.0.170.0050.00316.89
8.0.160.0070.00016.91
8.0.150.0000.00716.84
8.0.140.0080.00516.64
8.0.130.0030.00313.23
8.0.120.0040.00416.79
8.0.110.0050.00216.69
8.0.100.0040.00416.73
8.0.90.0030.00516.87
8.0.80.0120.00516.83
8.0.70.0040.00416.78
8.0.60.0040.00416.92
8.0.50.0030.00516.68
8.0.30.0040.01316.73
8.0.20.0110.00716.84
8.0.10.0040.00416.78
8.0.00.0090.01116.57
7.4.330.0000.00615.55
7.4.320.0080.00016.34
7.4.300.0040.00416.36
7.4.290.0040.00416.53
7.4.280.0080.00016.46
7.4.270.0060.00016.44
7.4.260.0020.00213.10
7.4.250.0000.00716.38
7.4.240.0000.00716.55
7.4.230.0070.00016.60
7.4.220.0050.00216.41
7.4.210.0090.00916.51
7.4.200.0040.00416.43
7.4.130.0080.01216.48
7.4.120.0170.00616.59
7.4.110.0060.00916.52
7.4.100.0100.00616.19
7.4.90.0100.00716.55
7.4.80.0120.00619.39
7.4.70.0090.01619.39
7.4.60.0170.00319.39
7.4.50.0090.01219.39
7.4.40.0070.01919.39
7.4.30.0080.01219.39
7.4.20.0130.01119.39
7.4.10.0200.00619.39
7.4.00.0090.01419.39
7.3.330.0030.00516.14
7.3.320.0030.00313.16
7.3.310.0070.00016.29
7.3.300.0000.00716.26
7.3.290.0070.00916.31
7.3.280.0060.00916.31
7.3.260.0030.01616.42
7.3.230.0150.00616.23
7.3.210.0070.01016.39
7.3.200.0090.01319.39
7.3.190.0140.00719.39
7.3.180.0090.00919.39
7.3.170.0140.01019.39
7.3.160.0130.01219.39
7.3.150.0030.01519.39
7.3.140.0150.00919.39
7.3.130.0100.01019.39
7.3.120.0110.01119.39
7.3.110.0120.00619.39
7.3.100.0110.01119.39
7.3.90.0090.00919.39
7.3.80.0100.00619.39
7.3.70.0110.01119.39
7.3.60.0110.01119.39
7.3.50.0090.00919.39
7.3.40.0140.00319.39
7.3.30.0110.01019.39
7.3.20.0060.01219.39
7.3.10.0110.00719.39
7.3.00.0130.00719.39
7.2.330.0070.01316.42
7.2.320.0050.01619.39
7.2.310.0150.00619.39
7.2.300.0090.00919.39
7.2.290.0070.01419.39
7.2.280.0100.01019.39
7.2.270.0150.01019.39
7.2.260.0330.01319.39
7.2.250.0150.01119.39
7.2.240.0140.00619.39
7.2.230.0160.00619.39
7.2.220.0110.01119.39
7.2.210.0060.01519.39
7.2.200.0140.00819.39
7.2.190.0150.00419.39
7.2.180.0120.00819.39
7.2.170.0120.00619.39
7.2.160.0120.00919.39
7.2.150.0120.00819.39
7.2.140.0130.00719.39
7.2.130.0090.00919.39
7.2.120.0030.01619.39
7.2.110.0030.02119.39
7.2.100.0120.00619.39
7.2.90.0200.00019.39
7.2.80.0120.00919.39
7.2.70.0130.00819.39
7.2.60.0210.00919.39
7.2.50.0050.01719.39
7.2.40.0080.01119.39
7.2.30.0160.00519.39
7.2.20.0140.01019.39
7.2.10.0090.01719.39
7.2.00.0150.01219.39

preferences:
59.18 ms | 400 KiB | 5 Q