3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $data = array( 'count' => 5 ); public function & __get($name) { return $this->data[$name]; } public function __set($name, $value) { $this->data[$name] = $value; } } $foo = new Foo; $foo->count += 1;

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.0070.01418.31
8.3.50.0230.00721.27
8.3.40.0180.00018.85
8.3.30.0100.00320.18
8.3.20.0000.00818.90
8.3.10.0050.00320.99
8.3.00.0070.00023.52
8.2.180.0160.00016.63
8.2.170.0070.00722.96
8.2.160.0030.01020.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.98
8.2.110.0070.00322.14
8.2.100.0090.00317.84
8.2.90.0040.00419.16
8.2.80.0000.00917.97
8.2.70.0000.00917.63
8.2.60.0050.00317.93
8.2.50.0050.00318.07
8.2.40.0060.00318.16
8.2.30.0000.00818.06
8.2.20.0000.00817.71
8.2.10.0040.00417.63
8.2.00.0000.00917.68
8.1.280.0150.00625.92
8.1.270.0040.00423.99
8.1.260.0050.00226.35
8.1.250.0050.00328.09
8.1.240.0060.00322.37
8.1.230.0110.00020.79
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0050.00517.22
8.1.190.0000.00817.23
8.1.180.0030.00918.10
8.1.170.0040.00418.69
8.1.160.0040.00418.86
8.1.150.0000.00818.62
8.1.140.0040.00417.42
8.1.130.0030.00517.77
8.1.120.0040.00417.41
8.1.110.0030.00517.29
8.1.100.0030.00317.37
8.1.90.0070.00017.39
8.1.80.0000.00717.43
8.1.70.0000.00717.38
8.1.60.0030.00617.62
8.1.50.0030.00617.43
8.1.40.0030.00517.54
8.1.30.0040.00417.53
8.1.20.0000.00817.54
8.1.10.0000.00817.55
8.1.00.0040.00417.54
8.0.300.0050.00218.77
8.0.290.0000.00716.58
8.0.280.0030.00718.40
8.0.270.0050.00317.18
8.0.260.0000.00718.37
8.0.250.0080.00016.89
8.0.240.0040.00416.89
8.0.230.0030.00316.87
8.0.220.0070.00016.73
8.0.210.0050.00316.72
8.0.200.0000.00616.79
8.0.190.0000.00716.93
8.0.180.0050.00516.83
8.0.170.0000.00716.79
8.0.160.0000.00716.76
8.0.150.0040.00416.72
8.0.140.0040.00416.69
8.0.130.0030.00313.29
8.0.120.0040.00416.78
8.0.110.0000.00716.66
8.0.100.0040.00416.69
8.0.90.0000.00816.70
8.0.80.0100.00516.84
8.0.70.0040.00416.70
8.0.60.0020.00516.77
8.0.50.0070.00016.85
8.0.30.0080.01117.06
8.0.20.0110.01117.40
8.0.10.0070.00016.82
8.0.00.0130.00516.73
7.4.330.0030.00316.82
7.4.320.0000.00616.53
7.4.300.0060.00016.61
7.4.290.0000.00716.40
7.4.280.0030.00316.50
7.4.270.0000.00616.48
7.4.260.0000.00613.28
7.4.250.0000.00816.45
7.4.240.0000.00816.45
7.4.230.0000.00816.38
7.4.220.0130.00616.59
7.4.210.0060.01116.52
7.4.200.0000.00716.57
7.4.190.0000.00716.70
7.4.160.0110.00416.36
7.4.150.0070.01017.40
7.4.140.0090.00817.86
7.4.130.0100.00916.54
7.4.120.0080.00816.53
7.4.110.0100.01016.56
7.4.100.0120.00616.44
7.4.90.0070.01016.26
7.4.80.0100.00719.39
7.4.70.0090.00916.55
7.4.60.0060.01516.51
7.4.50.0000.00816.30
7.4.40.0070.00722.77
7.4.30.0070.01116.69
7.4.00.0060.00614.98
7.3.330.0050.00013.30
7.3.320.0000.00513.40
7.3.310.0030.00316.32
7.3.300.0040.00416.21
7.3.290.0060.01016.27
7.3.280.0120.00416.31
7.3.270.0070.01017.40
7.3.260.0140.01018.24
7.3.250.0110.01116.63
7.3.240.0150.00616.60
7.3.230.0120.00916.39
7.3.210.0060.00916.33
7.3.200.0060.01619.39
7.3.190.0080.01416.61
7.3.180.0090.00616.51
7.3.170.0100.01016.58
7.3.160.0100.01016.31
7.3.120.0000.01614.84
7.3.110.0140.00014.60
7.3.100.0000.01315.08
7.3.90.0070.00415.03
7.3.80.0060.00314.67
7.3.70.0100.00314.57
7.3.60.0000.01414.85
7.3.50.0030.00614.80
7.3.40.0120.00314.88
7.3.30.0060.00914.88
7.3.20.0070.00316.72
7.3.10.0070.00416.42
7.3.00.0040.01116.54
7.2.330.0070.01016.75
7.2.320.0090.01116.68
7.2.310.0120.00916.38
7.2.300.0040.01216.66
7.2.290.0120.00316.75
7.2.250.0070.00714.99
7.2.240.0070.01315.14
7.2.230.0000.01415.09
7.2.220.0030.01214.88
7.2.210.0060.00915.15
7.2.200.0090.00615.15
7.2.190.0030.01314.82
7.2.180.0070.00314.96
7.2.170.0100.00614.95
7.2.160.0000.01414.89
7.2.150.0070.00716.69
7.2.140.0000.01216.91
7.2.130.0040.01116.90
7.2.120.0030.01016.59
7.2.110.0200.00516.69
7.2.100.0100.00716.80
7.2.90.0140.00316.50
7.2.80.0090.00916.89
7.2.70.0110.00316.88
7.2.60.0070.01016.91
7.2.50.0090.00617.08
7.2.40.0060.00316.44
7.2.30.0040.01416.99
7.2.20.0050.00517.03
7.2.10.0070.01016.86
7.2.00.0040.00716.99
7.1.330.0090.00615.64
7.1.320.0100.00315.85
7.1.310.0030.01315.80
7.1.300.0090.00615.78
7.1.290.0060.00615.85
7.1.280.0040.00815.80
7.1.270.0030.00915.68
7.1.260.0040.01215.73
7.1.250.0070.01015.77
7.1.70.0060.00616.95
7.1.60.0040.01819.17
7.1.50.0120.01216.98
7.1.00.0030.07022.44
7.0.200.0070.00016.79
7.0.140.0030.07322.10
7.0.70.0130.08319.89
7.0.60.0070.08319.85
7.0.50.0230.05720.34
7.0.40.0030.05720.18
7.0.30.0030.05020.08
7.0.20.0130.08320.10
7.0.10.0170.08020.07
7.0.00.0200.06720.12
5.6.280.0100.06721.04
5.6.220.0100.08320.75
5.6.210.0030.05320.50
5.6.200.0030.09320.96
5.6.190.0030.04321.07
5.6.180.0100.08721.09
5.6.170.0100.06321.09
5.6.160.0070.05721.05
5.6.150.0070.09720.93
5.6.140.0130.07721.05
5.6.130.0100.06321.07
5.6.120.0000.09021.01
5.6.110.0030.09321.11
5.6.100.0100.04321.13
5.6.90.0200.04721.06
5.6.80.0030.06720.45
5.6.70.0100.08320.49
5.6.60.0030.06020.46
5.6.50.0100.07720.40
5.6.40.0030.08320.38
5.6.30.0070.07720.37
5.6.20.0130.04020.42
5.6.10.0030.08320.42
5.6.00.0100.08320.37
5.5.360.0130.07720.34
5.5.350.0100.07720.43
5.5.340.0100.07720.79
5.5.330.0200.07720.77
5.5.320.0000.08320.86
5.5.310.0100.08720.65
5.5.300.0130.07720.92
5.5.290.0170.07020.80
5.5.280.0100.06320.86
5.5.270.0070.06020.82
5.5.260.0070.08320.82
5.5.250.0130.07720.73
5.5.240.0130.06320.29
5.5.230.0070.05320.27
5.5.220.0130.05320.27
5.5.210.0030.05320.30
5.5.200.0100.08020.25
5.5.190.0130.07720.27
5.5.180.0070.05720.17
5.5.160.0170.08020.18
5.5.150.0100.07320.24
5.5.140.0230.07020.15
5.5.130.0030.04320.08
5.5.120.0000.06320.26
5.5.110.0070.08020.08
5.5.100.0030.06720.12
5.5.90.0130.07320.11
5.5.80.0000.08320.17
5.5.70.0100.08019.94
5.5.60.0100.07319.97
5.5.50.0000.04720.16
5.5.40.0070.07320.00
5.5.30.0100.03320.07
5.5.20.0100.07020.00
5.5.10.0070.03719.94
5.5.00.0030.04019.96
5.4.450.0100.08319.18
5.4.440.0070.05019.38
5.4.430.0000.06319.22
5.4.420.0100.05019.27
5.4.410.0000.06719.37
5.4.400.0130.07019.16
5.4.390.0130.07719.04
5.4.380.0000.07319.09
5.4.370.0030.08019.23
5.4.360.0130.06319.05
5.4.350.0070.08019.03
5.4.340.0100.04319.23
5.4.320.0100.08019.14
5.4.310.0000.08319.05
5.4.300.0030.07319.12
5.4.290.0100.05019.04
5.4.280.0000.08019.04
5.4.270.0070.05019.17
5.4.260.0000.08019.03
5.4.250.0000.07719.04
5.4.240.0030.08019.02
5.4.230.0070.07319.04
5.4.220.0070.05019.09
5.4.210.0070.04719.04
5.4.200.0030.05319.11
5.4.190.0070.03719.04
5.4.180.0070.04719.20
5.4.170.0000.05319.12
5.4.160.0000.04018.92
5.4.150.0030.04719.05
5.4.140.0000.05716.41
5.4.130.0000.03716.34
5.4.120.0030.03716.45
5.4.110.0030.03716.32
5.4.100.0100.03016.36
5.4.90.0070.04016.35
5.4.80.0030.04016.26
5.4.70.0100.03016.49
5.4.60.0030.03716.41
5.4.50.0030.03716.47
5.4.40.0030.03716.45
5.4.30.0070.03316.37
5.4.20.0000.03716.30
5.4.10.0000.07016.45
5.4.00.0070.04315.79
5.3.290.0130.05714.78
5.3.280.0100.06314.61
5.3.270.0030.04014.56
5.3.260.0000.04014.63
5.3.250.0030.03714.66
5.3.240.0030.03714.75
5.3.230.0000.04714.57
5.3.220.0070.03314.66
5.3.210.0030.03714.64
5.3.200.0000.04014.70
5.3.190.0070.04714.50
5.3.180.0070.05314.64
5.3.170.0000.04014.61
5.3.160.0030.03714.58
5.3.150.0030.03714.67
5.3.140.0030.03714.44
5.3.130.0030.03714.50
5.3.120.0000.04314.52
5.3.110.0000.04714.56
5.3.100.0070.03714.01
5.3.90.0130.02714.04
5.3.80.0070.03714.16
5.3.70.0030.03714.07
5.3.60.0000.06713.89
5.3.50.0070.03713.84
5.3.40.0030.03713.99
5.3.30.0070.03013.94
5.3.20.0000.03713.68
5.3.10.0030.04013.57
5.3.00.0070.03713.67
5.2.170.0000.04313.32
5.2.160.0030.04313.32
5.2.150.0030.03313.32
5.2.140.0000.03013.32
5.2.130.0000.03013.32
5.2.120.0030.02713.32
5.2.110.0000.03013.32
5.2.100.0000.03013.32
5.2.90.0070.02713.32
5.2.80.0030.03313.32
5.2.70.0000.03013.32
5.2.60.0000.03013.32
5.2.50.0070.02713.32
5.2.40.0100.03713.32
5.2.30.0030.04013.32
5.2.20.0030.03013.32
5.2.10.0030.03013.32
5.2.00.0000.03013.32
5.1.60.0030.02313.32
5.1.50.0030.02313.32
5.1.40.0100.01713.32
5.1.30.0030.02713.32
5.1.20.0030.02313.32
5.1.10.0000.03013.32
5.1.00.0000.03313.32
5.0.50.0000.02313.32
5.0.40.0030.02313.32
5.0.30.0000.03013.32
5.0.20.0000.05013.32
5.0.10.0000.04013.32
5.0.00.0070.06313.32
4.4.90.0000.01713.32
4.4.80.0030.01713.32
4.4.70.0000.01713.32
4.4.60.0030.01313.32
4.4.50.0000.01713.32
4.4.40.0000.02313.32
4.4.30.0030.01313.32
4.4.20.0000.03013.32
4.4.10.0030.01313.32
4.4.00.0000.02713.32
4.3.110.0000.03313.32
4.3.100.0000.01313.32
4.3.90.0000.03713.32
4.3.80.0000.04313.32
4.3.70.0030.03013.32
4.3.60.0030.04013.32
4.3.50.0030.02713.32
4.3.40.0000.05013.32
4.3.30.0030.01313.32
4.3.20.0070.02313.32
4.3.10.0030.03713.32
4.3.00.0000.03713.32

preferences:
68.48 ms | 401 KiB | 5 Q