3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __get($name) { echo __METHOD__ . "($name)" . PHP_EOL; switch ($name) { case 'foo': return new Foo(); case 'bar': return 'bar'; default: return null; } } public function __isset($name) { echo __METHOD__ . "($name)" . PHP_EOL; return $name === 'bar'; } } $foo = new Foo(); echo (empty($foo->foo->bar) ? 'is empty' : 'is not empty') . PHP_EOL;

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.0.0rc20.0120.00616.74
8.0.0rc10.0060.01216.91
8.0.0beta30.0130.00616.60
8.0.0beta10.0120.00616.82
8.0.0alpha30.0110.00516.70
8.0.0alpha20.0060.01216.60
8.0.0alpha10.0060.01316.48
7.4.110.0100.01016.46
7.4.100.0140.00416.32
7.4.90.0100.00716.50
7.4.80.0110.01119.39
7.4.70.0070.01016.66
7.4.60.0130.00316.51
7.4.50.0090.00616.58
7.4.40.0120.00916.65
7.4.10.0040.01414.86
7.4.00.0060.01114.95
7.3.230.0180.00016.61
7.3.210.0100.00516.21
7.3.200.0090.01116.37
7.3.190.0130.01116.59
7.3.180.0090.01216.39
7.3.170.0100.00716.61
7.3.160.0080.01216.34
7.3.130.0100.01014.57
7.3.120.0100.00814.83
7.3.110.0090.00914.77
7.3.100.0070.00514.81
7.3.90.0070.00414.78
7.3.80.0000.01114.82
7.3.70.0080.00714.99
7.3.60.0050.01114.63
7.3.50.0070.00614.90
7.3.40.0080.00514.88
7.3.30.0070.00714.79
7.3.20.0070.00816.57
7.3.10.0620.00315.79
7.3.00.0440.00515.75
7.2.330.0100.00616.52
7.2.320.0080.00816.59
7.2.310.0100.00716.72
7.2.300.0100.01316.53
7.2.290.0100.00516.42
7.2.260.0110.00315.09
7.2.250.0090.00614.80
7.2.240.0080.01015.19
7.2.230.0020.01215.11
7.2.220.0080.00515.13
7.2.210.0040.01015.12
7.2.200.0060.00615.17
7.2.190.0040.01214.84
7.2.180.0070.00515.09
7.2.170.0030.00815.11
7.2.160.0070.00715.14
7.2.150.0100.00716.91
7.2.140.0070.00716.74
7.2.130.0670.00615.90
7.2.120.0640.00715.76
7.2.110.0620.00715.79
7.2.100.0520.00415.88
7.2.90.0500.00615.96
7.2.80.0530.00915.86
7.2.70.0460.00515.92
7.2.60.0480.00615.74
7.2.50.0530.00715.81
7.2.40.0470.00615.74
7.2.30.0470.00815.79
7.2.20.0640.00615.87
7.2.10.0530.00615.87
7.2.00.0520.00515.87
7.1.330.0040.01115.82
7.1.320.0060.00515.80
7.1.310.0030.01015.80
7.1.300.0060.01015.78
7.1.290.0040.00615.70
7.1.280.0110.00415.66
7.1.270.0050.01015.71
7.1.260.0070.00615.83
7.1.250.0910.00814.45
7.1.240.0770.00514.56
7.1.230.0650.01014.46
7.1.220.0790.00614.38
7.1.210.0450.01214.27
7.1.200.0650.00414.50
7.1.190.0610.00414.40
7.1.180.0440.01114.49
7.1.170.0390.00914.57
7.1.160.0690.00914.27
7.1.150.0500.00914.23
7.1.140.0710.00814.45
7.1.130.0800.00314.50
7.1.120.0480.00914.39
7.1.110.0520.00614.65
7.1.100.0630.01114.50
7.1.90.0510.01014.34
7.1.80.0410.00914.34
7.1.70.0410.00814.50
7.1.60.0450.00414.36
7.1.50.0430.00914.43
7.1.40.0390.01214.50
7.1.30.0430.01114.65
7.1.20.0340.00914.58
7.1.10.0300.00314.56
7.1.00.0570.00614.50
7.0.330.0800.01113.41
7.0.320.0790.00713.39
7.0.310.0890.01213.31
7.0.300.0660.01313.34
7.0.290.0900.00513.44
7.0.280.0650.01413.31
7.0.270.0810.00713.52
7.0.260.0800.00913.54
7.0.250.0640.00613.51
7.0.240.0800.00513.60
7.0.230.0660.01513.52
7.0.220.0540.00813.48
7.0.210.0790.01013.64
7.0.200.0680.00813.57
7.0.190.0660.01113.49
7.0.180.0620.00413.47
7.0.170.0580.00913.54
7.0.160.0470.01013.62
7.0.150.0420.01113.65
7.0.140.0560.00513.58
7.0.130.0530.00913.46
7.0.120.0460.01113.46
7.0.110.0380.01113.58
7.0.100.0450.00813.67
7.0.90.0440.01313.62
7.0.80.0420.01013.46
7.0.70.2040.00613.63
7.0.60.0470.01213.65
7.0.50.0410.00813.69
7.0.40.0600.00813.49
7.0.30.0480.00713.64
7.0.20.0480.00413.62
7.0.10.0400.00813.76
7.0.00.0400.00513.54
5.6.380.0150.01114.43
5.6.370.0170.01514.23
5.6.360.0190.00714.13
5.6.350.0120.01214.23
5.6.340.0190.00614.40
5.6.330.0150.01014.29
5.6.320.0180.00414.46
5.6.310.0130.00914.45
5.6.300.0160.01014.33
5.6.290.0210.00714.40
5.6.280.0190.01114.13
5.6.270.0180.01614.31
5.6.260.0170.01014.45
5.6.250.0140.00714.21
5.6.240.0100.01314.37
5.6.230.0170.01414.35
5.6.220.0150.01114.40
5.6.210.0140.00914.35
5.6.200.0180.00814.25
5.6.190.0180.01014.39
5.6.180.0170.00914.30
5.6.170.0190.00414.36
5.6.160.0160.00414.31
5.6.150.0110.01014.35
5.6.140.0160.00614.17
5.6.130.0190.00814.35
5.6.120.0160.00914.28
5.6.110.0180.00614.31
5.6.100.0160.00814.30
5.6.90.0180.01414.36
5.6.80.0140.00814.07
5.6.70.0130.00614.30
5.6.60.0110.02014.40
5.6.50.0120.01214.23
5.6.40.0160.00714.27
5.6.30.0100.00714.13
5.6.20.0140.00914.19
5.6.10.0070.00814.27
5.6.00.0130.00514.22
5.5.380.0070.00911.01
5.5.370.0130.00811.10
5.5.360.0160.01011.15
5.5.350.0120.00611.12
5.5.340.0130.00211.31
5.5.330.0120.00511.27
5.5.320.0200.00111.27
5.5.310.0090.00611.24
5.5.300.0060.00911.21
5.5.290.0120.00611.14
5.5.280.0110.01011.08
5.5.270.0130.00811.22
5.5.260.0100.00911.40
5.5.250.0130.00910.93
5.5.240.0070.00910.95
5.5.230.0120.00411.09
5.5.220.0130.00411.04
5.5.210.0080.00810.98
5.5.200.0100.00511.04
5.5.190.0110.00711.20
5.5.180.0080.00611.17
5.5.170.0060.01011.21
5.5.160.0130.00511.03
5.5.150.0120.00511.14
5.5.140.0040.00811.16
5.5.130.0070.01111.03
5.5.120.0100.00810.97
5.5.110.0140.00611.17
5.5.100.0130.00911.04
5.5.90.0120.00411.00
5.5.80.0130.00311.15
5.5.70.0100.00511.25
5.5.60.0100.00710.79
5.5.50.0130.00411.21
5.5.40.0090.00411.11
5.5.30.0050.00711.14
5.5.20.0100.00811.04
5.5.10.0110.00511.21
5.5.00.0050.01011.10
5.4.450.0120.00511.10
5.4.440.0050.00711.08
5.4.430.0100.00411.03
5.4.420.0080.00511.17
5.4.410.0090.00911.17
5.4.400.0090.00511.20
5.4.390.0130.00511.11
5.4.380.0080.00710.84
5.4.370.0100.00610.86
5.4.360.0120.00210.95
5.4.350.0060.00911.06
5.4.340.0080.00611.07
5.4.330.0120.00611.01
5.4.320.0130.00510.96
5.4.310.0080.00411.06
5.4.300.0130.00310.83
5.4.290.0150.00211.16
5.4.280.0160.00110.90
5.4.270.0120.00910.93
5.4.260.0150.00410.97
5.4.250.0120.00411.01
5.4.240.0120.00511.16
5.4.230.0150.00410.87
5.4.220.0110.00610.93
5.4.210.0100.00610.89
5.4.200.0070.00411.02
5.4.190.0040.00810.96
5.4.180.0030.01111.20
5.4.170.0060.00710.86
5.4.160.0070.00710.83
5.4.150.0080.00810.90
5.4.140.0060.01010.98
5.4.130.0120.00311.07
5.4.120.0100.00711.04
5.4.110.0090.00811.04
5.4.100.0130.00710.96
5.4.90.0110.00710.85
5.4.80.0120.00711.05
5.4.70.0090.00711.13
5.4.60.0040.01210.79
5.4.50.0090.00711.18
5.4.40.0150.00210.86
5.4.30.0110.00311.12
5.4.20.0090.00410.92
5.4.10.0130.00411.09
5.4.00.0060.00611.01
5.3.290.0040.00910.57
5.3.280.0110.00910.51
5.3.270.0060.00510.48
5.3.260.0030.01010.58
5.3.250.0070.00510.58
5.3.240.0020.00910.46
5.3.230.0110.00810.56
5.3.220.0130.00310.25
5.3.210.0040.00910.34
5.3.200.0130.00110.31
5.3.190.0080.00410.38
5.3.180.0130.00810.49
5.3.170.0070.00910.54
5.3.160.0120.00810.50
5.3.150.0140.00610.40
5.3.140.0120.00410.38
5.3.130.0110.00610.35
5.3.120.0090.00710.40
5.3.110.0100.00310.41
5.3.100.0080.00210.64
5.3.90.0080.00610.47
5.3.80.0120.00210.30
5.3.70.0090.00910.40
5.3.60.0110.00310.53
5.3.50.0040.00710.39
5.3.40.0060.00810.32
5.3.30.0120.00510.41
5.3.20.0160.00410.51
5.3.10.0100.00310.26
5.3.00.0140.00010.21
5.2.170.0100.0019.50
5.2.160.0090.0029.54
5.2.150.0030.0099.63
5.2.140.0100.0059.53
5.2.130.0090.0059.50
5.2.120.0060.0069.37
5.2.110.0040.0059.48
5.2.100.0140.0059.52
5.2.90.0070.0049.43
5.2.80.0100.0019.31
5.2.70.0030.0079.25
5.2.60.0120.0009.31
5.2.50.0100.0049.35
5.2.40.0100.0029.42
5.2.30.0090.0059.32
5.2.20.0060.0069.35
5.2.10.0100.0049.24
5.2.00.0090.0049.05
5.1.60.0070.0038.99
5.1.50.0050.0078.99
5.1.40.0050.0078.99
5.1.30.0050.0068.99
5.1.20.0050.0098.99
5.1.10.0050.0068.99
5.1.00.0090.0038.99
5.0.50.0060.0058.99
5.0.40.0080.0028.99
5.0.30.0080.0008.99
5.0.20.0060.0018.99
5.0.10.0030.0068.99
5.0.00.0060.0078.99
4.4.90.0080.0048.99
4.4.80.0040.0048.99
4.4.70.0050.0038.99
4.4.60.0080.0018.99
4.4.50.0010.0068.99
4.4.40.0040.0048.99
4.4.30.0060.0028.99
4.4.20.0060.0068.99
4.4.10.0040.0058.99
4.4.00.0050.0058.99
4.3.110.0050.0018.99
4.3.100.0030.0038.99
4.3.90.0070.0038.99
4.3.80.0070.0048.99
4.3.70.0060.0038.99
4.3.60.0030.0048.99
4.3.50.0040.0058.99
4.3.40.0060.0048.99
4.3.30.0020.0058.99
4.3.20.0040.0048.99
4.3.10.0050.0038.99
4.3.00.0080.0048.99