3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('memory_limit', '64K'); class Foo { function __construct() { $this->bar = new Bar($this); } } class Bar { function __construct($foo = null) { $this->foo = $foo; } } while (true) { $foo = new Foo(); unset($foo); echo number_format(memory_get_usage()) . "\\n"; }

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.3.10.0150.00416.75
7.3.00.0060.00916.69
7.2.130.0070.01017.07
7.2.120.0070.01316.75
7.2.110.0060.01317.09
7.2.100.0090.00916.82
7.2.90.0090.00917.08
7.2.80.0030.01716.90
7.2.70.0040.01517.03
7.2.60.0090.00617.15
7.2.50.0120.00917.15
7.2.40.0090.00917.14
7.2.30.0030.01117.14
7.2.20.0090.00917.05
7.2.10.0090.00617.06
7.2.00.0070.01016.81
7.1.250.0080.00815.71
7.1.70.0060.01217.11
7.1.60.0190.01019.33
7.1.50.0170.01034.82
7.1.00.0130.07722.63
7.0.200.0070.01716.98
7.0.140.0070.07322.07
7.0.100.0200.07721.54
7.0.90.0130.08321.64
7.0.80.0170.05721.48
7.0.70.0070.08021.60
7.0.60.0100.04721.59
7.0.50.0300.08722.00
7.0.40.0170.08320.14
7.0.30.0100.05020.12
7.0.20.0070.08320.23
7.0.10.0130.07020.11
7.0.00.0130.05720.16
5.6.280.0030.07320.90
5.6.250.0000.04720.56
5.6.240.0130.07720.76
5.6.230.0130.05320.54
5.6.220.0230.05720.58
5.6.210.0030.07720.66
5.6.200.0030.05321.09
5.6.190.0130.07720.99
5.6.180.0100.07721.12
5.6.170.0100.05021.05
5.6.160.0000.07321.05
5.6.150.0070.08321.18
5.6.140.0130.06720.96
5.6.130.0130.07720.96
5.6.120.0070.05021.09
5.6.110.0070.05321.04
5.6.100.0100.08321.07
5.6.90.0100.08721.03
5.6.80.0070.06320.36
5.6.70.0070.07320.34
5.6.60.0030.04720.39
5.6.50.0100.08020.49
5.6.40.0070.07020.38
5.6.30.0070.04720.40
5.6.20.0100.08020.42
5.6.10.0070.06020.37
5.6.00.0130.04020.31
5.5.380.0130.07320.46
5.5.370.0130.07020.43
5.5.360.0030.07020.39
5.5.350.0070.09020.43
5.5.340.0070.08720.84
5.5.330.0070.08320.88
5.5.320.0100.06320.93
5.5.310.0100.06020.92
5.5.300.0070.08320.84
5.5.290.0070.09020.74
5.5.280.0170.04720.93
5.5.270.0100.08020.91
5.5.260.0070.07720.86
5.5.250.0130.06020.70
5.5.240.0100.07320.13
5.5.230.0170.06720.16
5.5.220.0100.07720.16
5.5.210.0100.06320.28
5.5.200.0030.08020.24
5.5.190.0170.04320.20
5.5.180.0100.04020.15
5.5.160.0070.08320.15
5.5.150.0030.08020.15
5.5.140.0030.04720.23
5.5.130.0070.08020.00
5.5.120.0130.07320.11
5.5.110.0100.07720.09
5.5.100.0030.08720.11
5.5.90.0130.08720.18
5.5.80.0100.07720.10
5.5.70.0130.07320.09
5.5.60.0030.06320.01
5.5.50.0100.05320.06
5.5.40.0130.06720.09
5.5.30.0030.06320.05
5.5.20.0070.07320.00
5.5.10.0100.07020.13
5.5.00.0030.07320.00
5.4.450.0100.08019.63
5.4.440.0100.07719.35
5.4.430.0100.06719.23
5.4.420.0030.05719.34
5.4.410.0070.07719.24
5.4.400.0100.06019.01
5.4.390.0030.07319.09
5.4.380.0070.06318.93
5.4.370.0030.04718.91
5.4.360.0100.06719.02
5.4.350.0070.07019.19
5.4.340.0070.06718.94
5.4.320.0100.07718.93
5.4.310.0130.06019.19
5.4.300.0070.04319.22
5.4.290.0030.04318.93
5.4.280.0070.04319.18
5.4.270.0300.03019.18
5.4.260.0130.06319.10
5.4.250.0030.07719.02
5.4.240.0130.07019.00
5.4.230.0030.07719.08
5.4.220.0170.03719.00
5.4.210.0030.04719.20
5.4.200.0100.07319.13
5.4.190.0070.03719.17
5.4.180.0130.04319.19
5.4.170.0100.06718.90
5.4.160.0070.04719.02
5.4.150.0100.05719.10
5.4.140.0030.04316.32
5.4.130.0030.07016.52
5.4.120.0030.03716.52
5.4.110.0100.05016.45
5.4.100.0200.03716.54
5.4.90.0130.06016.48
5.4.80.0000.08016.54
5.4.70.0030.08016.53
5.4.60.0030.07316.48
5.4.50.0000.07316.37
5.4.40.0070.07316.51
5.4.30.0070.07016.32
5.4.20.0130.07316.45
5.4.10.0100.03716.47
5.4.00.0100.07315.82
5.3.290.0100.05314.70
5.3.280.0170.06714.60
5.3.270.0000.04714.65
5.3.260.0070.08014.66
5.3.250.0100.04014.66
5.3.240.0170.07314.66
5.3.230.0100.07314.61
5.3.220.0100.07314.72
5.3.210.0070.07714.57
5.3.200.0030.05714.61
5.3.190.0070.07714.72
5.3.180.0030.07714.62
5.3.170.0130.06014.56
5.3.160.0070.07714.70
5.3.150.0130.06014.72
5.3.140.0070.07714.60
5.3.130.0070.06714.60
5.3.120.0070.07714.69
5.3.110.0130.06314.59
5.3.100.0070.08014.22
5.3.90.0100.05314.20
5.3.80.0000.05314.16
5.3.70.0100.07314.13
5.3.60.0030.05014.20
5.3.50.0100.07314.14
5.3.40.0170.06314.04
5.3.30.0030.04314.01
5.3.20.0030.04013.92
5.3.10.0100.06713.80
5.3.00.0100.07313.71

preferences:
33.99 ms | 400 KiB | 5 Q