3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait PublicPropertyDeprecationTrait { public function accessPrivateProperty() { return $this->deprecatedPublicProperties['property']; } } class Foo { use PublicPropertyDeprecationTrait; private $deprecatedPublicProperties = [ 'property' => 'Foo', ]; } class Bar extends Foo { private $deprecatedPublicProperties = [ 'property' => 'Bar', ]; } $b = new Bar(); echo $b->accessPrivateProperty();

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.40.0080.00818.54
8.3.30.0040.01118.80
8.3.20.0030.00618.82
8.3.10.0050.00320.90
8.3.00.0040.00423.40
8.2.170.0090.00619.13
8.2.160.0070.00722.96
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0030.00521.11
8.2.120.0070.00026.35
8.2.110.0060.00321.12
8.2.100.0030.00718.03
8.2.90.0040.00419.41
8.2.80.0030.00517.97
8.2.70.0030.00618.03
8.2.60.0080.00018.05
8.2.50.0040.00418.10
8.2.40.0040.00419.47
8.2.30.0040.00419.61
8.2.20.0040.00718.11
8.2.10.0080.00019.78
8.2.00.0040.00419.45
8.1.270.0080.00022.15
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00019.27
8.1.230.0120.00017.77
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00317.23
8.1.190.0040.00417.00
8.1.180.0000.00918.10
8.1.170.0060.00618.41
8.1.160.0030.00718.82
8.1.150.0000.00718.80
8.1.140.0000.00717.80
8.1.130.0000.00717.50
8.1.120.0070.00017.46
8.1.110.0000.00717.41
8.1.100.0040.00417.49
8.1.90.0030.00617.34
8.1.80.0040.00417.35
8.1.70.0030.00517.52
8.1.60.0080.00017.63
8.1.50.0120.00017.54
8.1.40.0030.00617.52
8.1.30.0000.00817.69
8.1.20.0030.00517.64
8.1.10.0000.00817.64
8.1.00.0000.00717.39
8.0.300.0000.00918.83
8.0.290.0040.00416.75
8.0.280.0000.00718.47
8.0.270.0070.00017.18
8.0.260.0030.00316.79
8.0.250.0040.00416.94
8.0.240.0000.00716.91
8.0.230.0000.00716.91
8.0.220.0100.00016.89
8.0.210.0000.00816.75
8.0.200.0000.00816.96
8.0.190.0040.00416.93
8.0.180.0040.00416.90
8.0.170.0030.00616.86
8.0.160.0030.00317.01
8.0.150.0070.00016.84
8.0.140.0070.00016.79
8.0.130.0030.00313.32
8.0.120.0040.00416.86
8.0.110.0050.00316.87
8.0.100.0070.00016.77
8.0.90.0050.00316.93
8.0.80.0050.01116.84
8.0.70.0030.00516.90
8.0.60.0070.00016.77
8.0.50.0000.00716.69
8.0.30.0090.01017.08
8.0.20.0120.01017.40
8.0.10.0040.00417.07
8.0.00.0080.00916.71
7.4.330.0050.00015.55
7.4.320.0030.00316.40
7.4.300.0030.00316.50
7.4.290.0030.00316.59
7.4.280.0080.00016.54
7.4.270.0070.00416.60
7.4.260.0000.00716.44
7.4.250.0000.00716.51
7.4.240.0040.00416.63
7.4.230.0000.00716.71
7.4.220.0000.00816.67
7.4.210.0100.00916.54
7.4.200.0030.00516.38
7.4.160.0120.00616.46
7.4.140.0100.00917.86
7.4.130.0150.00416.63
7.4.120.0110.00816.51
7.4.110.0140.00416.46
7.4.100.0080.00916.39
7.4.90.0140.00316.41
7.4.80.0070.01619.39
7.4.70.0040.01416.55
7.4.60.0100.00616.46
7.4.50.0100.00716.49
7.4.40.0080.01116.63
7.4.00.0050.01014.96
7.3.330.0030.00313.29
7.3.320.0000.00613.28
7.3.310.0070.00016.37
7.3.300.0060.00016.38
7.3.290.0070.00016.37
7.3.280.0090.01216.41
7.3.260.0120.01016.45
7.3.240.0090.00916.40
7.3.230.0110.01016.23
7.3.210.0110.00716.59
7.3.200.0070.01016.50
7.3.190.0100.00716.35
7.3.180.0060.00916.26
7.3.170.0080.00816.40
7.3.160.0100.00716.37
7.3.120.0080.00914.91
7.3.110.0140.00414.52
7.3.100.0030.01014.93
7.3.90.0000.01714.88
7.3.80.0070.00714.80
7.3.70.0040.01214.71
7.3.60.0000.01514.55
7.3.50.0110.00714.80
7.3.40.0060.00614.74
7.3.30.0080.00414.69
7.3.20.0060.00916.61
7.3.10.0110.00716.45
7.3.00.0140.00016.79
7.2.330.0060.01216.68
7.2.320.0110.00816.31
7.2.310.0120.01216.77
7.2.300.0060.01316.56
7.2.290.0090.01216.81
7.2.250.0070.01414.96
7.2.240.0000.01515.22
7.2.230.0080.00415.22
7.2.220.0030.00714.94
7.2.210.0040.01415.10
7.2.200.0070.00715.04
7.2.190.0030.01414.91
7.2.180.0030.00714.84
7.2.170.0060.00615.09
7.2.80.0000.00916.65
7.2.70.0480.00814.99
7.2.60.0340.01015.00
7.2.50.0430.00714.90
7.2.40.0500.00615.10
7.2.30.0450.00915.11
7.2.20.0450.00714.99
7.2.10.0400.00814.98
7.2.00.0430.00914.92
7.1.330.0120.00315.68
7.1.320.0090.00615.76
7.1.310.0040.01215.79
7.1.300.0030.01315.69
7.1.290.0030.01015.67
7.1.280.0030.00715.71
7.1.270.0050.00615.71
7.1.260.0080.00815.57
7.1.200.0070.00715.88
7.1.170.0430.00913.67
7.1.160.0510.01013.79
7.1.150.0360.00713.71
7.1.140.0460.01013.89
7.1.130.0470.00713.90
7.1.120.0430.00613.74
7.1.110.0360.01013.76
7.1.100.0340.01013.88
7.1.90.0400.00613.71
7.1.80.0450.00513.64
7.1.70.0250.01013.61
7.1.60.0420.01031.77
7.1.50.0390.01131.71
7.1.40.0440.01031.74
7.1.30.0470.01031.69
7.1.20.0670.01031.76
7.1.10.0200.00713.81
7.1.00.0190.00713.84
7.0.300.0380.00713.32
7.0.290.0550.00013.49
7.0.270.0530.00313.38
7.0.260.0500.00413.41
7.0.250.0500.00313.43
7.0.240.0410.00913.64
7.0.230.0510.00613.59
7.0.220.0440.00913.53
7.0.210.0300.01013.49
7.0.200.0420.00713.44
7.0.190.1760.00813.55
7.0.180.0320.00413.26
7.0.170.0290.00913.54
7.0.160.0250.01013.50
7.0.150.0280.00713.58
7.0.140.0220.00913.51
7.0.130.0230.00713.30
7.0.120.0250.00513.32
7.0.110.0180.01113.60
7.0.100.0230.00713.52
7.0.90.0280.00313.45
7.0.80.0230.00513.53
7.0.70.0240.00913.44
7.0.60.0230.01013.45
7.0.50.0260.00613.64
7.0.40.0220.01213.53
7.0.30.0220.00813.52
7.0.20.0170.01213.48
7.0.10.0230.01113.55
7.0.00.0220.00813.62
5.6.300.0090.00614.39
5.6.290.0090.01014.18
5.6.280.0110.00814.27
5.6.270.0150.00414.38
5.6.260.0100.00814.54
5.6.250.0160.00314.27
5.6.240.0110.00714.36
5.6.230.0090.00914.34
5.6.220.0080.01014.48
5.6.210.0160.00414.18
5.6.200.0140.00614.40
5.6.190.0130.00714.26
5.6.180.0130.00914.25
5.6.170.0090.01014.32
5.6.160.0140.00914.31
5.6.150.0120.01014.37
5.6.140.0090.01214.44
5.6.130.0150.00514.33
5.6.120.0090.01114.27
5.6.110.0060.01314.04
5.6.100.0110.01014.43
5.6.90.0130.00514.29
5.6.80.0140.00914.26
5.6.70.0120.00814.50
5.6.60.0120.00914.13
5.6.50.0150.00714.14
5.6.40.0160.00414.18
5.6.30.0110.00914.42
5.6.20.0140.00414.27
5.6.10.0110.00614.17
5.6.00.0130.00614.24
5.5.380.0100.00411.01
5.5.370.0090.00611.10
5.5.360.0130.00411.24
5.5.350.0050.00911.26
5.5.340.0070.00711.03
5.5.330.0120.00411.15
5.5.320.0120.00511.09
5.5.310.0120.00311.38
5.5.300.0140.00211.09
5.5.290.0090.00511.33
5.5.280.0070.00711.10
5.5.270.0100.00411.38
5.5.260.0120.00411.38
5.5.250.0090.00811.25
5.5.240.0110.00311.17
5.5.230.0080.00711.28
5.5.220.0110.00411.02
5.5.210.0070.00911.21
5.5.200.0080.00611.22
5.5.190.0110.00611.12
5.5.180.0060.00711.20
5.5.160.0080.00611.11
5.5.150.0130.00311.06
5.5.140.0100.00510.98
5.5.130.0100.00611.19
5.5.120.0130.00311.29
5.5.110.0100.00511.15
5.5.100.0080.00811.09
5.5.90.0090.00411.15
5.5.80.0080.00811.17
5.5.70.0100.00411.13
5.5.60.0110.00310.97
5.5.50.0090.00811.22
5.5.40.0070.00710.97
5.5.30.0100.00210.81
5.5.20.0060.00611.05
5.5.10.0110.00211.05
5.5.00.0060.00710.70
5.4.450.0070.00811.13
5.4.440.0080.00610.95
5.4.430.0100.00411.00
5.4.420.0090.00610.99
5.4.410.0110.00511.05
5.4.400.0070.00610.95
5.4.390.0080.00510.87
5.4.380.0070.00611.03
5.4.370.0110.00311.10
5.4.360.0100.00711.00
5.4.350.0090.00711.05
5.4.340.0060.00710.91
5.4.320.0120.00411.00
5.4.310.0090.00711.15
5.4.300.0080.00511.15
5.4.290.0100.00410.87
5.4.280.0050.00810.95
5.4.270.0080.00611.23
5.4.260.0100.00511.15
5.4.250.0100.00610.96
5.4.240.0130.00210.76
5.4.230.0100.00310.95
5.4.220.0060.00910.98
5.4.210.0120.00311.06
5.4.200.0090.00310.98
5.4.190.0090.00711.00
5.4.180.0060.00810.99
5.4.170.0090.00411.02
5.4.160.0090.00611.04
5.4.150.0060.00710.97
5.4.140.0110.00210.92
5.4.130.0110.00111.03
5.4.120.0090.00411.19
5.4.110.0040.00810.85
5.4.100.0110.00311.07
5.4.90.0080.00411.15
5.4.80.0090.00411.04
5.4.70.0050.00810.97
5.4.60.0100.00410.94
5.4.50.0110.00411.20
5.4.40.0070.00610.98
5.4.30.0020.01210.95
5.4.20.0090.00411.22
5.4.10.0130.00211.00
5.4.00.0100.00411.18
5.3.290.0090.00410.17
5.3.280.0060.00610.09
5.3.270.0070.00510.17
5.3.260.0080.00510.19
5.3.250.0080.00410.13
5.3.240.0080.00410.00
5.3.230.0090.00410.09
5.3.220.0090.0049.97
5.3.210.0090.00310.14
5.3.200.0090.00410.09
5.3.190.0080.00410.07
5.3.180.0070.00910.17
5.3.170.0080.00510.19
5.3.160.0050.00710.31
5.3.150.0070.00610.12
5.3.140.0080.00510.18
5.3.130.0070.00710.15
5.3.120.0110.00410.25
5.3.110.0140.00010.19
5.3.100.0060.00610.13
5.3.90.0060.00610.33
5.3.80.0090.00410.05
5.3.70.0080.00410.19
5.3.60.0040.00710.10
5.3.50.0100.00410.11
5.3.40.0090.00310.13
5.3.30.0070.00610.10
5.3.20.0070.00610.10
5.3.10.0110.0019.89
5.3.00.0090.0059.85
5.2.170.0050.0059.06
5.2.160.0070.0039.29
5.2.150.0060.0069.17
5.2.140.0110.0009.20
5.2.130.0080.0029.18
5.2.120.0000.0119.15
5.2.110.0080.0039.12
5.2.100.0080.0039.19
5.2.90.0060.0039.21
5.2.80.0080.0029.01
5.2.70.0070.0039.21
5.2.60.0070.0029.08
5.2.50.0000.0129.20
5.2.40.0060.0049.23
5.2.30.0060.0068.99
5.2.20.0060.0068.72
5.2.10.0090.0018.81
5.2.00.0070.0038.92
5.1.60.0080.0038.57
5.1.50.0090.0008.57
5.1.40.0050.0048.57
5.1.30.0090.0008.57
5.1.20.0110.0008.57
5.1.10.0080.0028.57
5.1.00.0060.0038.57
5.0.50.0040.0038.57
5.0.40.0070.0028.57
5.0.30.0040.0048.57
5.0.20.0000.0078.57
5.0.10.0050.0038.57
5.0.00.0090.0008.57
4.4.90.0050.0028.57
4.4.80.0030.0038.57
4.4.70.0020.0048.57
4.4.60.0020.0048.57
4.4.50.0060.0018.57
4.4.40.0030.0038.57
4.4.30.0030.0038.57
4.4.20.0040.0038.57
4.4.10.0040.0028.57
4.4.00.0050.0018.57
4.3.110.0030.0048.57
4.3.100.0040.0048.57
4.3.90.0040.0038.57
4.3.80.0060.0018.57
4.3.70.0010.0068.57
4.3.60.0030.0038.57
4.3.50.0040.0028.57
4.3.40.0040.0038.57
4.3.30.0000.0058.57
4.3.20.0030.0038.57
4.3.10.0030.0038.57
4.3.00.0000.0058.57

preferences:
59.81 ms | 400 KiB | 5 Q