3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a = 'public'; protected $_b = 'protected'; private $_c = 'private'; } $method = function (){ $x =& $this; $x = new stdClass; var_dump($this, $this->a);}; $a = new A; $method = $method->bindTo($a, 'A'); $method();

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.0110.00418.31
8.3.50.0130.00722.05
8.3.40.0040.01118.79
8.3.30.0100.00718.66
8.3.20.0080.00018.77
8.3.10.0000.00821.09
8.3.00.0040.00423.71
8.2.180.0060.01516.50
8.2.170.0090.00622.96
8.2.160.0110.00420.19
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00821.13
8.2.110.0060.00320.35
8.2.100.0040.00817.72
8.2.90.0020.00519.22
8.2.80.0030.00619.23
8.2.70.0000.00817.63
8.2.60.0050.00318.04
8.2.50.0000.00918.07
8.2.40.0000.00818.28
8.2.30.0070.00019.50
8.2.20.0060.00317.61
8.2.10.0000.00817.61
8.2.00.0040.00417.56
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00323.98
8.1.230.0060.00620.95
8.1.220.0040.00418.77
8.1.210.0080.00318.88
8.1.200.0030.00617.23
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0080.00018.57
8.1.160.0040.00418.89
8.1.150.0040.00418.66
8.1.140.0040.00417.50
8.1.130.0030.00317.74
8.1.120.0000.00817.32
8.1.110.0020.00517.39
8.1.100.0040.00417.52
8.1.90.0000.00717.48
8.1.80.0040.00417.45
8.1.70.0000.00717.43
8.1.60.0000.00817.59
8.1.50.0000.00717.38
8.1.40.0030.00617.55
8.1.30.0040.00417.63
8.1.20.0000.00817.54
8.1.10.0040.00417.46
8.1.00.0000.00817.50
8.0.300.0060.00319.90
8.0.290.0080.00017.16
8.0.280.0020.00518.29
8.0.270.0000.00817.18
8.0.260.0040.00416.66
8.0.250.0040.00416.85
8.0.240.0070.00016.75
8.0.230.0070.00016.86
8.0.220.0000.00616.79
8.0.210.0070.00016.73
8.0.200.0000.00616.93
8.0.190.0030.00516.99
8.0.180.0000.00816.89
8.0.170.0000.00716.90
8.0.160.0000.00816.77
8.0.150.0040.00416.89
8.0.140.0000.00716.82
8.0.130.0000.00613.31
8.0.120.0030.00616.86
8.0.110.0040.00416.68
8.0.100.0000.00716.86
8.0.90.0040.00416.66
8.0.80.0070.00716.81
8.0.70.0040.00416.84
8.0.60.0040.00416.77
8.0.50.0000.00716.86
8.0.30.0100.00917.12
8.0.20.0130.00617.40
8.0.10.0040.00416.87
8.0.00.0070.01216.84
7.4.330.0000.00516.83
7.4.320.0000.00616.42
7.4.300.0030.00316.48
7.4.290.0070.00016.42
7.4.280.0090.00016.59
7.4.270.0070.00016.58
7.4.260.0000.00513.27
7.4.250.0040.00416.45
7.4.240.0000.00716.35
7.4.230.0070.00016.24
7.4.220.0080.01116.43
7.4.210.0080.01016.54
7.4.200.0050.00316.59
7.4.190.0000.00716.38
7.4.160.0160.00016.48
7.4.150.0030.01517.40
7.4.140.0070.01017.86
7.4.130.0100.00716.58
7.4.120.0080.01016.53
7.4.110.0110.00716.46
7.4.100.0030.01416.56
7.4.90.0120.00616.47
7.4.80.0150.00319.39
7.4.70.0040.01516.52
7.4.60.0030.01316.57
7.4.50.0050.00316.35
7.4.40.0080.00822.77
7.4.30.0060.01316.42
7.4.00.0000.01714.97
7.3.330.0000.00513.05
7.3.320.0000.00513.23
7.3.310.0050.00316.23
7.3.300.0030.00316.20
7.3.290.0060.00916.27
7.3.280.0070.00816.18
7.3.270.0060.01117.40
7.3.260.0110.01018.24
7.3.250.0120.00816.19
7.3.240.0120.00616.47
7.3.230.0160.00016.39
7.3.210.0080.00816.21
7.3.200.0100.00719.39
7.3.190.0060.01816.43
7.3.180.0090.00616.46
7.3.170.0040.01116.43
7.3.160.0050.01116.21
7.3.120.0130.00314.38
7.3.10.0000.01116.41
7.3.00.0030.00716.32
7.2.330.0070.01116.88
7.2.320.0110.00716.55
7.2.310.0150.00416.68
7.2.300.0060.01216.46
7.2.290.0060.01116.34
7.2.130.0060.00316.87
7.2.120.0070.00716.58
7.2.110.0070.01316.85
7.2.100.0130.01617.04
7.2.90.0080.01216.50
7.2.80.0150.00916.88
7.2.70.0130.01016.45
7.2.60.0060.00716.87
7.2.50.0110.00416.94
7.2.40.0090.00616.58
7.2.30.0070.00716.85
7.2.20.0040.01116.92
7.2.10.0100.00716.54
7.2.00.0020.00918.18
7.1.250.0090.00915.26
7.1.200.0080.00315.83
7.1.70.0030.00317.08
7.1.60.0070.01117.06
7.1.50.0230.01334.93
7.1.00.0070.03322.36
7.0.200.0090.00616.37
7.0.140.0100.06722.05
7.0.70.0030.04321.66
7.0.60.0030.04721.79
7.0.50.0030.08722.14
7.0.40.0000.06720.09
7.0.30.0030.06320.11
7.0.20.0030.07720.17
7.0.10.0030.05720.10
7.0.00.0130.08720.09
5.6.280.0070.07020.99
5.6.220.0000.04020.60
5.6.210.0030.03720.68
5.6.200.0130.07021.07
5.6.190.0030.09021.08
5.6.180.0030.08721.14
5.6.170.0030.08321.06
5.6.160.0100.04321.10
5.6.150.0000.08720.96
5.6.140.0070.08720.99
5.6.130.0030.08721.05
5.6.120.0130.06321.00
5.6.110.0030.09320.95
5.6.100.0070.08021.06
5.6.90.0000.09021.07
5.6.80.0070.05020.41
5.6.70.0100.07320.47
5.6.60.0000.08720.45
5.6.50.0000.08720.40
5.6.40.0030.08020.37
5.6.30.0130.07320.47
5.6.20.0070.07720.31
5.6.10.0030.08020.43
5.6.00.0070.08020.34
5.5.360.0000.04020.51
5.5.350.0030.08720.38
5.5.340.0130.06720.80
5.5.330.0030.08320.92
5.5.320.0000.08720.77
5.5.310.0030.05720.82
5.5.300.0070.08020.77
5.5.290.0030.09720.84
5.5.280.0100.08320.61
5.5.270.0100.07320.79
5.5.260.0030.08720.82
5.5.250.0070.08020.54
5.5.240.0030.08320.32
5.5.230.0100.07320.14
5.5.220.0030.08320.02
5.5.210.0030.07020.27
5.5.200.0100.06320.09
5.5.190.0000.07320.23
5.5.180.0030.08320.00
5.5.160.0030.07319.98
5.5.150.0070.06020.13
5.5.140.0030.05020.27
5.5.130.0030.06720.25
5.5.120.0100.06720.27
5.5.110.0070.07720.27
5.5.100.0070.07720.10
5.5.90.0000.06720.10
5.5.80.0070.07720.13
5.5.70.0100.07320.11
5.5.60.0070.07720.09
5.5.50.0070.07720.05
5.5.40.0000.08720.16
5.5.30.0100.04720.08
5.5.20.0100.03320.11
5.5.10.0030.07319.97
5.5.00.0030.08020.09
5.4.450.0130.07019.56
5.4.440.0000.08719.37
5.4.430.0070.07319.45
5.4.420.0030.06019.44
5.4.410.0070.04319.24
5.4.400.0030.08019.13
5.4.390.0130.07319.13
5.4.380.0070.05719.03
5.4.370.0030.07718.87
5.4.360.0070.06319.12
5.4.350.0030.07719.21
5.4.340.0000.07019.12
5.4.320.0030.06719.10
5.4.310.0030.07718.85
5.4.300.0100.07319.12
5.4.290.0030.08019.18
5.4.280.0000.08718.84
5.4.270.0100.06019.13
5.4.260.0000.08018.94
5.4.250.0070.05719.09
5.4.240.0130.07019.13
5.4.230.0000.05019.05
5.4.220.0030.05019.13
5.4.210.0030.07018.88
5.4.200.0070.06319.20
5.4.190.0000.07719.11
5.4.180.0070.07719.02
5.4.170.0000.08019.02
5.4.160.0030.05319.11
5.4.150.0000.05719.01
5.4.140.0030.04016.48
5.4.130.0000.05316.45
5.4.120.0000.07316.19
5.4.110.0100.05016.47
5.4.100.0000.07016.50
5.4.90.0000.08016.31
5.4.80.0000.07316.42
5.4.70.0030.07316.45
5.4.60.0000.05316.34
5.4.50.0070.05716.24
5.4.40.0000.06016.54
5.4.30.0000.04016.40
5.4.20.0070.05016.47
5.4.10.0000.05716.33
5.4.00.0100.03715.86
5.3.290.0030.04014.64
5.3.280.0030.06714.58
5.3.270.0030.07314.63
5.3.260.0000.08314.57
5.3.250.0000.05014.62
5.3.240.0070.07714.72
5.3.230.0030.05714.61
5.3.220.0100.06714.62
5.3.210.0000.06714.63
5.3.200.0030.05014.57
5.3.190.0030.04314.63
5.3.180.0000.05014.66
5.3.170.0100.06314.70
5.3.160.0030.03714.65
5.3.150.0030.05014.54
5.3.140.0000.04014.50
5.3.130.0070.07014.68
5.3.120.0070.07014.66
5.3.110.0030.08014.46
5.3.100.0030.05314.03
5.3.90.0000.05013.94
5.3.80.0000.08714.15
5.3.70.0100.05314.12
5.3.60.0030.07013.93
5.3.50.0030.07713.87
5.3.40.0070.07313.84
5.3.30.0030.06714.00
5.3.20.0030.07013.75
5.3.10.0070.06313.55
5.3.00.0070.07013.65
5.2.170.0030.06313.21
5.2.160.0030.05313.21
5.2.150.0000.05313.21
5.2.140.0030.06313.21
5.2.130.0030.05713.21
5.2.120.0000.05313.21
5.2.110.0000.06013.21
5.2.100.0030.06013.21
5.2.90.0030.05313.21
5.2.80.0030.06313.21
5.2.70.0030.05313.21
5.2.60.0100.03013.21
5.2.50.0030.05713.21
5.2.40.0000.04713.21
5.2.30.0070.06313.21
5.2.20.0100.05313.21
5.2.10.0070.05313.21
5.2.00.0030.06313.21
5.1.60.0030.05313.21
5.1.50.0030.05713.21
5.1.40.0100.04313.21
5.1.30.0000.04713.21
5.1.20.0000.06013.21
5.1.10.0030.04713.21
5.1.00.0030.05313.21
5.0.50.0000.03713.21
5.0.40.0000.02713.21
5.0.30.0000.06713.21
5.0.20.0070.03313.21
5.0.10.0030.04313.21
5.0.00.0000.05013.21
4.4.90.0000.02013.21
4.4.80.0000.02713.21
4.4.70.0070.03013.21
4.4.60.0000.03713.21
4.4.50.0030.03313.21
4.4.40.0000.04313.21
4.4.30.0030.03313.21
4.4.20.0000.03313.21
4.4.10.0000.03713.21
4.4.00.0030.04013.21
4.3.110.0000.03713.21
4.3.100.0030.03313.21
4.3.90.0000.03013.21
4.3.80.0030.05313.21
4.3.70.0000.02313.21
4.3.60.0000.02313.21
4.3.50.0030.03313.21
4.3.40.0030.05313.21
4.3.30.0030.03013.21
4.3.20.0000.04013.21
4.3.10.0000.03713.21
4.3.00.0000.03713.21

preferences:
47.27 ms | 400 KiB | 5 Q