3v4l.org

run code in 200+ PHP versions simultaneously
<?php class Foo { private $bar; public static function make() { $foo = new static; $foo->bar = 'Hello World!'; return $foo; } public function getBar() { return $this->bar; } } var_dump(Foo::make()->getBar());
based on nDDLU

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)
7.4.00.0070.00814.68
7.4.0rc60.0070.00914.66
7.4.0rc50.0100.00614.80
7.4.0rc40.0080.00814.77
7.4.0rc30.0080.00914.79
7.4.0rc20.0070.00914.73
7.4.0rc10.0070.00914.81
7.4.0beta40.0110.00514.80
7.4.0beta20.0090.00814.81
7.4.0beta10.0080.00814.71
7.4.0alpha30.0080.00914.82
7.4.0alpha20.0090.00814.93
7.4.0alpha10.0080.00914.98
7.3.120.0080.00814.75
7.3.110.0070.00814.70
7.3.100.0070.00814.74
7.3.90.0080.00714.73
7.3.80.0070.00814.62
7.3.70.0080.00814.64
7.3.60.0080.00814.62
7.3.50.0070.00714.66
7.3.40.0090.00714.59
7.3.30.0090.00814.63
7.3.20.0100.00714.74
7.3.10.0110.00814.77
7.3.00.0120.00714.84
7.2.250.0080.00814.86
7.2.240.0100.00714.92
7.2.230.0080.00814.91
7.2.220.0050.01114.90
7.2.210.0070.00914.92
7.2.200.0070.01014.82
7.2.190.0080.00914.82
7.2.180.0080.00814.82
7.2.170.0090.00814.84
7.2.160.0080.00814.93
7.2.150.0090.00914.91
7.2.140.0100.00814.98
7.2.130.0090.00814.94
7.2.120.0110.00714.98
7.2.110.0090.00814.87
7.2.100.0090.00814.89
7.2.90.0100.00715.02
7.2.80.0110.00714.90
7.2.70.0090.00914.92
7.2.60.0090.00714.91
7.2.50.0090.01014.93
7.2.40.0100.00714.97
7.2.30.0100.00714.96
7.2.20.0090.00914.95
7.2.10.0090.00815.05
7.2.00.0120.00614.91
7.1.330.0070.00813.91
7.1.320.0070.00913.91
7.1.310.0100.00713.91
7.1.300.0080.00813.83
7.1.290.0080.00813.83
7.1.280.0100.00513.92
7.1.270.0090.00713.87
7.1.260.0070.00813.82
7.1.250.0110.00913.73
7.1.240.0060.00913.41
7.1.230.0030.01013.77
7.1.220.0080.01113.58
7.1.210.0110.00413.77
7.1.200.0060.01213.58
7.1.190.0150.00013.76
7.1.180.0050.00813.47
7.1.170.0220.00013.56
7.1.160.0040.01113.70
7.1.150.0060.00913.69
7.1.140.0070.00713.60
7.1.130.0090.00613.71
7.1.120.0070.01413.69
7.1.110.0100.01013.42
7.1.100.0080.00813.73
7.1.90.0090.01213.64
7.1.80.0090.00613.69
7.1.70.0000.01513.70
7.1.60.0070.00713.86
7.1.50.0110.00413.87
7.1.40.0050.01213.71
7.1.30.0050.01513.44
7.1.20.0080.00813.74
7.1.10.0060.00913.70
7.1.00.0040.01813.54
7.0.330.0090.00913.17
7.0.320.0170.00013.14
7.0.310.0120.00913.54
7.0.300.0100.00613.20
7.0.290.0130.00313.55
7.0.280.0140.00313.16
7.0.270.0110.00612.72
7.0.260.0060.01213.15
7.0.250.0100.01013.22
7.0.240.0060.01413.29
7.0.230.0090.00913.07
7.0.220.0070.01413.41
7.0.210.0160.00013.25
7.0.200.0040.01213.17
7.0.190.0140.00312.88
7.0.180.0110.00713.09
7.0.170.0270.00713.09
7.0.160.0030.01613.02
7.0.150.0070.01013.33
7.0.140.0120.00812.85
7.0.130.0120.00313.35
7.0.120.0120.00413.14
7.0.110.0130.00713.37
7.0.100.0090.00913.30
7.0.90.0110.00613.10
7.0.80.0130.00513.21
7.0.70.0090.00613.01
7.0.60.0130.00713.04
7.0.50.0040.01213.09
7.0.40.0080.00813.54
7.0.30.0080.00613.41
7.0.20.0070.01013.13
7.0.10.0080.01113.32
7.0.00.0060.01313.70
5.6.400.0110.00814.25
5.6.390.0050.01313.93
5.6.380.0080.00814.18
5.6.370.0070.01514.05
5.6.360.0040.01313.75
5.6.350.0080.00813.73
5.6.340.0130.01013.87
5.6.330.0030.02014.29
5.6.320.0140.00514.38
5.6.310.0070.01014.07
5.6.300.0050.01114.43
5.6.290.0000.02014.32
5.6.280.0120.00614.39
5.6.270.0080.00814.10
5.6.260.0130.00914.05
5.6.250.0080.01113.86
5.6.240.0040.01814.15
5.6.230.0230.00014.10
5.6.220.0150.00413.99
5.6.210.0100.01014.04
5.6.200.0030.01413.82
5.6.190.0090.00614.35
5.6.180.0110.00314.45
5.6.170.0140.00014.42
5.6.160.0150.00414.37
5.6.150.0080.00814.33
5.6.140.0040.01214.29
5.6.130.0090.00614.48
5.6.120.0090.00914.37
5.6.110.0050.01014.19
5.6.100.0180.00414.29
5.6.90.0150.00714.02
5.6.80.0110.00914.05
5.6.70.0110.01014.02
5.6.60.0170.00613.81
5.6.50.0080.01413.75
5.6.40.0090.00913.88
5.6.30.0070.01013.91
5.6.20.0080.01214.23
5.6.10.0110.01113.87
5.6.00.0120.00614.02
5.5.380.0110.01114.20
5.5.370.0130.00814.36
5.5.360.0200.00014.20
5.5.350.0090.01114.28
5.5.340.0050.01014.38
5.5.330.0060.00914.18
5.5.320.0030.01214.43
5.5.310.0100.00714.13
5.5.300.0070.00714.51
5.5.290.0070.00814.32
5.5.280.0080.01214.34
5.5.270.0130.00314.04
5.5.260.0040.01114.25
5.5.250.0060.01314.23
5.5.240.0100.00714.11
5.5.230.0180.00514.09
5.5.220.0040.01314.29
5.5.210.0160.00714.15
5.5.200.0190.00014.41
5.5.190.0110.00614.07
5.5.180.0150.00414.11
5.5.170.0060.01414.01
5.5.160.0130.00614.17
5.5.150.0170.00614.37
5.5.140.0140.00914.22
5.5.130.0090.01814.17
5.5.120.0160.01314.09
5.5.110.0200.01114.31
5.5.100.0290.00314.21
5.5.90.0130.01114.05
5.5.80.0140.02114.40
5.5.70.0200.00514.43
5.5.60.0110.01414.00
5.5.50.0260.00013.97
5.5.40.0160.00814.25
5.5.30.0140.01114.26
5.5.20.0110.01414.14
5.5.10.0110.01214.44
5.5.00.0090.01514.36
5.4.450.0000.01111.17
5.4.440.0090.00511.00
5.4.430.0070.00411.05
5.4.420.0110.00011.03
5.4.410.0100.00310.86
5.4.400.0120.00010.99
5.4.390.0120.00210.71
5.4.380.0100.00710.79
5.4.370.0120.00210.93
5.4.360.0090.00510.93
5.4.350.0070.00710.90
5.4.340.0080.00810.64
5.4.330.0060.01010.93
5.4.320.0050.01010.97
5.4.310.0090.01311.16
5.4.300.0140.00310.91
5.4.290.0200.00011.05
5.4.280.0150.00810.90
5.4.270.0130.00910.93
5.4.260.0160.00710.90
5.4.250.0130.00611.22
5.4.240.0120.00810.84
5.4.230.0100.00510.82
5.4.220.0120.00611.01
5.4.210.0110.01210.96
5.4.200.0170.00010.84
5.4.190.0150.00310.87
5.4.180.0090.00910.90
5.4.170.0160.00310.88
5.4.160.0100.01010.86
5.4.150.0100.01010.80
5.4.140.0130.00711.03
5.4.130.0070.01011.32
5.4.120.0100.00710.92
5.4.110.0080.00811.06
5.4.100.0130.00411.11
5.4.90.0130.00410.83
5.4.80.0100.00910.71
5.4.70.0130.00311.08
5.4.60.0070.01111.03
5.4.50.0100.00811.05
5.4.40.0110.00610.82
5.4.30.0070.00711.04
5.4.20.0140.00810.90
5.4.10.0150.00511.09
5.4.00.0150.00410.99
5.3.290.0110.00410.71
5.3.280.0060.00610.58
5.3.270.0110.00510.49
5.3.260.0030.01310.66
5.3.250.0070.00710.64
5.3.240.0050.00510.59
5.3.230.0000.01110.63
5.3.220.0080.00310.43
5.3.210.0000.01010.23
5.3.200.0070.00710.19
5.3.190.0060.00610.47
5.3.180.0100.00310.59
5.3.170.0040.00710.38
5.3.160.0110.00510.39
5.3.150.0090.00310.59
5.3.140.0060.00910.41
5.3.130.0080.00610.42
5.3.120.0040.00810.54
5.3.110.0060.00910.48
5.3.100.0040.00910.25
5.3.90.0100.00310.63
5.3.80.0060.00610.25
5.3.70.0070.00410.47
5.3.60.0040.00710.56
5.3.50.0050.00710.39
5.3.40.0100.00510.23
5.3.30.0090.01110.41
5.3.20.0100.00710.47
5.3.10.0080.00710.20
5.3.00.0100.00310.20
5.2.170.0110.0029.27
5.2.160.0070.0079.34
5.2.150.0060.0079.33
5.2.140.0150.0029.27
5.2.130.0000.0159.27
5.2.120.0100.0059.27
5.2.110.0060.0069.27
5.2.100.0130.0009.27
5.2.90.0000.0129.27
5.2.80.0090.0029.30
5.2.70.0100.0039.27
5.2.60.0070.0099.27
5.2.50.0000.0129.27
5.2.40.0070.0079.27
5.2.30.0060.0079.27
5.2.20.0030.0099.27
5.2.10.0060.0069.27
5.2.00.0120.0049.27
5.1.60.0080.0059.27
5.1.50.0140.0009.27
5.1.40.0030.0069.27
5.1.30.0060.0069.27
5.1.20.0060.0079.27
5.1.10.0070.0029.27
5.1.00.0050.0059.27
5.0.50.0060.0029.27
5.0.40.0080.0039.27
5.0.30.0050.0039.27
5.0.20.0090.0009.27
5.0.10.0050.0059.27
5.0.00.0100.0009.27
4.4.90.0060.0049.27
4.4.80.0060.0039.27
4.4.70.0070.0009.27
4.4.60.0000.0079.27
4.4.50.0050.0039.27
4.4.40.0060.0039.27
4.4.30.0040.0049.27
4.4.20.0060.0039.27
4.4.10.0030.0039.27
4.4.00.0000.0069.27
4.3.110.0030.0039.27
4.3.100.0050.0059.27
4.3.90.0040.0049.27
4.3.80.0050.0029.27
4.3.70.0000.0079.27
4.3.60.0050.0039.27
4.3.50.0000.0079.27
4.3.40.0050.0029.27
4.3.30.0050.0039.27
4.3.20.0000.0089.27
4.3.10.0000.0089.27
4.3.00.0060.0009.27