3v4l.org

run code in 300+ PHP versions simultaneously
<? class Volume { public function getV() { return $this->a * $this->b * $this->c; } public function __set($name, $value) { $this->c = $value; } public function __get($name) { return $this->c; } } $Square = new Volume(); $Square->a = 10; $Square->b = 5; $Square->c = 1; echo $Square->getV();

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.00616.25
8.3.50.0110.01021.15
8.3.40.0070.00718.59
8.3.30.0080.00818.71
8.3.20.0050.00220.23
8.3.10.0080.00023.65
8.3.00.0040.00421.76
8.2.180.0070.00716.50
8.2.170.0120.00322.96
8.2.160.0030.00922.21
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00319.14
8.2.120.0040.00426.35
8.2.110.0060.00319.38
8.2.100.0120.00017.68
8.2.90.0030.00519.17
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0040.00418.09
8.2.40.0080.00022.08
8.2.30.0000.00719.19
8.2.20.0040.00417.43
8.2.10.0050.00317.93
8.2.00.0050.00217.80
8.1.280.0100.00725.92
8.1.270.0070.01122.20
8.1.260.0000.00728.09
8.1.250.0060.00328.09
8.1.240.0060.00322.66
8.1.230.0040.00717.58
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.10
8.1.190.0050.00316.88
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0040.00420.60
8.1.150.0040.00420.66
8.1.140.0050.00319.44
8.1.130.0000.00717.48
8.1.120.0000.00717.30
8.1.110.0040.00417.36
8.1.100.0000.00717.26
8.1.90.0000.00717.23
8.1.80.0000.00817.29
8.1.70.0070.00017.36
8.1.60.0030.00617.44
8.1.50.0030.00617.38
8.1.40.0020.00517.39
8.1.30.0090.00017.39
8.1.20.0000.00717.41
8.1.10.0080.00017.40
8.1.00.0000.00817.42
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0030.00318.34
8.0.270.0000.00717.18
8.0.260.0060.00017.09
8.0.250.0000.00616.71
8.0.240.0070.00016.80
8.0.230.0070.00016.86
8.0.220.0030.00316.77
8.0.210.0030.00416.73
8.0.200.0050.00216.74
8.0.190.0040.00416.89
8.0.180.0070.00016.77
8.0.170.0070.00016.70
8.0.160.0080.00016.64
8.0.150.0020.00516.75
8.0.140.0030.00516.75
8.0.130.0000.00613.25
8.0.120.0030.00516.70
8.0.110.0040.00416.74
8.0.100.0030.00616.66
8.0.90.0000.00716.66
8.0.80.0030.01016.68
8.0.70.0000.00816.63
8.0.60.0000.00716.87
8.0.50.0040.00416.57
8.0.30.0100.00517.02
8.0.20.0110.00717.40
8.0.10.0000.00716.71
8.0.00.0110.00716.68
7.4.330.0000.00516.84
7.4.320.0030.00316.46
7.4.300.0040.00416.46
7.4.290.0030.00316.49
7.4.280.0040.00416.29
7.4.270.0070.00016.47
7.4.260.0040.00416.48
7.4.250.0030.00316.32
7.4.240.0000.00816.40
7.4.230.0070.00016.48
7.4.220.0110.01416.30
7.4.210.0080.00816.47
7.4.200.0030.00316.57
7.4.160.0100.00516.39
7.4.150.0160.00317.40
7.4.140.0090.01117.86
7.4.130.0070.01116.46
7.4.120.0100.01116.41
7.4.110.0120.00616.45
7.4.100.0100.00716.33
7.4.90.0060.01216.32
7.4.80.0140.01019.39
7.4.70.0000.01616.25
7.4.60.0070.01016.31
7.4.50.0100.00616.25
7.4.40.0030.01316.48
7.4.30.0090.01316.35
7.4.00.0030.01314.57
7.3.330.0000.00513.15
7.3.320.0000.00513.31
7.3.310.0030.00316.07
7.3.300.0040.00416.12
7.3.290.0040.00415.99
7.3.280.0070.01016.15
7.3.270.0140.00917.40
7.3.260.0090.00916.36
7.3.250.0110.00716.33
7.3.240.0060.01016.25
7.3.230.0150.00316.39
7.3.210.0090.00616.18
7.3.200.0130.01319.39
7.3.190.0080.00816.09
7.3.180.0070.01016.54
7.3.170.0090.01016.38
7.3.160.0000.01516.48
7.3.00.0080.00416.66
7.2.330.0140.00416.43
7.2.320.0050.01116.29
7.2.310.0060.01516.59
7.2.300.0110.00716.30
7.2.290.0070.01016.30
7.2.130.0040.01116.97
7.2.120.0060.00816.67
7.2.110.0080.00416.80
7.2.100.0000.01416.88
7.2.90.0080.00016.95
7.2.80.0000.01316.98
7.2.70.0100.00617.02
7.2.60.0060.00916.95
7.2.50.0110.00716.87
7.2.40.0100.00317.08
7.2.30.0070.00716.89
7.2.20.0110.00316.85
7.2.10.0060.00917.01
7.2.00.0030.01018.05
7.1.250.0000.01215.56
7.1.240.0060.00615.61
7.1.230.0000.01215.87
7.1.220.0030.00715.76
7.1.210.0000.01215.81
7.1.200.0020.00515.67
7.1.190.0070.00715.82
7.1.180.0000.01315.71
7.1.170.0080.00815.47
7.1.160.0140.00015.52
7.1.150.0030.01215.80
7.1.140.0030.00715.82
7.1.130.0040.01115.65
7.1.120.0030.01215.82
7.1.110.0000.00915.78
7.1.100.0040.00917.11
7.1.90.0070.00715.75
7.1.80.0070.00715.55
7.1.70.0050.00516.47
7.1.60.0090.01117.54
7.1.50.0050.01316.23
7.1.40.0030.00715.91
7.1.30.0060.00615.57
7.1.20.0070.00415.85
7.1.10.0070.00315.58
7.1.00.0050.04319.23
7.0.330.0090.00015.38
7.0.320.0060.00615.41
7.0.310.0040.00815.45
7.0.300.0040.01115.55
7.0.290.0030.00715.34
7.0.280.0040.00415.15
7.0.270.0000.01115.13
7.0.260.0070.01015.38
7.0.250.0040.01115.41
7.0.240.0040.00715.22
7.0.230.0050.00815.51
7.0.220.0040.01115.38
7.0.210.0060.01015.42
7.0.200.0100.00915.05
7.0.190.0050.00315.33
7.0.180.0030.01015.30
7.0.170.0100.00315.32
7.0.160.0070.00715.16
7.0.150.0030.00915.50
7.0.140.0100.00315.32
7.0.130.0070.00715.32
7.0.120.0000.01115.34
7.0.110.0060.00915.47
7.0.100.0060.00615.42
7.0.90.0030.00615.29
7.0.80.0100.00315.29
7.0.70.0030.00915.14
7.0.60.0150.04218.57
7.0.50.0070.04016.64
7.0.40.0070.04216.93
7.0.30.0170.04316.72
7.0.20.0200.04516.85
7.0.10.0070.04616.76
7.0.00.0020.04816.73
5.6.380.0080.00514.50
5.6.370.0040.00414.39
5.6.360.0090.00414.24
5.6.350.0060.00914.03
5.6.340.0030.01014.03
5.6.330.0110.00314.39
5.6.320.0090.00314.29
5.6.310.0030.00614.51
5.6.300.0110.00314.05
5.6.290.0060.00614.07
5.6.280.0040.02917.56
5.6.270.0030.00814.55
5.6.260.0080.00814.39
5.6.250.0070.00714.04
5.6.240.0100.00314.16
5.6.230.0000.01614.05
5.6.220.0060.00614.08
5.6.210.0020.05017.33
5.6.200.0090.02516.11
5.6.190.0080.02917.36
5.6.180.0130.04717.47
5.6.170.0220.03817.25
5.6.160.0000.02717.38
5.6.150.0030.04716.38
5.6.140.0000.02816.11
5.6.130.0050.02416.26
5.6.120.0100.02517.64
5.6.110.0080.03917.67
5.6.100.0070.02817.49
5.6.90.0030.05017.70
5.6.80.0100.04017.46
5.6.70.0090.00614.09
5.6.60.0030.01014.08
5.6.50.0100.00714.20
5.6.40.0090.00414.32
5.6.30.0060.00614.13
5.6.20.0000.01214.17
5.6.10.0030.01014.43
5.6.00.0040.00714.11
5.5.380.0030.00611.20
5.5.370.0040.00411.18
5.5.360.0000.01111.18
5.5.350.0020.03715.74
5.5.340.0060.03314.56
5.5.330.0050.04515.75
5.5.320.0270.03215.84
5.5.310.0220.03515.76
5.5.300.0040.02114.61
5.5.290.0050.04614.55
5.5.280.0050.03116.03
5.5.270.0050.03215.99
5.5.260.0090.03715.98
5.5.250.0070.04515.92
5.5.240.0130.03815.66
5.5.230.0050.00511.30
5.5.220.0060.00311.23
5.5.210.0100.00311.18
5.5.200.0090.00311.18
5.5.190.0070.00311.18
5.5.180.0030.00611.18
5.5.170.0060.00611.18
5.5.160.0080.00311.18
5.5.150.0070.00411.36
5.5.140.0000.00711.18
5.5.130.0030.00711.18
5.5.120.0000.01211.30
5.5.110.0030.00311.41
5.5.100.0000.01011.18
5.5.90.0030.01011.18
5.5.80.0030.00311.18
5.5.70.0000.01011.18
5.5.60.0030.00711.18
5.5.50.0070.00311.18
5.5.40.0000.00911.18
5.5.30.0030.00911.25
5.5.20.0060.00011.18
5.5.10.0070.00411.18
5.5.00.0030.00711.18

preferences:
76.8 ms | 401 KiB | 5 Q