3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar; public function __construct() { $this->bar = new Bar('bar'); } public function getBarData() { return $this->bar->getData(); } public function __destruct() { var_dump( $this->getBarData()); } } class Bar { protected $data; public function __construct($data) { $this->data = $data; } public function getData() { return $this->data; } public function __destruct() { var_dump( __METHOD__ ); } } $foo = new Foo; var_dump( $foo->getBarData()); unset($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)
8.3.40.0110.00318.83
8.3.30.0100.00718.71
8.3.20.0040.00418.59
8.3.10.0040.00420.92
8.3.00.0040.00419.79
8.2.170.0170.00322.96
8.2.160.0000.01320.53
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00021.11
8.2.110.0060.00320.53
8.2.100.0040.00817.57
8.2.90.0040.00419.05
8.2.80.0030.00519.32
8.2.70.0080.00017.50
8.2.60.0040.00417.55
8.2.50.0040.00418.07
8.2.40.0030.00618.03
8.2.30.0040.00421.13
8.2.20.0000.00717.50
8.2.10.0040.00417.63
8.2.00.0060.00317.66
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0060.00322.53
8.1.230.0000.01120.90
8.1.220.0040.00418.77
8.1.210.0040.00718.91
8.1.200.0090.00017.13
8.1.190.0070.00017.54
8.1.180.0000.00818.10
8.1.170.0030.00518.36
8.1.160.0040.00418.84
8.1.150.0090.00018.58
8.1.140.0040.00417.36
8.1.130.0000.00817.90
8.1.120.0000.00717.25
8.1.110.0040.00717.40
8.1.100.0000.00817.36
8.1.90.0030.00317.45
8.1.80.0030.00517.40
8.1.70.0030.00517.41
8.1.60.0030.00617.50
8.1.50.0000.00717.53
8.1.40.0040.00417.46
8.1.30.0030.00617.53
8.1.20.0030.00517.64
8.1.10.0000.00717.53
8.1.00.0080.00017.50
8.0.300.0000.00719.89
8.0.290.0000.00717.04
8.0.280.0030.00318.33
8.0.270.0030.00317.22
8.0.260.0000.00716.68
8.0.250.0040.00416.89
8.0.240.0040.00416.81
8.0.230.0070.00016.90
8.0.220.0000.00716.91
8.0.210.0040.00416.89
8.0.200.0000.00616.94
8.0.190.0000.00816.77
8.0.180.0040.00416.72
8.0.170.0030.00416.81
8.0.160.0030.00516.84
8.0.150.0050.00216.88
8.0.140.0000.00716.84
8.0.130.0060.00013.27
8.0.120.0050.00316.81
8.0.110.0040.00416.64
8.0.100.0040.00416.70
8.0.90.0040.00416.87
8.0.80.0120.00916.86
8.0.70.0000.00816.70
8.0.60.0070.00016.78
8.0.50.0040.00416.86
8.0.30.0130.00717.38
8.0.20.0130.00717.40
8.0.10.0050.00316.84
8.0.00.0080.01016.77
7.4.330.0000.00516.77
7.4.320.0000.00616.47
7.4.300.0070.00016.56
7.4.290.0070.00016.50
7.4.280.0000.00716.42
7.4.270.0040.00416.53
7.4.260.0000.00513.21
7.4.250.0000.00816.55
7.4.240.0050.00316.52
7.4.230.0000.00716.50
7.4.220.0070.01016.47
7.4.210.0090.00816.60
7.4.200.0070.00016.50
7.4.190.0070.00016.77
7.4.160.0100.00716.62
7.4.150.0070.01117.40
7.4.140.0080.01017.86
7.4.130.0100.00816.47
7.4.120.0090.00916.56
7.4.110.0120.00916.63
7.4.100.0070.01016.58
7.4.90.0120.01216.45
7.4.80.0030.01319.39
7.4.70.0130.00316.41
7.4.60.0150.00616.48
7.4.50.0000.00916.34
7.4.40.0090.00622.77
7.4.30.0050.01616.58
7.4.00.0140.00415.08
7.3.330.0050.00013.32
7.3.320.0070.00013.24
7.3.310.0000.00716.33
7.3.300.0060.00016.16
7.3.290.0090.00616.20
7.3.280.0080.01416.29
7.3.270.0150.00317.40
7.3.260.0170.00518.24
7.3.250.0100.01016.28
7.3.240.0130.00316.48
7.3.230.0060.00916.39
7.3.210.0180.00416.49
7.3.200.0110.00719.39
7.3.190.0030.01316.41
7.3.180.0030.01316.50
7.3.170.0060.00916.27
7.3.160.0100.00716.41
7.3.120.0070.00714.83
7.2.330.0160.01016.65
7.2.320.0140.00716.77
7.2.310.0110.01216.38
7.2.300.0090.00616.65
7.2.290.0030.01316.73
7.2.00.0030.01319.39
7.1.200.0030.00715.39
7.1.100.0070.00418.12
7.1.70.0030.00716.80
7.1.60.0090.00619.24
7.1.50.0040.00816.82
7.1.00.0030.03322.37
7.0.200.0030.00716.80
7.0.140.0000.07322.19
7.0.60.0070.08720.04
7.0.50.0130.07317.92
7.0.40.0200.07720.26
7.0.30.0530.04720.30
7.0.20.0330.07720.15
7.0.10.0200.05720.30
7.0.00.0170.07720.20
5.6.280.0070.07020.90
5.6.210.0000.08720.56
5.6.200.0100.03718.29
5.6.190.0000.08320.62
5.6.180.0300.07720.54
5.6.170.0400.07720.44
5.6.160.0070.03720.52
5.6.150.0030.04718.15
5.6.140.0070.03718.14
5.6.130.0100.07018.28
5.6.120.0070.04021.00
5.6.110.0130.07021.12
5.6.100.0070.08721.12
5.6.90.0030.08321.04
5.6.80.0170.07320.43
5.6.70.0400.06320.45
5.5.350.0200.08320.45
5.5.340.0000.04018.14
5.5.330.0100.04320.57
5.5.320.0070.04720.19
5.5.310.0230.04020.27
5.5.300.0070.04318.08
5.5.290.0100.07717.98
5.5.280.0000.04320.66
5.5.270.0100.08020.82
5.5.260.0100.08020.74
5.5.250.0070.07320.69
5.5.240.0100.07020.25
5.4.450.0300.07019.20
5.4.440.0230.08319.32
5.4.430.0270.07719.41
5.4.420.0330.05019.38
5.4.410.0270.07319.19
5.4.400.0300.06719.25
5.4.390.0330.04019.25
5.4.380.0330.03718.94
5.4.370.0200.04719.10
5.4.360.0200.07319.13
5.4.350.0200.04019.20
5.4.340.0230.04319.22
5.4.320.0230.04319.22
5.4.310.0270.06319.25
5.4.300.0230.04019.06
5.4.290.0270.06719.31
5.4.280.0200.05019.30
5.4.270.0330.07019.31
5.4.260.0300.05019.08
5.4.250.0370.03719.13
5.4.240.0230.07719.04
5.4.230.0330.06318.93
5.4.220.0330.06319.13
5.4.210.0230.06719.05
5.4.200.0170.08719.13
5.4.190.0270.06318.98
5.4.180.0300.07719.21
5.4.170.0330.06018.98
5.4.160.0330.06319.17
5.4.150.0200.07719.20
5.4.140.0170.08016.57
5.4.130.0230.04016.41
5.4.120.0230.06716.40
5.4.110.0270.07016.33
5.4.100.0230.06716.31
5.4.90.0200.07316.64
5.4.80.0330.05716.26
5.4.70.0270.06316.59
5.4.60.0230.04316.25
5.4.50.0330.05016.34
5.4.40.0230.07016.17
5.4.30.0270.07016.16
5.4.20.0300.07016.51
5.4.10.0230.07316.24
5.4.00.0300.05715.78
5.3.290.0230.06714.65
5.3.280.0230.03314.59
5.3.270.0370.04014.61
5.3.260.0230.03314.59
5.3.250.0430.04314.77
5.3.240.0130.04314.50
5.3.230.0170.04014.54
5.3.220.0230.06714.73
5.3.210.0130.04314.69
5.3.200.0230.05014.58
5.3.190.0230.07014.57
5.3.180.0330.06014.72
5.3.170.0130.05714.72
5.3.160.0170.07314.64
5.3.150.0230.05714.65
5.3.140.0170.07314.54
5.3.130.0270.04314.77
5.3.120.0230.07314.77
5.3.110.0200.07714.63
5.3.100.0230.07314.02
5.3.90.0300.06314.02
5.3.80.0200.07713.95
5.3.70.0230.06713.92
5.3.60.0230.07014.01
5.3.50.0300.04013.86
5.3.40.0170.06713.85
5.3.30.0130.08313.82
5.3.20.0270.06013.62
5.3.10.0330.05013.63
5.3.00.0200.07713.78
5.2.170.0170.05313.25
5.2.160.0170.06313.25
5.2.150.0200.06013.25
5.2.140.0130.07013.25
5.2.130.0130.06013.25
5.2.120.0170.06013.25
5.2.110.0230.05313.25
5.2.100.0170.04013.25
5.2.90.0200.02713.25
5.2.80.0130.06713.25
5.2.70.0130.04013.25
5.2.60.0200.04313.25
5.2.50.0200.03313.25
5.2.40.0230.02013.25
5.2.30.0070.03313.25
5.2.20.0100.03313.25
5.2.10.0130.02713.25
5.2.00.0130.03713.25
5.1.60.0130.02713.25
5.1.50.0100.02713.25
5.1.40.0130.02713.25
5.1.30.0100.02713.25
5.1.20.0100.03013.25
5.1.10.0170.02713.25
5.1.00.0170.02313.25
5.0.50.0100.01713.25
5.0.40.0100.01713.25
5.0.30.0070.02713.25
5.0.20.0030.02013.25
5.0.10.0100.01713.25
5.0.00.0070.03013.25
4.4.90.0030.02013.25
4.4.80.0070.01713.25
4.4.70.0070.01313.25
4.4.60.0030.01713.25
4.4.50.0030.01713.25
4.4.40.0030.02713.25
4.4.30.0070.01713.25
4.4.20.0070.01713.25
4.4.10.0100.01013.25
4.4.00.0100.02013.25
4.3.110.0070.01313.25
4.3.100.0070.01313.25
4.3.90.0100.01313.25
4.3.80.0000.03013.25
4.3.70.0070.01313.25
4.3.60.0030.01713.25
4.3.50.0130.00713.25
4.3.40.0100.02013.25
4.3.30.0000.01713.25
4.3.20.0000.02013.25
4.3.10.0030.01313.25
4.3.00.0000.02013.25

preferences:
33.77 ms | 400 KiB | 5 Q