3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar; private $baz; public function __construct($bar, $baz) { $this->bar = $bar; $this->baz = $baz; } public function __debugInfo() { return ['bar' => $this->bar]; } } $foo = new Foo('abc', 'def'); print_r($foo); var_dump(debug_zval_dump($foo)); echo var_export($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.60.0120.00316.88
8.3.50.0140.00821.10
8.3.40.0100.00718.77
8.3.30.0100.01018.71
8.3.20.0070.00720.31
8.3.10.0020.00521.77
8.3.00.0000.00819.68
8.2.180.0040.01116.50
8.2.170.0120.00422.96
8.2.160.0110.00320.45
8.2.150.0040.00424.18
8.2.140.0130.00324.66
8.2.130.0080.00026.16
8.2.120.0060.00317.75
8.2.110.0050.00520.35
8.2.100.0070.00417.91
8.2.90.0000.00818.33
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0000.00718.16
8.2.50.0000.00818.07
8.2.40.0060.00321.01
8.2.30.0040.00419.95
8.2.20.0050.00217.81
8.2.10.0040.00418.04
8.2.00.0000.00817.98
8.1.280.0030.01725.92
8.1.270.0040.00420.33
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00822.05
8.1.230.0110.00020.92
8.1.220.0000.00817.77
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0000.00817.11
8.1.180.0070.00018.10
8.1.170.0040.00418.56
8.1.160.0070.00021.97
8.1.150.0030.00518.83
8.1.140.0030.00517.46
8.1.130.0030.00317.59
8.1.120.0000.00717.33
8.1.110.0000.00717.44
8.1.100.0000.00817.29
8.1.90.0040.00417.35
8.1.80.0000.00817.38
8.1.70.0030.00517.24
8.1.60.0000.00717.62
8.1.50.0030.00517.52
8.1.40.0050.00317.46
8.1.30.0060.00317.65
8.1.20.0000.00817.58
8.1.10.0040.00417.62
8.1.00.0080.00017.38
8.0.300.0040.00420.09
8.0.290.0000.00716.63
8.0.280.0020.00518.44
8.0.270.0000.00717.27
8.0.260.0000.00817.31
8.0.250.0070.00016.88
8.0.240.0000.00816.77
8.0.230.0040.00316.86
8.0.220.0050.00216.88
8.0.210.0000.00716.81
8.0.200.0030.00316.93
8.0.190.0040.00416.80
8.0.180.0040.00416.77
8.0.170.0040.00416.79
8.0.160.0040.00416.70
8.0.150.0040.00416.77
8.0.140.0040.00316.65
8.0.130.0030.00313.27
8.0.120.0000.00816.77
8.0.110.0040.00416.76
8.0.100.0000.00716.66
8.0.90.0000.00716.82
8.0.80.0120.00616.88
8.0.70.0000.00716.88
8.0.60.0040.00416.70
8.0.50.0040.00416.80
8.0.30.0050.01417.17
8.0.20.0150.00617.40
8.0.10.0040.00416.93
8.0.00.0070.01116.77
7.4.330.0050.00015.08
7.4.320.0000.00716.57
7.4.300.0000.00716.51
7.4.290.0000.00716.37
7.4.280.0040.00416.52
7.4.270.0000.00616.44
7.4.260.0020.00516.56
7.4.250.0040.00416.38
7.4.240.0030.00316.50
7.4.230.0030.00316.44
7.4.220.0100.00916.61
7.4.210.0030.01416.57
7.4.200.0070.00016.40
7.4.160.0130.00316.49
7.4.150.0120.00617.40
7.4.140.0070.01217.86
7.4.130.0070.01316.46
7.4.120.0150.00216.51
7.4.110.0140.00416.55
7.4.100.0170.00316.30
7.4.90.0040.02016.50
7.4.80.0140.00319.39
7.4.70.0080.00816.53
7.4.60.0100.00716.53
7.4.50.0040.00416.55
7.4.40.0060.01016.44
7.4.30.0050.01116.52
7.4.00.0070.01015.18
7.3.330.0000.00613.16
7.3.320.0000.00513.25
7.3.310.0070.00016.35
7.3.300.0030.00316.15
7.3.290.0090.01116.28
7.3.280.0090.00816.31
7.3.270.0150.00417.40
7.3.260.0110.01216.27
7.3.250.0070.01016.42
7.3.240.0100.01316.57
7.3.230.0060.01716.47
7.3.210.0070.01016.37
7.3.200.0060.00916.43
7.3.190.0060.00916.58
7.3.180.0000.01616.11
7.3.170.0070.01416.58
7.3.160.0060.01016.49
7.2.330.0100.00716.49
7.2.320.0080.01216.81
7.2.310.0060.01016.61
7.2.300.0140.00816.52
7.2.290.0090.00816.57
7.2.60.0100.00316.99
7.2.00.0040.00419.43
7.1.200.0030.01015.55
7.1.100.0070.00418.05
7.1.70.0070.00017.20
7.1.60.0140.01020.03
7.1.50.0060.01216.97
7.1.00.0100.07022.48
7.0.200.0150.00414.42
7.0.60.0000.04319.85
7.0.50.0070.08317.82
7.0.40.0030.07720.13
7.0.30.0170.04320.08
7.0.20.0300.07320.24
7.0.10.0270.04020.25
7.0.00.0070.07320.20
5.6.280.0000.05321.11
5.6.210.0200.07320.75
5.6.200.0070.06018.14
5.6.190.0070.06320.61
5.6.180.0000.06320.39
5.6.170.0470.05020.58
5.6.160.0070.07320.42
5.6.150.0030.05018.11
5.6.140.0030.04318.27
5.6.130.0170.07718.11
5.6.120.0030.08721.14
5.6.110.0070.08321.03
5.6.100.0070.07321.14
5.6.90.0030.07721.11
5.6.80.0030.08320.39
5.6.70.0030.03320.28
5.5.350.0000.04720.33
5.5.340.0070.04317.98
5.5.330.0130.07720.56
5.5.320.0330.07720.29
5.5.310.0300.04720.35
5.5.300.0070.07717.97
5.5.290.0070.04717.93
5.5.280.0000.08320.80
5.5.270.0100.04020.76
5.5.260.0100.08720.80
5.5.250.0030.08320.68
5.5.240.0030.06720.29
5.4.450.0500.05319.60
5.4.440.0400.06319.43
5.4.430.0500.05019.47
5.4.420.0530.04719.45
5.4.410.0470.06319.34
5.4.400.0470.05019.15
5.4.390.0400.06019.01
5.4.380.0500.04719.24
5.4.370.0670.04018.99
5.4.360.0400.06018.83
5.4.350.0570.04019.29
5.4.340.0430.05719.36
5.4.320.0400.06019.01
5.4.310.0600.04719.01
5.4.300.0570.05318.98
5.4.290.0470.06019.14
5.4.280.0600.05319.27
5.4.270.0630.04318.97
5.4.260.0400.05719.25
5.4.250.0600.04718.86
5.4.240.0400.06019.23
5.4.230.0500.05719.27
5.4.220.0500.05018.84
5.4.210.0470.05319.14
5.4.200.0530.04719.27
5.4.190.0500.04719.00
5.4.180.0430.05318.83
5.4.170.0670.03019.25
5.4.160.0470.04719.04
5.4.150.0430.06019.23
5.4.140.0400.06016.47
5.4.130.0430.05016.53
5.4.120.0470.05716.31
5.4.110.0600.07716.45
5.4.100.0670.04016.25
5.4.90.0600.04316.41
5.4.80.0530.04016.56
5.4.70.0070.03016.23
5.4.60.0000.07016.51
5.4.50.0030.04716.43
5.4.40.0070.03016.51
5.4.30.0400.05716.27
5.4.20.0230.04016.51
5.4.10.0070.06716.25

preferences:
52.91 ms | 401 KiB | 5 Q