3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $foo; } $foo = new Foo(); $foo->foo = 'foo'; var_dump(memory_get_usage(true));

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)
7.2.00.0000.01219.42
7.1.70.0000.00716.90
7.1.60.0000.02419.40
7.1.50.0030.01016.88
7.1.00.0070.07022.27
7.0.200.0000.00916.40
7.0.140.0130.06322.19
7.0.70.5030.04320.02
7.0.60.0100.08020.04
7.0.50.0030.08317.83
7.0.40.0170.08020.18
7.0.30.0200.05020.08
7.0.20.0300.04320.30
7.0.10.0470.06720.11
7.0.00.0030.04320.22
5.6.280.0030.07720.78
5.6.210.0000.08320.52
5.6.200.0070.06318.29
5.6.190.0070.04020.45
5.6.180.0200.04320.58
5.6.170.0270.07020.44
5.6.160.0000.09720.50
5.6.150.0000.04318.18
5.6.140.0070.04018.13
5.6.130.0200.06718.12
5.6.120.0100.07021.01
5.6.110.0200.07021.04
5.6.100.0100.07021.11
5.6.90.0070.08020.97
5.6.80.0100.08020.36
5.6.70.0070.04020.38
5.5.350.0030.04320.37
5.5.340.0030.04017.97
5.5.330.0000.08020.28
5.5.320.0030.04020.26
5.5.310.0270.07320.26
5.5.300.0170.07018.00
5.5.290.0070.08318.02
5.5.280.0030.07320.96
5.5.270.0070.06720.96
5.5.260.0130.05720.86
5.5.250.0100.05020.77
5.5.240.0030.07320.16
5.4.450.0170.06319.35
5.4.440.0770.06319.30
5.4.430.0730.06019.30
5.4.420.0700.05719.46
5.4.410.0930.05319.47
5.4.400.0870.04019.15
5.4.390.0830.04719.25
5.4.380.0130.06318.86
5.4.370.0330.04018.79
5.4.360.0370.04718.71
5.4.350.0050.05012.02
5.4.340.0090.06412.01
5.4.320.0030.04612.50
5.4.310.0110.05212.50
5.4.300.0050.03812.49
5.4.290.0080.03612.49
5.4.280.0070.03912.39
5.4.270.0040.03812.39
5.4.260.0080.03512.39
5.4.250.0070.05018.91
5.4.240.0030.05318.96
5.4.230.0030.05318.81
5.4.220.0100.05019.07
5.4.210.0100.05018.63
5.4.200.0130.04318.91
5.4.190.0070.05018.91
5.4.180.0070.05018.86
5.4.170.0170.06718.95
5.4.160.0100.04718.70
5.4.150.0130.05318.63
5.4.140.0100.05016.36
5.4.130.0100.04316.53
5.4.120.0030.05316.57
5.4.110.0000.05316.45
5.4.100.0000.05316.46
5.4.90.0070.04716.59
5.4.80.0030.05016.32
5.4.70.0070.05316.52
5.4.60.0030.05316.44
5.4.50.0130.04016.46
5.4.40.0100.04716.39
5.4.30.0030.05016.36
5.4.20.0130.04316.43
5.4.10.0030.06716.36
5.4.00.0100.04715.90
5.3.290.0030.04112.80
5.3.280.0130.04314.50
5.3.270.0100.05014.68
5.3.260.0130.04714.68
5.3.250.0000.05714.61
5.3.240.0070.04714.81
5.3.230.0030.05014.77
5.3.220.0030.05314.57
5.3.210.0100.05014.57
5.3.200.0130.04014.57
5.3.190.0000.05314.39
5.3.180.0170.03714.55
5.3.170.0030.05014.63
5.3.160.0130.05314.57
5.3.150.0030.05714.61
5.3.140.0070.05014.56
5.3.130.0000.06314.62
5.3.120.0100.05014.61
5.3.110.0130.05714.61
5.3.100.0100.05014.01
5.3.90.0070.05014.09
5.3.80.0070.05013.99
5.3.70.0100.05014.09
5.3.60.0030.05013.89
5.3.50.0030.05014.04
5.3.40.0070.05314.03
5.3.30.0070.05014.12
5.3.20.0170.05013.68
5.3.10.0070.04713.70
5.3.00.0100.04313.72
5.2.170.0100.04311.11
5.2.160.0030.04311.22
5.2.150.0130.03311.30
5.2.140.0100.03311.29
5.2.130.0070.03711.00
5.2.120.0000.04311.06
5.2.110.0000.05311.17
5.2.100.0000.04311.17
5.2.90.0030.04311.17
5.2.80.0030.04311.30
5.2.70.0070.03711.16
5.2.60.0170.03011.03
5.2.50.0000.04710.86
5.2.40.0070.03710.82
5.2.30.0030.04011.04
5.2.20.0000.04310.77
5.2.10.0070.04010.93
5.2.00.0100.03710.87
5.1.60.0030.03710.08
5.1.50.0100.03010.08
5.1.40.0000.0379.95
5.1.30.0100.04710.50
5.1.20.0000.04010.41
5.1.10.0100.0439.90
5.1.00.0100.03310.03
5.0.50.0030.0308.51
5.0.40.0070.0238.49
5.0.30.0070.0478.31
5.0.20.0070.0208.38
5.0.10.0030.0308.40
5.0.00.0000.0438.14
4.4.90.0030.0207.62
4.4.80.0030.0207.62
4.4.70.0000.0237.62
4.4.60.0030.0207.62
4.4.50.0070.0177.62
4.4.40.0000.0337.62
4.4.30.0030.0307.62
4.4.20.0070.0277.62
4.4.10.0070.0177.62
4.4.00.0070.0307.62
4.3.110.0100.0177.62
4.3.100.0000.0237.62
4.3.90.0030.0177.62
4.3.80.0000.0337.62
4.3.70.0030.0177.62
4.3.60.0030.0207.62
4.3.50.0000.0237.62
4.3.40.0000.0337.62
4.3.30.0070.0307.62
4.3.20.0030.0207.62
4.3.10.0030.0207.62
4.3.00.0000.0307.31

preferences:
32.91 ms | 400 KiB | 5 Q