3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a; public $b; private $c; public function __construct($a, $b, $c) { $this->a = $a; $this->b = $b; $this->c = $c; } public function toArray() { return $this->getVars(); } public function getVars() { return array_filter((array)$this); } } $o = new A(1,2,3); var_dump($o->toArray());

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.0060.00918.56
8.3.50.0050.01122.05
8.3.40.0090.00918.71
8.3.30.0070.00718.95
8.3.20.0070.00020.16
8.3.10.0080.00021.85
8.3.00.0060.00317.93
8.2.180.0040.01118.41
8.2.170.0070.00722.96
8.2.160.0100.00322.09
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00421.08
8.2.110.0110.01122.11
8.2.100.0110.00017.72
8.2.90.0030.00619.05
8.2.80.0000.00917.97
8.2.70.0030.00617.61
8.2.60.0000.00917.91
8.2.50.0070.00318.07
8.2.40.0060.00319.70
8.2.30.0000.00718.20
8.2.20.0030.00617.59
8.2.10.0050.00217.91
8.2.00.0000.00717.61
8.1.280.0030.01025.92
8.1.270.0050.00323.96
8.1.260.0000.00726.35
8.1.250.0060.00328.09
8.1.240.0150.00623.75
8.1.230.0070.00319.14
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0060.00317.35
8.1.180.0080.00018.10
8.1.170.0040.00418.40
8.1.160.0050.00321.95
8.1.150.0030.00618.86
8.1.140.0000.00717.40
8.1.130.0030.00317.74
8.1.120.0000.00817.25
8.1.110.0050.00317.45
8.1.100.0030.00317.48
8.1.90.0040.00417.36
8.1.80.0040.00417.46
8.1.70.0040.00417.34
8.1.60.0060.00317.62
8.1.50.0060.00317.43
8.1.40.0030.00517.52
8.1.30.0060.00317.58
8.1.20.0040.00417.68
8.1.10.0000.00717.39
8.1.00.0040.00417.46
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0000.00717.12
8.0.260.0030.00317.20
8.0.250.0000.00716.93
8.0.240.0040.00416.88
8.0.230.0000.00716.91
8.0.220.0030.00316.74
8.0.210.0000.00816.86
8.0.200.0040.00416.89
8.0.190.0080.00016.89
8.0.180.0040.00416.69
8.0.170.0000.00816.84
8.0.160.0040.00416.78
8.0.150.0000.00716.82
8.0.140.0030.00316.80
8.0.130.0060.00313.25
8.0.120.0080.00016.78
8.0.110.0000.00716.77
8.0.100.0000.00716.66
8.0.90.0070.00016.93
8.0.80.0000.01516.77
8.0.70.0050.00316.93
8.0.60.0040.00416.86
8.0.50.0040.00416.92
8.0.30.0120.00716.93
8.0.20.0100.00817.40
8.0.10.0040.00417.09
8.0.00.0090.00816.73
7.4.330.0050.00015.15
7.4.320.0030.00316.65
7.4.300.0000.00616.52
7.4.290.0030.00516.65
7.4.280.0040.00416.65
7.4.270.0030.00316.50
7.4.260.0030.00316.51
7.4.250.0000.00816.47
7.4.240.0050.00216.42
7.4.230.0070.00016.52
7.4.220.0130.00716.46
7.4.210.0040.01416.50
7.4.200.0000.00816.60
7.4.160.0130.00316.36
7.4.150.0140.00317.40
7.4.140.0070.01017.86
7.4.130.0090.00816.44
7.4.120.0120.00516.58
7.4.110.0110.01016.46
7.4.100.0130.00316.51
7.4.90.0130.01016.61
7.4.80.0090.00919.39
7.4.70.0080.00816.57
7.4.60.0100.00716.48
7.4.50.0030.00316.52
7.4.40.0140.00316.48
7.4.30.0060.01016.33
7.4.00.0140.00014.64
7.3.330.0000.00613.13
7.3.320.0000.00613.32
7.3.310.0030.00316.30
7.3.300.0000.00716.31
7.3.290.0050.00816.27
7.3.280.0080.00916.31
7.3.270.0170.00017.40
7.3.260.0100.00716.68
7.3.250.0080.01016.27
7.3.240.0060.01216.33
7.3.230.0110.00716.61
7.3.210.0110.00716.34
7.3.200.0050.01019.39
7.3.190.0080.00816.25
7.3.180.0090.00616.23
7.3.170.0060.00916.48
7.3.160.0060.00916.47
7.3.120.0090.00615.02
7.2.330.0070.01016.43
7.2.320.0130.01016.41
7.2.310.0110.00816.69
7.2.300.0100.00716.78
7.2.290.0110.00416.44
7.2.60.0140.00016.92
7.2.00.0000.01619.26
7.1.200.0040.00415.64
7.1.100.0040.00718.07
7.1.70.0050.00317.13
7.1.60.0140.01019.11
7.1.50.0060.01617.04
7.1.00.0030.07322.33
7.0.200.0030.00616.75
7.0.140.0100.07022.21
7.0.60.0030.09019.96
7.0.50.0070.07317.72
7.0.40.0030.08020.14
7.0.30.0300.04020.19
7.0.20.0230.08320.09
7.0.10.0230.06020.16
7.0.00.0070.04720.15
5.6.280.0030.07321.08
5.6.210.0130.04020.67
5.6.200.0100.05318.29
5.6.190.0000.06020.41
5.6.180.0000.08720.45
5.6.170.0370.04720.52
5.6.160.0130.07020.57
5.6.150.0100.03318.23
5.6.140.0070.07018.15
5.6.130.0070.04718.25
5.6.120.0070.04021.09
5.6.110.0070.08721.02
5.6.100.0100.03721.13
5.6.90.0070.06721.13
5.6.80.0170.06320.39
5.6.70.4270.03720.51
5.5.350.0100.06720.42
5.5.340.0030.07017.98
5.5.330.0030.05320.14
5.5.320.0230.05320.32
5.5.310.0230.06720.36
5.5.300.0070.04718.07
5.5.290.0030.09017.97
5.5.280.0130.08020.88
5.5.270.0130.07320.84
5.5.260.0170.07320.73
5.5.250.0170.07020.69
5.5.240.0030.09020.38
5.4.450.0830.07019.45
5.4.440.0200.04719.38
5.4.430.0200.06019.36
5.4.420.0270.04319.58
5.4.410.0100.05018.69
5.4.400.0600.07718.89
5.4.390.0130.07018.61
5.4.380.0130.05318.58
5.4.370.0100.05318.77
5.4.360.0200.03018.72
5.4.350.0060.04512.02
5.4.340.0070.03412.02
5.4.320.0050.04312.51
5.4.310.0100.04812.50
5.4.300.0100.04112.50
5.4.290.0090.04012.50
5.4.280.0090.03512.40
5.4.270.0080.03612.39
5.4.260.0050.04112.39
5.4.250.0050.04312.40
5.4.240.0100.03412.40
5.4.230.0060.04612.39
5.4.220.0070.04512.39
5.4.210.0080.03912.39
5.4.200.0040.04212.39
5.4.190.0080.03912.39
5.4.180.0070.04112.39
5.4.170.0040.03812.40
5.4.160.0080.03512.39
5.4.150.0090.03612.39
5.4.140.0060.04112.07
5.4.130.0040.03812.07
5.4.120.0130.04112.02
5.4.110.0080.03612.01
5.4.100.0060.03612.02
5.4.90.0080.04212.02
5.4.80.0070.05812.02
5.4.70.0070.04712.01
5.4.60.0120.04412.01
5.4.50.0070.04612.02
5.4.40.0090.04612.00
5.4.30.0080.04612.00
5.4.20.0100.03412.00
5.4.10.0050.04012.00
5.4.00.0130.03511.49
5.3.290.0080.04012.80
5.3.280.0080.04012.71
5.3.270.0150.03912.72
5.3.260.0070.04412.71
5.3.250.0040.04212.71
5.3.240.0060.04312.72
5.3.230.0100.04712.71
5.3.220.0070.05312.68
5.3.210.0100.04812.68
5.3.200.0100.04712.68
5.3.190.0080.04812.68
5.3.180.0050.05212.67
5.3.170.0080.05112.67
5.3.160.0070.05212.67
5.3.150.0080.05212.67
5.3.140.0130.04512.66
5.3.130.0020.04512.66
5.3.120.0060.04212.66
5.3.110.0100.04412.66
5.3.100.0100.05012.12
5.3.90.0120.04812.11
5.3.80.0100.03612.10
5.3.70.0090.05112.09
5.3.60.0110.05012.09
5.3.50.0120.04812.03
5.3.40.0080.04912.03
5.3.30.0080.05111.99
5.3.20.0070.05111.77
5.3.10.0040.05311.74
5.3.00.0060.05311.72
5.2.170.0110.0389.22
5.2.160.0050.0449.23
5.2.150.0050.0459.23
5.2.140.0070.0409.22
5.2.130.0070.0439.18
5.2.120.0060.0429.18
5.2.110.0070.0399.19
5.2.100.0020.0339.18
5.2.90.0040.0329.18
5.2.80.0060.0319.18
5.2.70.0030.0349.18
5.2.60.0070.0299.14
5.2.50.0060.0319.10
5.2.40.0070.0289.07
5.2.30.0060.0299.05
5.2.20.0040.0369.05
5.2.10.0060.0398.95
5.2.00.0060.0428.81
5.1.60.0040.0358.09
5.1.50.0060.0258.09
5.1.40.0030.0268.07
5.1.30.0060.0258.42
5.1.20.0080.0258.44
5.1.10.0030.0278.17
5.1.00.0070.0318.17
5.0.50.0080.0206.64
5.0.40.0040.0206.50
5.0.30.0050.0316.32
5.0.20.0020.0226.29
5.0.10.0030.0236.27
5.0.00.0050.0316.25
4.4.90.0010.0184.77
4.4.80.0020.0174.76
4.4.70.0020.0194.75
4.4.60.0040.0144.75
4.4.50.0040.0154.77
4.4.40.0040.0294.71
4.4.30.0040.0184.76
4.4.20.0030.0174.85
4.4.10.0040.0154.85
4.4.00.0040.0254.75
4.3.110.0010.0184.67
4.3.100.0040.0204.66
4.3.90.0030.0194.63
4.3.80.0070.0254.58
4.3.70.0040.0144.63
4.3.60.0050.0194.63
4.3.50.0030.0164.63
4.3.40.0020.0264.54
4.3.30.0010.0183.30
4.3.20.0030.0163.28
4.3.10.0020.0163.23
4.3.00.0100.0237.13

preferences:
39.33 ms | 401 KiB | 5 Q