3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $publicProperty = array(); } class Bar extends Foo { public function __construct(Foo $foo) { $this->wrapped = $foo; unset($this->bar); } public function __get($name) { return $this->wrapped->$name; } } $bar = new Bar(new Foo()); $bar->publicProperty['example'] = 'Hello World!';

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.40.0110.00719.02
8.3.30.0070.00718.75
8.3.20.0050.00318.77
8.3.10.0050.00520.36
8.3.00.0040.01123.66
8.2.170.0130.00722.96
8.2.160.0100.00720.35
8.2.150.0040.00424.18
8.2.140.0070.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00019.36
8.2.110.0060.00320.47
8.2.100.0090.00317.84
8.2.90.0000.00819.21
8.2.80.0080.00017.97
8.2.70.0040.00417.48
8.2.60.0040.00417.80
8.2.50.0040.00818.07
8.2.40.0040.00418.16
8.2.30.0000.00719.77
8.2.20.0050.00317.58
8.2.10.0040.00417.64
8.2.00.0030.00717.73
8.1.270.0050.00223.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00322.39
8.1.230.0110.00020.96
8.1.220.0030.00618.77
8.1.210.0070.00318.96
8.1.200.0000.00917.35
8.1.190.0060.00317.53
8.1.180.0040.00418.10
8.1.170.0000.00918.53
8.1.160.0000.00718.88
8.1.150.0040.00418.57
8.1.140.0040.00417.32
8.1.130.0050.00317.82
8.1.120.0000.00717.30
8.1.110.0080.00017.35
8.1.100.0000.00717.36
8.1.90.0000.00717.37
8.1.80.0040.00417.43
8.1.70.0000.00717.37
8.1.60.0000.01117.56
8.1.50.0050.00317.34
8.1.40.0030.00617.48
8.1.30.0060.00317.61
8.1.20.0050.00317.64
8.1.10.0000.00717.52
8.1.00.0000.00717.45
8.0.300.0050.00220.04
8.0.290.0040.00417.05
8.0.280.0000.00718.34
8.0.270.0000.00717.10
8.0.260.0000.00616.73
8.0.250.0030.00316.92
8.0.240.0000.00716.96
8.0.230.0030.00316.99
8.0.220.0000.00816.86
8.0.210.0030.00316.89
8.0.200.0080.00016.86
8.0.190.0060.00316.89
8.0.180.0000.00816.87
8.0.170.0060.00316.92
8.0.160.0070.00016.91
8.0.150.0060.00616.79
8.0.140.0050.00216.82
8.0.130.0000.00613.35
8.0.120.0030.00516.82
8.0.110.0040.00416.68
8.0.100.0000.00716.73
8.0.90.0040.00416.71
8.0.80.0030.01316.80
8.0.70.0000.00816.76
8.0.60.0040.00416.95
8.0.50.0080.00016.75
8.0.30.0090.01117.07
8.0.20.0100.00917.40
8.0.10.0050.00217.07
8.0.00.0080.01216.63
7.4.330.0060.00014.64
7.4.320.0000.00616.50
7.4.300.0060.00016.52
7.4.290.0070.00016.49
7.4.280.0040.00416.48
7.4.270.0030.00316.40
7.4.260.0000.00613.38
7.4.250.0000.00716.54
7.4.240.0000.00716.45
7.4.230.0070.00016.34
7.4.220.0120.00416.59
7.4.210.0120.00516.61
7.4.200.0000.00716.32
7.4.190.0070.00016.40
7.4.160.0000.01616.52
7.4.150.0060.01217.40
7.4.140.0140.00517.86
7.4.130.0130.00616.51
7.4.120.0070.01016.45
7.4.110.0040.01416.54
7.4.100.0130.01016.67
7.4.90.0130.01016.45
7.4.80.0110.00519.37
7.4.70.0100.01016.50
7.4.60.0030.01316.43
7.4.50.0050.00316.57
7.4.40.0070.01022.27
7.4.30.0100.01016.39
7.4.10.0100.00914.80
7.4.00.0050.01314.93
7.3.330.0030.00313.36
7.3.320.0030.00313.14
7.3.310.0030.00316.18
7.3.300.0070.00016.38
7.3.290.0090.00416.37
7.3.280.0080.00816.35
7.3.270.0070.01017.40
7.3.260.0110.00718.24
7.3.250.0060.01116.42
7.3.240.0080.00916.64
7.3.230.0080.01316.48
7.3.210.0040.01416.64
7.3.200.0000.01719.39
7.3.190.0120.00916.30
7.3.180.0060.01016.35
7.3.170.0070.01016.52
7.3.160.0090.00916.55
7.3.130.0120.00614.53
7.3.120.0070.01115.04
7.3.110.0090.00714.78
7.3.100.0090.00614.90
7.3.90.0080.00614.80
7.3.80.0020.00814.70
7.3.70.0040.00914.97
7.3.60.0030.00914.68
7.3.50.0030.01014.83
7.3.40.0070.00614.70
7.3.30.0100.00214.88
7.3.20.0020.01116.60
7.3.10.0080.00316.42
7.3.00.0080.00816.70
7.2.330.0170.00716.60
7.2.320.0100.00716.58
7.2.310.0090.00916.72
7.2.300.0000.01716.46
7.2.290.0030.01416.63
7.2.260.0130.00715.04
7.2.250.0050.01415.07
7.2.240.0100.00514.94
7.2.230.0080.00814.72
7.2.220.0060.00814.87
7.2.210.0070.00915.20
7.2.200.0100.00314.83
7.2.190.0080.00815.07
7.2.180.0100.00514.94
7.2.170.0060.00815.10
7.2.160.0100.00615.25
7.2.150.0060.00916.83
7.2.140.0060.00616.88
7.2.130.0030.01316.67
7.2.120.0100.00716.95
7.2.110.0040.01416.94
7.2.100.0130.00616.64
7.2.90.0000.01516.79
7.2.80.0060.00916.79
7.2.70.0100.01017.11
7.2.60.0080.00516.98
7.2.50.0030.01117.14
7.2.40.0060.00916.90
7.2.30.0110.00416.92
7.2.20.0000.00916.86
7.2.10.0110.00416.97
7.2.00.0060.00916.97
7.1.330.0030.01015.90
7.1.320.0080.00715.76
7.1.310.0080.00815.74
7.1.300.0070.00815.77
7.1.290.0070.00615.86
7.1.280.0060.00915.70
7.1.270.0070.00715.66
7.1.260.0020.01315.74
7.1.250.0030.01015.57
7.1.240.0070.00715.75
7.1.230.0000.01515.91
7.1.220.0030.00815.78
7.1.210.0000.00915.74
7.1.200.0070.00415.85
7.1.190.0130.00315.58
7.1.180.0000.01515.61
7.1.170.0030.00615.89
7.1.160.0040.00415.52
7.1.150.0070.00715.99
7.1.140.0030.00715.73
7.1.130.0110.00615.84
7.1.120.0040.01115.84
7.1.110.0060.00915.95
7.1.100.0090.00615.55
7.1.90.0070.00715.71
7.1.80.0000.01415.84
7.1.70.0040.01016.50
7.1.60.0060.00516.53
7.1.50.0040.00616.21
7.1.40.0070.00715.76
7.1.30.0000.01015.78
7.1.20.0040.00715.84
7.1.10.0100.00315.77
7.1.00.0050.03019.07
7.0.330.0080.00415.30
7.0.320.0060.00615.31
7.0.310.0060.00915.65
7.0.300.0000.01215.25
7.0.290.0080.00615.43
7.0.280.0110.00415.12
7.0.270.0030.01315.46
7.0.260.0070.00315.04
7.0.250.0060.00915.39
7.0.240.0070.00715.30
7.0.230.0060.00315.13
7.0.220.0000.01015.46
7.0.210.0040.01115.42
7.0.200.0060.00615.95
7.0.190.0090.00915.36
7.0.180.0030.01315.45
7.0.170.0030.00615.41
7.0.160.0080.00415.44
7.0.150.0030.01015.45
7.0.140.0070.03418.76
7.0.130.0110.00315.61
7.0.120.0080.00315.28
7.0.110.0000.01515.55
7.0.100.0040.00715.29
7.0.90.0000.01015.39
7.0.80.0040.00415.44
7.0.70.0030.01015.62
7.0.60.0090.04417.58
7.0.50.0120.03816.53
7.0.40.0040.02715.66
7.0.30.0070.04015.61
7.0.20.0100.04415.61
7.0.10.0070.03515.64
7.0.00.0050.04215.55
5.6.400.0030.01314.66
5.6.390.0030.01014.48
5.6.380.0030.01014.27
5.6.370.0060.00914.38
5.6.360.0070.00714.73
5.6.350.0070.00714.55
5.6.340.0000.00914.34
5.6.330.0060.00314.31
5.6.320.0070.00714.17
5.6.310.0090.00614.29
5.6.300.0030.01314.34
5.6.290.0040.00714.55
5.6.280.0020.04217.76
5.6.270.0070.00714.84
5.6.260.0000.00814.57
5.6.250.0030.00614.41
5.6.240.0030.01214.55
5.6.230.0000.00914.46
5.6.220.0030.00714.66
5.6.210.0040.03417.61
5.6.200.0050.03416.35
5.6.190.0090.02016.35
5.6.180.0030.04916.33
5.6.170.0070.03616.31
5.6.160.0120.02716.35
5.6.150.0120.03516.48
5.6.140.0090.02616.39
5.6.130.0050.03716.24
5.6.120.0100.04016.36
5.6.110.0080.04316.36
5.6.100.0030.03616.33
5.6.90.0040.04116.37
5.6.80.0080.02616.08
5.6.70.0040.03915.92
5.6.60.0050.02815.95
5.6.50.0080.03915.89
5.6.40.0020.03915.85
5.6.30.0060.04315.96
5.6.20.0030.04315.93
5.6.10.0130.02516.02
5.6.00.0130.02516.10
5.5.380.0030.00614.64
5.5.370.0040.00714.34
5.5.360.0090.00614.57
5.5.350.0190.04417.46
5.5.340.0000.04216.22
5.5.330.0050.04616.13
5.5.320.0070.03616.27
5.5.310.0050.02516.22
5.5.300.0020.03616.16
5.5.290.0020.03316.12
5.5.280.0070.02716.14
5.5.270.0070.03816.11
5.5.260.0070.04716.26
5.5.250.0040.02616.08
5.5.240.0080.02415.81
5.5.230.0030.04715.91
5.5.220.0050.02615.69
5.5.210.0080.02615.76
5.5.200.0070.03815.92
5.5.190.0080.04015.71
5.5.180.0080.04215.84
5.5.170.0160.00314.11
5.5.160.0050.04615.88
5.5.150.0050.04515.87
5.5.140.0020.04515.92
5.5.130.0090.03215.87
5.5.120.0030.02915.72
5.5.110.0010.04115.87
5.5.100.0060.04215.86
5.5.90.0070.04215.86
5.5.80.0120.02815.78
5.5.70.0060.04315.84
5.5.60.0070.03015.56
5.5.50.0100.03815.84
5.5.40.0030.04215.70
5.5.30.0060.02915.58
5.5.20.0110.03615.73
5.5.10.0020.03715.64
5.5.00.0050.02715.71
5.4.450.0020.04416.34
5.4.440.0070.04016.35
5.4.430.0020.03916.41
5.4.420.0090.02916.42
5.4.410.0000.02716.30
5.4.400.0070.04016.32
5.4.390.0040.03116.16
5.4.380.0050.02716.13
5.4.370.0050.02316.23
5.4.360.0100.03016.32
5.4.350.0040.03216.24
5.4.340.0020.02816.20
5.4.330.0090.00613.37
5.4.320.0030.03016.32
5.4.310.0030.03516.23
5.4.300.0080.03716.21
5.4.290.0070.02916.20
5.4.280.0060.03816.32
5.4.270.0060.02316.25
5.4.260.0100.04116.24
5.4.250.0030.02816.23
5.4.240.0050.03216.25
5.4.230.0110.02616.12
5.4.220.0040.03816.21
5.4.210.0110.01816.20
5.4.200.0080.03916.17
5.4.190.0080.03816.20
5.4.180.0080.03316.23
5.4.170.0070.02716.20
5.4.160.0080.03816.22
5.4.150.0100.02716.32
5.4.140.0060.02114.90
5.4.130.0030.02814.91
5.4.120.0030.03914.92
5.4.110.0030.02314.95
5.4.100.0080.03714.96
5.4.90.0040.02714.86
5.4.80.0050.03714.88
5.4.70.0070.03814.94
5.4.60.0070.03514.92
5.4.50.0020.04014.88
5.4.40.0050.03714.90
5.4.30.0020.03514.87
5.4.20.0070.02614.83
5.4.10.0030.02814.92
5.4.00.0070.03814.64
5.3.290.0050.03514.03
5.3.280.0050.02314.00
5.3.270.0030.03814.05
5.3.260.0040.02813.99
5.3.250.0030.03414.02
5.3.240.0060.04513.97
5.3.230.0070.02313.96
5.3.220.0080.02214.00
5.3.210.0020.04714.07
5.3.200.0060.02013.98
5.3.190.0110.03714.08
5.3.180.0040.03414.07
5.3.170.0050.04114.00
5.3.160.0080.03613.94
5.3.150.0100.03213.97
5.3.140.0030.02313.97
5.3.130.0030.02313.96
5.3.120.0050.03713.97
5.3.110.0050.02813.97
5.3.100.0100.03213.73
5.3.90.0080.03513.70
5.3.80.0040.03213.73
5.3.70.0080.03213.79
5.3.60.0030.03013.72
5.3.50.0070.04113.66
5.3.40.0020.04513.66
5.3.30.0050.03613.57
5.3.20.0050.01613.46
5.3.10.0000.02413.51
5.3.00.0010.04013.46
5.2.170.0100.06011.37
5.2.160.0000.07311.23
5.2.150.0070.06011.05
5.2.140.0070.03711.21
5.2.130.0030.04011.16
5.2.120.0000.03711.13
5.2.110.0030.03011.33
5.2.100.0030.03311.14
5.2.90.0030.04711.13
5.2.80.0070.05710.99
5.2.70.0030.06311.00
5.2.60.0030.06711.26
5.2.50.0130.05311.13
5.2.40.0070.04310.90
5.2.30.0070.06011.05
5.2.20.0070.06011.02
5.2.10.0070.06010.93
5.2.00.0130.02710.75
5.1.60.0030.0379.84
5.1.50.0070.0209.95
5.1.40.0030.02710.05
5.1.30.0000.03310.37
5.1.20.0000.04010.46
5.1.10.0100.0279.91
5.1.00.0030.05710.09
5.0.50.0030.0378.53
5.0.40.0030.0408.50
5.0.30.0070.0608.29
5.0.20.0030.0438.03
5.0.10.0100.0278.16
5.0.00.0000.0538.16
4.4.90.0070.0337.82
4.4.80.0030.0337.82
4.4.70.0000.0377.82
4.4.60.0000.0377.82
4.4.50.0000.0407.82
4.4.40.0070.0507.82
4.4.30.0030.0177.82
4.4.20.0000.0237.82
4.4.10.0030.0137.82
4.4.00.0000.0607.82
4.3.110.0000.0377.82
4.3.100.0000.0177.82
4.3.90.0030.0307.82
4.3.80.0030.0377.82
4.3.70.0000.0237.82
4.3.60.0030.0237.82
4.3.50.0000.0177.82
4.3.40.0070.0507.82
4.3.30.0000.0207.82
4.3.20.0000.0177.82
4.3.10.0000.0177.82
4.3.00.0000.0177.82

preferences:
45.29 ms | 400 KiB | 5 Q