3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Potatoe { public $skin; protected $meat; private $roots; function __construct ( $s, $m, $r ) { $this->skin = $s; $this->meat = $m; $this->roots = $r; } } $p = new Potatoe(); var_dump(get_object_vars($p), array_values( (array) $p ));

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.0090.00616.63
8.3.50.0130.00617.93
8.3.40.0140.00418.79
8.3.30.0030.01018.67
8.3.20.0040.00420.37
8.3.10.0030.00523.66
8.3.00.0080.00019.38
8.2.180.0160.00618.29
8.2.170.0000.01422.96
8.2.160.0080.00520.55
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00817.63
8.2.110.0100.00019.35
8.2.100.0040.00817.78
8.2.90.0040.00417.84
8.2.80.0000.00819.18
8.2.70.0040.00417.68
8.2.60.0040.00417.90
8.2.50.0030.00618.10
8.2.40.0080.00020.58
8.2.30.0060.00320.63
8.2.20.0030.00617.69
8.2.10.0040.00417.88
8.2.00.0040.00417.99
8.1.280.0120.00925.92
8.1.270.0060.00323.81
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0080.00022.47
8.1.230.0110.00022.75
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0030.00917.35
8.1.190.0000.00817.11
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0000.00722.19
8.1.150.0050.00318.77
8.1.140.0040.00419.33
8.1.130.0000.00717.58
8.1.120.0040.00417.32
8.1.110.0000.00717.35
8.1.100.0000.00717.29
8.1.90.0030.00517.39
8.1.80.0070.00017.32
8.1.70.0050.00517.25
8.1.60.0040.00417.41
8.1.50.0060.00317.47
8.1.40.0030.00517.35
8.1.30.0080.00017.45
8.1.20.0020.00517.57
8.1.10.0040.00417.43
8.1.00.0070.00017.52
8.0.300.0040.00420.09
8.0.290.0080.00016.63
8.0.280.0000.00718.45
8.0.270.0000.00717.20
8.0.260.0050.00317.21
8.0.250.0000.00816.86
8.0.240.0000.00716.89
8.0.230.0070.00017.02
8.0.220.0000.00716.87
8.0.210.0030.00316.90
8.0.200.0040.00416.83
8.0.190.0080.00016.97
8.0.180.0030.00616.91
8.0.170.0000.00816.95
8.0.160.0030.00516.95
8.0.150.0030.00716.73
8.0.140.0070.00016.89
8.0.130.0030.00313.32
8.0.120.0050.00316.79
8.0.110.0040.00416.84
8.0.100.0050.00216.79
8.0.90.0070.00016.89
8.0.80.0030.01216.92
8.0.70.0060.00316.85
8.0.60.0000.00716.91
8.0.50.0040.00416.78
8.0.30.0110.01017.04
8.0.20.0110.00717.40
8.0.10.0040.00416.89
8.0.00.0090.01116.82
7.4.330.0050.00015.08
7.4.320.0000.00616.49
7.4.300.0060.00016.47
7.4.290.0070.00016.60
7.4.280.0040.00416.57
7.4.270.0000.00716.48
7.4.260.0000.00716.47
7.4.250.0030.00716.56
7.4.240.0050.00316.45
7.4.230.0030.00316.28
7.4.220.0110.00716.52
7.4.210.0100.01016.48
7.4.200.0050.00316.53
7.4.160.0100.00716.50
7.4.150.0090.00917.40
7.4.140.0260.01217.86
7.4.130.0060.01316.49
7.4.120.0060.01316.43
7.4.110.0130.00716.68
7.4.100.0120.00916.60
7.4.90.0140.00316.58
7.4.80.0070.01119.39
7.4.70.0130.00316.50
7.4.60.0060.00916.36
7.4.50.0030.00616.48
7.4.40.0080.00816.56
7.4.30.0160.00616.55
7.4.00.0120.00715.07
7.3.330.0050.00013.32
7.3.320.0000.00513.35
7.3.310.0070.00016.30
7.3.300.0000.00716.42
7.3.290.0030.01316.30
7.3.280.0080.01116.40
7.3.270.0170.00017.40
7.3.260.0170.00016.47
7.3.250.0100.00616.41
7.3.240.0150.00316.32
7.3.230.0040.01416.39
7.3.210.0070.01016.58
7.3.200.0120.00616.48
7.3.190.0110.00716.33
7.3.180.0060.01116.62
7.3.170.0150.00616.64
7.3.160.0060.00916.62
7.3.120.0040.01114.82
7.3.110.0040.00814.51
7.3.100.0030.01214.70
7.3.90.0090.00614.83
7.3.80.0060.00914.85
7.3.70.0070.00714.89
7.3.60.0090.00014.86
7.3.50.0030.00614.52
7.3.40.0000.01414.84
7.3.30.0030.01014.80
7.3.20.0070.00316.68
7.3.10.0040.00716.54
7.3.00.0040.01116.63
7.2.330.0030.01316.59
7.2.320.0110.00816.62
7.2.310.0030.01416.61
7.2.300.0040.01416.25
7.2.290.0070.01116.56
7.2.250.0130.00614.95
7.2.240.0060.01415.02
7.2.230.0070.01015.00
7.2.220.0030.01315.12
7.2.210.0030.00615.10
7.2.200.0030.01014.92
7.2.190.0090.00614.80
7.2.180.0040.01214.93
7.2.170.0100.00714.73
7.2.60.0040.00916.84
7.2.00.0080.01219.08
7.1.330.0030.01015.81
7.1.320.0040.01115.70
7.1.310.0040.00815.60
7.1.300.0110.00315.73
7.1.290.0070.00315.40
7.1.280.0000.01315.48
7.1.270.0040.00415.30
7.1.260.0000.01415.66
7.1.200.0030.00915.59
7.1.100.0090.00617.57
7.1.70.0030.00317.05
7.1.60.0140.01119.43
7.1.50.0130.00916.77
7.1.00.0030.07722.29
7.0.200.0910.00315.00
7.0.60.0000.07020.10
7.0.50.0130.07017.87
7.0.40.0030.06319.96
7.0.30.0200.06020.10
7.0.20.0270.06320.18
7.0.10.0100.04020.33
7.0.00.0070.08720.15
5.6.280.0030.05021.07
5.6.210.0100.07320.47
5.6.200.0100.03718.18
5.6.190.0070.05320.33
5.6.180.0300.07320.66
5.6.170.0230.07020.48
5.6.160.0100.06020.53
5.6.150.0100.08018.23
5.6.140.0100.06718.29
5.6.130.0070.05018.28
5.6.120.0170.08021.00
5.6.110.0230.04721.11
5.6.100.0100.04320.97
5.6.90.0030.06021.10
5.6.80.0100.08020.39
5.5.350.0100.05720.45
5.5.340.0000.05018.07
5.5.330.0100.08020.19
5.5.320.0130.05320.32
5.5.310.0330.07020.29
5.5.300.0030.04018.08
5.5.290.0030.09317.98
5.5.280.0030.09320.80
5.5.270.0130.08020.98
5.5.260.0030.06020.76
5.5.250.0070.04320.59
5.5.240.0100.08020.26
5.4.450.0170.05319.21
5.4.440.0200.07019.36
5.4.430.0200.05019.38
5.4.420.0100.05719.52
5.4.410.0070.06019.52
5.4.400.0100.05719.23
5.4.390.0200.04719.01
5.4.380.0130.05319.04
5.4.370.0100.06319.27
5.4.360.0130.05319.06
5.4.350.0130.05019.15
5.4.340.0100.06319.22
5.4.320.0170.05019.09
5.4.310.0200.04318.79
5.4.300.0200.04719.03
5.4.290.0100.06019.31
5.4.280.0130.05319.04
5.4.270.0070.05719.19
5.4.260.0130.05018.88
5.4.250.0130.05319.08
5.4.240.0200.04718.82
5.4.230.0130.05018.88
5.4.220.0100.06019.05
5.4.210.0270.04019.19
5.4.200.0230.04319.06
5.4.190.0170.05018.99
5.4.180.0130.05019.27
5.4.170.0130.05319.27
5.4.160.0130.05318.80
5.4.150.0230.04319.04
5.4.140.0130.05016.51
5.4.130.0170.04716.25
5.4.120.0130.05016.39
5.4.110.0130.05316.48
5.4.100.0170.04716.60
5.4.90.0170.05016.58
5.4.80.0170.04716.56
5.4.70.0100.05316.46
5.4.60.0230.04016.17
5.4.50.0170.04316.42
5.4.40.0130.05016.44
5.4.30.0170.04716.54
5.4.20.0170.04716.57
5.4.10.0170.04716.44
5.4.00.0200.04015.95

preferences:
53.92 ms | 400 KiB | 5 Q