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, $x);}; $a = new A; $method = $method->bindTo($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.0090.01218.27
8.3.50.0120.00722.05
8.3.40.0110.00418.93
8.3.30.0030.01418.70
8.3.20.0090.00018.79
8.3.10.0000.00921.11
8.3.00.0080.00021.90
8.2.180.0120.00618.54
8.2.170.0080.00822.96
8.2.160.0000.01420.35
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00221.18
8.2.110.0100.00020.38
8.2.100.0120.00017.91
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0050.00517.38
8.2.60.0080.00018.04
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0000.00821.28
8.2.20.0040.00417.58
8.2.10.0050.00317.61
8.2.00.0030.00617.61
8.1.280.0060.01625.92
8.1.270.0080.00023.99
8.1.260.0090.00926.35
8.1.250.0040.00428.09
8.1.240.0040.00722.33
8.1.230.0080.00320.95
8.1.220.0040.00418.77
8.1.210.0090.00018.93
8.1.200.0030.00617.25
8.1.190.0030.00517.54
8.1.180.0080.00018.10
8.1.170.0000.00818.59
8.1.160.0000.00718.93
8.1.150.0040.00418.64
8.1.140.0030.00617.41
8.1.130.0000.00817.82
8.1.120.0080.00017.43
8.1.110.0060.00317.52
8.1.100.0030.00417.44
8.1.90.0050.00317.49
8.1.80.0040.00417.51
8.1.70.0070.00017.46
8.1.60.0030.00617.60
8.1.50.0050.00217.39
8.1.40.0050.00217.50
8.1.30.0080.00017.54
8.1.20.0080.00017.50
8.1.10.0000.00717.56
8.1.00.0030.00817.58
8.0.300.0040.00420.04
8.0.290.0040.00417.04
8.0.280.0000.00718.37
8.0.270.0030.00317.05
8.0.260.0000.00816.67
8.0.250.0000.00716.84
8.0.240.0090.00016.88
8.0.230.0000.00716.88
8.0.220.0040.00416.81
8.0.210.0040.00416.64
8.0.200.0000.00616.90
8.0.190.0000.00716.99
8.0.180.0040.00416.92
8.0.170.0030.00516.89
8.0.160.0000.00716.76
8.0.150.0000.00716.86
8.0.140.0000.00716.74
8.0.130.0000.00613.31
8.0.120.0050.00316.86
8.0.110.0040.00416.70
8.0.100.0000.00716.75
8.0.90.0000.00716.79
8.0.80.0100.01016.93
8.0.70.0050.00216.67
8.0.60.0080.00016.91
8.0.50.0040.00416.79
8.0.30.0080.01017.02
8.0.20.0110.01117.40
8.0.10.0070.00017.07
8.0.00.0100.00816.57
7.4.330.0000.00516.83
7.4.320.0060.00016.63
7.4.300.0030.00316.47
7.4.290.0030.00316.48
7.4.280.0070.00016.58
7.4.270.0000.00816.50
7.4.260.0050.00013.37
7.4.250.0000.00816.37
7.4.240.0070.00016.60
7.4.230.0070.00016.54
7.4.220.0100.00716.43
7.4.210.0100.00816.56
7.4.200.0070.00016.44
7.4.190.0000.00716.40
7.4.160.0090.01216.45
7.4.150.0070.01017.40
7.4.140.0100.01017.86
7.4.130.0150.00316.60
7.4.120.0070.01216.39
7.4.110.0100.00616.42
7.4.100.0130.00416.51
7.4.90.0140.00316.25
7.4.80.0090.00919.39
7.4.70.0070.01116.56
7.4.60.0120.00616.53
7.4.50.0040.00416.34
7.4.40.0030.00622.77
7.4.30.0090.00616.57
7.4.00.0070.00914.91
7.3.330.0000.00613.16
7.3.320.0030.00312.99
7.3.310.0030.00316.25
7.3.300.0030.00316.09
7.3.290.0070.00716.23
7.3.280.0060.01116.24
7.3.270.0090.01317.40
7.3.260.0090.01018.24
7.3.250.0170.00316.34
7.3.240.0100.00716.18
7.3.230.0090.01216.39
7.3.210.0100.00716.66
7.3.200.0060.01519.39
7.3.190.0120.00616.18
7.3.180.0030.01416.17
7.3.170.0160.00016.57
7.3.160.0030.01316.23
7.3.120.0090.00614.79
7.3.110.0040.01114.73
7.3.100.0120.00314.90
7.3.90.0000.00914.75
7.3.80.0070.00714.59
7.3.70.0070.01014.81
7.3.60.0040.01114.84
7.3.50.0050.00514.65
7.3.40.0000.01214.85
7.3.30.0030.00714.94
7.3.20.0000.01116.48
7.3.10.0100.00316.51
7.3.00.0030.01016.72
7.2.330.0100.01016.42
7.2.320.0120.00616.55
7.2.310.0060.01616.29
7.2.300.0090.01316.76
7.2.290.0100.00716.66
7.2.250.0060.01215.20
7.2.240.0100.01014.75
7.2.230.0070.00714.83
7.2.220.0100.00014.99
7.2.210.0040.01115.04
7.2.200.0060.01215.16
7.2.190.0030.01215.11
7.2.180.0100.00714.98
7.2.170.0100.00715.02
7.2.60.0090.00616.87
7.2.00.0090.00319.55
7.1.330.0030.01015.65
7.1.320.0100.00015.82
7.1.310.0080.00415.98
7.1.300.0080.00415.56
7.1.290.0060.00615.61
7.1.280.0130.00315.93
7.1.270.0000.01115.78
7.1.260.0060.00815.68
7.1.200.0070.00715.61
7.1.100.0000.01218.00
7.1.70.0000.00717.14
7.1.60.0090.00919.08
7.1.50.0230.01334.95
7.1.00.0030.03322.40
7.0.200.0030.00716.70
7.0.140.0030.07322.23
7.0.60.0100.08020.05
7.0.50.0070.08017.98
7.0.40.0030.06320.21
7.0.30.0300.07020.08
7.0.20.0270.04320.23
7.0.10.0070.05720.33
7.0.00.0070.06720.12
5.6.280.0000.07320.86
5.6.210.0130.07720.77
5.6.200.0100.04318.26
5.6.190.0130.08320.41
5.6.180.0370.08020.51
5.6.170.0170.04320.47
5.6.160.0130.07020.55
5.6.150.0100.07018.20
5.6.140.0070.08718.24
5.6.130.0100.03718.16
5.6.120.0000.05021.02
5.6.110.0070.07021.01
5.6.100.0100.08020.97
5.6.90.0130.08020.97
5.6.80.0130.07720.39
5.5.350.0300.07020.53
5.5.340.0030.06718.05
5.5.330.0170.05720.31
5.5.320.0370.05320.41
5.5.310.0070.05020.32
5.5.300.0100.07317.95
5.5.290.0030.08318.00
5.5.280.0030.08020.96
5.5.270.0000.06020.89
5.5.260.0100.06720.66
5.5.250.0070.07020.71
5.5.240.0000.08720.27
5.4.450.3600.04019.20
5.4.440.3270.04719.57
5.4.430.3830.03019.47
5.4.420.3470.04319.46
5.4.410.3870.04319.18
5.4.400.3700.03019.25
5.4.390.3530.03318.86
5.4.380.2930.04018.87
5.4.370.3400.03318.95
5.4.360.3330.03719.22
5.4.350.3530.04319.09
5.4.340.2500.04019.09
5.4.320.3630.03718.99
5.4.310.3500.03719.13
5.4.300.3500.03319.09
5.4.290.3600.03719.08
5.4.280.3630.04019.18
5.4.270.3400.03319.06
5.4.260.3570.04319.19
5.4.250.3670.03718.86
5.4.240.3630.04019.22
5.4.230.3370.03719.13
5.4.220.3600.03319.21
5.4.210.3370.03319.21
5.4.200.3670.03318.98
5.4.190.3600.03719.07
5.4.180.3600.03719.19
5.4.170.3300.03718.87
5.4.160.3730.02719.19
5.4.150.3570.04319.14
5.4.140.3170.03716.32
5.4.130.2900.03716.38
5.4.120.2170.03716.40
5.4.110.3330.04716.56
5.4.100.3430.03316.54
5.4.90.3170.03316.40
5.4.80.3270.03716.44
5.4.70.3430.03016.54
5.4.60.3370.03016.34
5.4.50.3300.03016.51
5.4.40.3830.04016.43
5.4.30.3530.03716.42
5.4.20.3600.03316.42
5.4.10.4000.04316.53
5.4.00.3500.03715.95
5.3.290.3670.03014.57
5.3.280.3530.04014.50
5.3.270.3570.04014.77
5.3.260.3730.04014.50
5.3.250.3900.04014.60
5.3.240.3170.04314.68
5.3.230.2700.04314.68
5.3.220.3400.03714.54
5.3.210.2930.04014.53
5.3.200.3300.04014.55
5.3.190.2900.03714.46
5.3.180.3270.03714.78
5.3.170.3100.03014.55
5.3.160.3100.03714.48
5.3.150.3300.03314.47
5.3.140.3370.04014.45
5.3.130.4200.03714.62
5.3.120.3670.03714.54
5.3.110.3430.04014.66
5.3.100.3970.04014.27
5.3.90.3700.03714.08
5.3.80.3870.04713.93
5.3.70.3470.04714.17
5.3.60.3600.04014.05
5.3.50.3500.03314.00
5.3.40.1170.04014.03
5.3.30.0100.05313.99
5.3.20.2870.04713.86
5.3.10.4000.04313.58
5.3.00.3700.03013.80
5.2.170.2770.03011.10
5.2.160.2930.02311.30
5.2.150.0070.06311.15
5.2.140.0100.03011.30
5.2.130.3570.02711.01
5.2.120.3500.03711.03
5.2.110.3100.02311.03
5.2.100.3070.03011.14
5.2.90.3130.03311.02
5.2.80.3170.04010.95
5.2.70.3170.03011.06
5.2.60.3000.03010.95
5.2.50.3000.03011.02
5.2.40.2570.02311.14
5.2.30.2200.02710.87
5.2.20.2370.02311.05
5.2.10.2500.03010.90
5.2.00.2430.03010.61
5.1.60.2330.0239.97
5.1.50.2570.01710.07
5.1.40.2530.0209.89
5.1.30.3030.02310.44
5.1.20.1100.02710.32
5.1.10.0000.0339.98
5.1.00.0100.02310.19
5.0.50.0030.0438.63
5.0.40.0030.0308.38
5.0.30.1300.0338.12
5.0.20.1200.0238.18
5.0.10.1370.0278.06
5.0.00.1170.0308.32
4.4.90.1370.0175.82
4.4.80.1300.0235.78
4.4.70.1370.0175.88
4.4.60.1370.0175.84
4.4.50.1100.0175.89
4.4.40.1130.0205.79
4.4.30.1300.0175.92
4.4.20.0030.0205.95
4.4.10.0030.0375.82
4.4.00.0030.0535.94
4.3.110.0900.0135.76
4.3.100.1270.0175.85
4.3.90.1400.0175.72
4.3.80.1230.0235.77
4.3.70.1330.0175.83
4.3.60.1470.0175.74
4.3.50.1470.0175.71
4.3.40.1330.0275.71
4.3.30.0730.0205.21
4.3.20.0900.0235.21
4.3.10.0800.0235.21
4.3.00.0870.0175.21

preferences:
59.14 ms | 401 KiB | 5 Q