3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class a { private $foo = 'private'; public function printFoo() { var_dump($this->foo); } } class b extends a { public function doIt() { $this->foo = 'set from B'; } } $b = new b(); $b->doIt(); $b->printFoo(); var_dump($b->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.70.0110.00418.43
8.3.60.0130.00418.55
8.3.50.0110.00917.48
8.3.40.0110.00318.84
8.3.30.0060.01218.89
8.3.20.0040.00422.10
8.3.10.0040.00420.20
8.3.00.0080.00022.49
8.2.190.0110.01116.58
8.2.180.0080.00818.66
8.2.170.0110.00322.96
8.2.160.0100.00319.25
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0020.00526.16
8.2.120.0000.00726.16
8.2.110.0100.00719.38
8.2.100.0040.00717.91
8.2.90.0030.00619.46
8.2.80.0000.00817.97
8.2.70.0000.01017.79
8.2.60.0060.00318.09
8.2.50.0080.00018.10
8.2.40.0030.00619.35
8.2.30.0000.00719.20
8.2.20.0040.00418.05
8.2.10.0080.00319.16
8.2.00.0060.00319.17
8.1.280.0150.00025.92
8.1.270.0080.00022.34
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.79
8.1.230.0070.00320.97
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0060.00317.22
8.1.190.0050.00317.11
8.1.180.0000.00818.10
8.1.170.0040.00418.58
8.1.160.0070.00018.73
8.1.150.0040.00418.73
8.1.140.0040.00420.93
8.1.130.0030.00320.03
8.1.120.0000.00717.39
8.1.110.0050.00217.27
8.1.100.0040.00417.36
8.1.90.0040.00417.40
8.1.80.0000.00817.45
8.1.70.0000.00717.22
8.1.60.0040.00417.60
8.1.50.0000.00717.52
8.1.40.0040.00417.54
8.1.30.0040.00417.48
8.1.20.0000.00817.61
8.1.10.0040.00417.55
8.1.00.0030.00617.51
8.0.300.0040.00419.76
8.0.290.0040.00416.71
8.0.280.0040.00418.28
8.0.270.0030.00317.11
8.0.260.0060.00319.91
8.0.250.0040.00416.93
8.0.240.0000.00716.91
8.0.230.0000.00716.77
8.0.220.0000.00716.69
8.0.210.0030.00716.71
8.0.200.0040.00416.80
8.0.190.0030.00316.94
8.0.180.0050.00316.84
8.0.170.0040.00416.87
8.0.160.0070.00016.80
8.0.150.0040.00316.65
8.0.140.0000.00716.71
8.0.130.0000.00613.24
8.0.120.0000.00716.83
8.0.110.0040.00416.64
8.0.100.0040.00416.69
8.0.90.0040.00416.71
8.0.80.0090.01216.84
8.0.70.0050.00316.71
8.0.60.0070.00016.81
8.0.50.0060.00316.79
8.0.30.0030.01617.32
8.0.20.0120.00616.88
8.0.10.0030.00516.98
8.0.00.0060.01216.78
7.4.330.0050.00015.55
7.4.320.0030.00316.44
7.4.300.0030.00316.58
7.4.290.0070.00016.51
7.4.280.0030.00916.58
7.4.270.0000.00716.49
7.4.260.0030.00313.17
7.4.250.0020.00516.46
7.4.240.0000.00716.60
7.4.230.0000.00716.62
7.4.220.0000.00716.51
7.4.210.0070.01116.51
7.4.200.0030.00616.68
7.4.130.0170.00316.57
7.4.120.0040.01516.42
7.4.110.0070.01416.43
7.4.100.0070.01316.41
7.4.90.0080.01516.56
7.4.80.0160.00619.39
7.4.70.0070.01016.47
7.4.60.0040.01816.41
7.4.50.0000.01116.53
7.4.40.0080.01516.44
7.4.00.0110.00614.95
7.3.330.0070.00016.39
7.3.320.0000.00613.25
7.3.310.0030.00316.35
7.3.300.0040.00416.31
7.3.290.0080.00916.30
7.3.260.0090.00916.38
7.3.240.0060.01116.45
7.3.230.0040.01316.43
7.3.210.0130.00316.54
7.3.200.0110.00516.35
7.3.190.0000.01616.48
7.3.180.0100.00616.63
7.3.170.0090.00616.40
7.3.160.0100.00616.59
7.3.120.0030.01414.70
7.3.110.0190.00014.88
7.3.100.0150.00314.80
7.3.90.0070.00714.62
7.3.80.0050.00714.64
7.3.70.0060.00714.51
7.3.60.0040.01014.53
7.3.50.0050.00814.78
7.3.40.0110.00714.63
7.3.30.0120.00314.65
7.3.20.0080.00515.39
7.3.10.0070.00915.53
7.3.00.0110.00415.64
7.2.330.0040.01516.78
7.2.320.0110.00716.66
7.2.310.0070.01016.69
7.2.300.0170.00016.27
7.2.290.0060.01116.65
7.2.250.0030.01314.84
7.2.240.0030.01414.93
7.2.230.0130.00015.04
7.2.220.0060.00814.70
7.2.210.0070.00415.01
7.2.200.0070.00714.59
7.2.190.0010.01014.59
7.2.180.0090.00614.99
7.2.170.0050.01114.86
7.2.160.0050.01314.87
7.2.150.0070.00815.79
7.2.140.0070.00815.70
7.2.130.0050.01015.63
7.2.120.0120.00715.89
7.2.110.0060.01015.72
7.2.100.0090.00715.81
7.2.90.0090.00515.92
7.2.80.0070.00815.56
7.2.70.0070.00715.75
7.2.60.0100.00515.96
7.2.50.0080.00815.88
7.2.40.0060.01115.95
7.2.30.0060.00816.01
7.2.20.0080.00716.03
7.2.10.0060.01015.83
7.2.00.0090.00715.90
7.1.330.0040.01215.60
7.1.320.0070.00714.57
7.1.310.0060.00514.64
7.1.300.0080.00614.80
7.1.290.0180.00314.88
7.1.280.0080.00714.60
7.1.270.0070.00314.72
7.1.260.0020.01314.65
7.1.250.0070.00614.93
7.1.240.0030.01015.41
7.1.230.0030.00715.55
7.1.220.0090.00315.67
7.1.210.0040.01115.36
7.1.200.0060.00315.77
7.1.190.0000.00815.75
7.1.180.0130.00315.52
7.1.170.0030.00615.55
7.1.160.0070.00715.65
7.1.150.0030.01015.45
7.1.140.0050.00315.68
7.1.130.0040.00415.76
7.1.120.0080.00315.76
7.1.110.0000.01315.79
7.1.100.0040.00815.64
7.1.90.0050.00515.61
7.1.80.0030.00615.68
7.1.70.0000.01315.75
7.1.60.0030.00615.54
7.1.50.0140.00015.60
7.1.40.0030.01015.84
7.1.30.0090.00915.50
7.1.20.0070.00715.78
7.1.10.0000.01315.58
7.1.00.0000.01215.52

preferences:
51.72 ms | 401 KiB | 5 Q