3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_object_public_vars($object) { return get_object_vars($object); } class Toto { public $unset; public $tata = 'tata'; protected $tete = 'tete'; private $tutu = 'tutu'; public function __construct($set) { $this->unset = $set; var_dump(get_object_public_vars($this)); } } new Toto('ahah');

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.0070.00716.50
8.3.50.0110.00622.11
8.3.40.0040.01118.63
8.3.30.0070.00719.05
8.3.20.0000.00820.21
8.3.10.0050.00323.66
8.3.00.0050.00320.86
8.2.180.0070.01416.63
8.2.170.0100.00722.96
8.2.160.0150.00320.51
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0060.00320.38
8.2.110.0030.00622.11
8.2.100.0040.00817.66
8.2.90.0040.00419.16
8.2.80.0050.00317.97
8.2.70.0080.00017.38
8.2.60.0030.00617.89
8.2.50.0070.00318.07
8.2.40.0140.00317.74
8.2.30.0060.00318.29
8.2.20.0030.00517.61
8.2.10.0080.00018.00
8.2.00.0030.00519.30
8.1.280.0070.01025.92
8.1.270.0030.00523.96
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00322.07
8.1.230.0080.00318.94
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0070.00317.13
8.1.190.0000.00917.23
8.1.180.0000.00818.10
8.1.170.0060.00318.53
8.1.160.0070.00021.94
8.1.150.0040.00418.43
8.1.140.0070.00017.16
8.1.130.0030.00317.68
8.1.120.0070.00317.23
8.1.110.0020.00517.27
8.1.100.0000.00717.38
8.1.90.0000.00817.38
8.1.80.0040.00317.36
8.1.70.0030.00317.41
8.1.60.0030.00717.51
8.1.50.0080.00017.41
8.1.40.0000.00717.46
8.1.30.0040.00417.55
8.1.20.0080.00017.65
8.1.10.0040.00417.53
8.1.00.0080.00017.47
8.0.300.0120.00018.77
8.0.290.0000.00816.63
8.0.280.0000.00718.42
8.0.270.0070.00017.15
8.0.260.0030.00317.18
8.0.250.0000.00716.87
8.0.240.0000.00716.96
8.0.230.0000.00716.66
8.0.220.0000.00616.65
8.0.210.0050.00216.75
8.0.200.0020.00516.86
8.0.190.0060.00316.71
8.0.180.0090.00316.70
8.0.170.0060.00316.85
8.0.160.0040.00416.78
8.0.150.0000.00816.60
8.0.140.0000.00816.73
8.0.130.0030.00513.20
8.0.120.0040.00416.69
8.0.110.0000.00716.78
8.0.100.0030.00516.63
8.0.90.0070.00016.67
8.0.80.0110.01016.75
8.0.70.0000.00816.68
8.0.60.0070.00016.70
8.0.50.0000.00716.62
8.0.30.0120.01116.86
8.0.20.0120.00617.40
8.0.10.0040.00416.93
8.0.00.0110.00816.65
7.4.330.0000.00515.00
7.4.320.0030.00316.39
7.4.300.0000.00616.41
7.4.290.0000.00716.45
7.4.280.0070.00016.52
7.4.270.0030.00316.44
7.4.260.0000.00716.47
7.4.250.0000.00716.39
7.4.240.0050.00216.53
7.4.230.0000.00716.32
7.4.220.0190.00316.63
7.4.210.0060.01216.54
7.4.200.0040.00416.54
7.4.160.0130.01016.31
7.4.150.0110.00717.40
7.4.140.0070.01017.86
7.4.130.0100.00716.46
7.4.120.0120.00716.46
7.4.110.0110.00716.50
7.4.100.0090.00916.46
7.4.90.0090.00916.25
7.4.80.0080.01119.39
7.4.70.0110.00716.53
7.4.60.0080.01116.52
7.4.50.0040.00416.58
7.4.40.0110.00816.42
7.4.30.0040.01216.52
7.4.00.0120.00314.89
7.3.330.0000.00613.41
7.3.320.0000.00513.15
7.3.310.0030.00616.32
7.3.300.0000.00616.30
7.3.290.0070.00816.29
7.3.280.0100.00816.33
7.3.270.0130.01017.40
7.3.260.0070.01116.54
7.3.250.0120.01116.24
7.3.240.0030.01316.21
7.3.230.0130.00316.39
7.3.210.0160.00616.53
7.3.200.0030.01219.39
7.3.190.0000.01716.34
7.3.180.0130.01016.50
7.3.170.0130.00316.47
7.3.160.0110.00416.36
7.3.120.0070.00714.70
7.2.330.0160.00616.57
7.2.320.0070.01116.56
7.2.310.0000.01816.66
7.2.300.0090.00916.32
7.2.290.0160.00016.50
7.2.00.0000.01119.36
7.1.100.0060.00917.96
7.1.70.0000.01316.93
7.1.60.0140.01019.70
7.1.50.0070.01716.58
7.1.00.0000.08022.57
7.0.200.0000.00716.66
7.0.140.0000.07721.92
7.0.60.0100.05320.00
7.0.50.0170.07017.83
7.0.40.0030.05020.11
7.0.30.0230.05020.07
7.0.20.0330.05720.18
7.0.10.0070.08720.07
7.0.00.0100.05320.12
5.6.280.0100.06321.00
5.6.210.0130.03320.63
5.6.200.0030.08318.16
5.6.190.0070.04320.47
5.6.180.0430.06720.53
5.6.170.0170.04320.55
5.6.160.0030.06320.56
5.6.150.0030.04718.25
5.6.140.0030.08718.21
5.6.130.0070.04018.15
5.6.120.0100.08321.03
5.6.110.0200.07021.00
5.6.100.0030.08021.14
5.6.90.0100.08320.96
5.6.80.0030.04020.42
5.5.350.0400.06720.48
5.5.340.0130.06318.04
5.5.330.0130.07720.19
5.5.320.0070.04020.38
5.5.310.0200.04720.34
5.5.300.0070.08017.99
5.5.290.0070.07017.99
5.5.280.0070.03720.88
5.5.270.0100.08020.94
5.5.260.0200.06320.89
5.5.250.0030.04020.79
5.5.240.0170.05720.29
5.4.450.0630.05019.62
5.4.440.0070.06019.49
5.4.430.1030.06019.30
5.4.420.0970.05319.46
5.4.410.1070.04019.26
5.4.400.0570.06019.15
5.4.390.0500.05319.38
5.4.380.0070.06718.59
5.4.370.0270.04318.48
5.4.360.0230.04318.68
5.4.350.0200.06718.51
5.4.340.0170.05318.59
5.4.320.0100.05312.51
5.4.310.0090.04012.51
5.4.300.0050.03912.51
5.4.290.0060.04212.51
5.4.280.0080.03312.40
5.4.270.0070.04212.40
5.4.260.0100.05012.40
5.4.250.0040.04012.40
5.4.240.0050.03612.40
5.4.230.0050.03812.40
5.4.220.0060.03512.39
5.4.210.0070.03412.39
5.4.200.0070.03712.39
5.4.190.0050.03712.39
5.4.180.0080.03612.39
5.4.170.0080.03712.39
5.4.160.0080.03612.39
5.4.150.0060.03812.39
5.4.140.0070.03612.07
5.4.130.0070.03612.06
5.4.120.0080.03312.02
5.4.110.0090.03212.02
5.4.100.0040.03712.01
5.4.90.0110.04812.02
5.4.80.0060.03712.02
5.4.70.0070.03512.01
5.4.60.0060.03512.01
5.4.50.0090.03312.02
5.4.40.0080.03412.00
5.4.30.0100.03212.00
5.4.20.0040.03812.00
5.4.10.0070.03212.00
5.4.00.0060.03511.48
5.3.290.0120.03712.80
5.3.280.0060.03812.71
5.3.270.0070.03912.73
5.3.260.0060.03912.72
5.3.250.0080.03612.71
5.3.240.0050.04612.72
5.3.230.0080.03612.71
5.3.220.0070.03612.68
5.3.210.0040.04112.68
5.3.200.0080.04112.68
5.3.190.0060.03812.68
5.3.180.0050.03812.67
5.3.170.0050.03812.67
5.3.160.0060.03712.67
5.3.150.0070.03712.67
5.3.140.0100.03412.66
5.3.130.0080.03712.66
5.3.120.0070.03712.66
5.3.110.0070.03712.66
5.3.100.0060.03712.12
5.3.90.0100.03412.11
5.3.80.0070.03712.09
5.3.70.0110.03312.09
5.3.60.0040.03912.08
5.3.50.0050.03712.02
5.3.40.0060.03612.02
5.3.30.0080.03411.98
5.3.20.0070.04911.77
5.3.10.0050.05211.73
5.3.00.0080.04911.72
5.2.170.0090.0329.22
5.2.160.0050.0339.22
5.2.150.0030.0319.22
5.2.140.0090.0269.21
5.2.130.0040.0299.18
5.2.120.0050.0289.18
5.2.110.0050.0289.18
5.2.100.0050.0289.18
5.2.90.0070.0269.18
5.2.80.0050.0309.17
5.2.70.0070.0329.17
5.2.60.0130.0359.13
5.2.50.0060.0429.09
5.2.40.0100.0359.07
5.2.30.0060.0419.05
5.2.20.0050.0419.04
5.2.10.0060.0398.95
5.2.00.0110.0348.80
5.1.60.0070.0338.09
5.1.50.0060.0358.09
5.1.40.0030.0378.07
5.1.30.0060.0368.41
5.1.20.0070.0368.44
5.1.10.0050.0338.17
5.1.00.0070.0238.17
5.0.50.0060.0276.64
5.0.40.0050.0276.50
5.0.30.0080.0376.32
5.0.20.0050.0186.28
5.0.10.0050.0186.26
5.0.00.0050.0296.25
4.4.90.0020.0164.78
4.4.80.0040.0224.75
4.4.70.0040.0154.75
4.4.60.0030.0154.76
4.4.50.0010.0174.77
4.4.40.0030.0304.70
4.4.30.0030.0154.76
4.4.20.0020.0164.85
4.4.10.0030.0164.85
4.4.00.0030.0254.76
4.3.110.0010.0184.67
4.3.100.0030.0154.67
4.3.90.0020.0154.63
4.3.80.0040.0234.58
4.3.70.0030.0144.63
4.3.60.0020.0164.62
4.3.50.0020.0174.63
4.3.40.0020.0254.54
4.3.30.0040.0153.30
4.3.20.0020.0173.29
4.3.10.0010.0173.24
4.3.00.0000.02016.91

preferences:
42.51 ms | 401 KiB | 5 Q