3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bar = new Bar; $foo = new Foo; class Bar { public function __get($x) { global $foo; $foo->asd++; } } class Foo { public function __get($x) { global $bar; $bar->lol++; } } $foo->blah++; echo "Done\n";

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.0110.00716.75
8.3.50.0130.00721.99
8.3.40.0070.00718.88
8.3.30.0100.00319.13
8.3.20.0110.00320.34
8.3.10.0070.00021.66
8.3.00.0060.00319.50
8.2.180.0160.00916.63
8.2.170.0090.00622.96
8.2.160.0150.00420.47
8.2.150.0080.00024.18
8.2.140.0100.00024.66
8.2.130.0000.00926.16
8.2.120.0040.00421.93
8.2.110.0060.00322.12
8.2.100.0080.00317.91
8.2.90.0000.00819.34
8.2.80.0090.00017.97
8.2.70.0000.00817.63
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0060.00319.81
8.2.30.0050.00319.89
8.2.20.0080.00017.80
8.2.10.0070.00018.02
8.2.00.0100.00017.73
8.1.280.0100.00725.92
8.1.270.0050.00323.84
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0000.00923.98
8.1.230.0090.00319.09
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00817.36
8.1.180.0030.00518.10
8.1.170.0040.00418.70
8.1.160.0000.00721.99
8.1.150.0030.00618.63
8.1.140.0040.00417.45
8.1.130.0040.00417.78
8.1.120.0000.00717.46
8.1.110.0000.00717.45
8.1.100.0040.00417.34
8.1.90.0050.00217.29
8.1.80.0050.00217.41
8.1.70.0000.00717.33
8.1.60.0040.00417.58
8.1.50.0000.00717.43
8.1.40.0040.00417.54
8.1.30.0000.00817.61
8.1.20.0000.00817.62
8.1.10.0060.00317.56
8.1.00.0040.00417.55
8.0.300.0080.00020.80
8.0.290.0040.00417.18
8.0.280.0000.00718.31
8.0.270.0000.00817.16
8.0.260.0040.00417.17
8.0.250.0040.00416.87
8.0.240.0000.00816.97
8.0.230.0040.00416.89
8.0.220.0070.00017.01
8.0.210.0070.00016.86
8.0.200.0070.00016.96
8.0.190.0000.00817.05
8.0.180.0040.00416.96
8.0.170.0080.00016.90
8.0.160.0070.00016.96
8.0.150.0030.00316.87
8.0.140.0070.00016.77
8.0.130.0070.00013.41
8.0.120.0030.00616.75
8.0.110.0050.00216.91
8.0.100.0050.00216.68
8.0.90.0070.00016.87
8.0.80.0080.00816.82
8.0.70.0050.00216.94
8.0.60.0030.00516.84
8.0.50.0040.00416.86
8.0.30.0160.00317.13
8.0.20.0120.00817.40
8.0.10.0040.00417.01
8.0.00.0110.01116.69
7.4.330.0000.00515.00
7.4.320.0030.00316.30
7.4.300.0030.00316.40
7.4.290.0070.00016.51
7.4.280.0000.00816.62
7.4.270.0070.00016.61
7.4.260.0000.00816.61
7.4.250.0050.00216.36
7.4.240.0020.00616.45
7.4.230.0070.00016.63
7.4.220.0070.01016.60
7.4.210.0040.00916.56
7.4.200.0070.00016.68
7.4.190.0070.00016.31
7.4.160.0140.00716.40
7.4.150.0110.00817.40
7.4.140.0120.00717.86
7.4.130.0110.00716.45
7.4.120.0110.00716.55
7.4.110.0040.01416.71
7.4.100.0090.01516.66
7.4.90.0100.00616.61
7.4.80.0120.01219.39
7.4.70.0070.01016.43
7.4.60.0060.00916.45
7.4.50.0060.00316.56
7.4.40.0070.01516.43
7.4.30.0090.00916.37
7.4.00.0090.00615.03
7.3.330.0030.00313.27
7.3.320.0000.00513.06
7.3.310.0070.00016.28
7.3.300.0040.00416.40
7.3.290.0000.02016.30
7.3.280.0100.00716.27
7.3.270.0100.00717.40
7.3.260.0040.01916.22
7.3.250.0110.00916.29
7.3.240.0160.00016.48
7.3.230.0070.01116.39
7.3.210.0120.00816.47
7.3.200.0130.01019.39
7.3.190.0120.00616.31
7.3.180.0080.00816.54
7.3.170.0040.01316.38
7.3.160.0040.01116.39
7.3.120.0100.00614.67
7.2.330.0050.01216.71
7.2.320.0030.01516.64
7.2.310.0060.01616.68
7.2.300.0030.01616.39
7.2.290.0120.01216.53
7.2.60.0070.01016.88
7.2.00.0060.00619.32
7.1.200.0100.00315.66
7.1.100.0000.00918.15
7.1.70.0040.00416.80
7.1.60.0170.00719.46
7.1.50.0030.01316.96
7.1.00.0070.07322.29
7.0.200.0210.00314.81
7.0.140.0100.06722.23
7.0.70.0030.07021.70
7.0.60.0030.08321.78
7.0.50.0000.05322.12
7.0.40.0000.08720.15
7.0.30.0030.08020.05
7.0.20.0000.08320.18
7.0.10.0070.07320.02
7.0.00.0070.08320.09
5.6.280.0030.07021.03
5.6.220.0100.07320.48
5.6.210.0070.07320.63
5.6.200.0070.05721.02
5.6.190.0070.07721.15
5.6.180.0030.07321.09
5.6.170.0030.08321.04
5.6.160.0070.07020.94
5.6.150.0100.06021.04
5.6.140.0000.09021.10
5.6.130.0070.08321.07
5.6.120.0030.06721.11
5.6.110.0070.04021.10
5.6.100.0030.07721.03
5.6.90.0100.08020.94
5.6.80.0070.07020.56
5.6.70.0030.07720.45
5.6.60.0070.05020.40
5.6.50.0070.06720.40
5.6.40.0070.08020.42
5.6.30.0070.07020.40
5.6.20.0070.05720.44
5.6.10.0030.06720.50
5.6.00.0130.04720.40
5.5.360.0030.05320.41
5.5.350.0170.06720.39
5.5.340.0030.06720.81
5.5.330.0000.07320.74
5.5.320.0100.07020.79
5.5.310.0070.08020.79
5.5.300.0070.06320.81
5.5.290.0070.08020.78
5.5.280.0030.05720.92
5.5.270.0000.08020.75
5.5.260.0030.07320.92
5.5.250.0130.07020.71
5.5.240.0000.04320.29
5.5.230.0100.07720.02
5.5.220.0070.05020.15
5.5.210.0000.06320.31
5.5.200.0030.08020.25
5.5.190.0030.06320.27
5.5.180.0130.07720.23
5.5.160.0030.08020.21
5.5.150.0030.08020.09
5.5.140.0030.07020.22
5.5.130.0000.08320.25
5.5.120.0000.08320.24
5.5.110.0170.07019.97
5.5.100.0030.08320.02
5.5.90.0030.07720.12
5.5.80.0100.07320.01
5.5.70.0070.07020.06
5.5.60.0070.06720.15
5.5.50.0070.06720.14
5.5.40.0030.06720.10
5.5.30.0030.03719.94
5.5.20.0070.07319.96
5.5.10.0000.08020.02
5.5.00.0070.05020.04
5.4.450.0070.07319.32
5.4.440.0030.08319.29
5.4.430.0070.07719.30
5.4.420.0000.05319.40
5.4.410.0070.07019.20
5.4.400.0000.05718.97
5.4.390.0030.08018.97
5.4.380.0070.04718.83
5.4.370.0070.05319.00
5.4.360.0030.08018.83
5.4.350.0030.07318.92
5.4.340.0030.07318.94
5.4.320.0030.07319.11
5.4.310.0070.07318.98
5.4.300.0030.07018.89
5.4.290.0000.08318.82
5.4.280.0100.04719.00
5.4.270.0100.07018.93
5.4.260.0070.07318.97
5.4.250.0000.08018.98
5.4.240.0070.05718.77
5.4.230.0070.04718.89
5.4.220.0030.05719.03
5.4.210.0100.06719.02
5.4.200.0030.04719.13
5.4.190.0070.03718.78
5.4.180.0130.06719.04
5.4.170.0030.08018.96
5.4.160.0000.05318.96
5.4.150.0000.08018.80
5.4.140.0030.07316.45
5.4.130.0030.07316.41
5.4.120.0070.07016.38
5.4.110.0100.06716.31
5.4.100.0000.07016.41
5.4.90.0030.07316.34
5.4.80.0000.07716.46
5.4.70.0000.06316.47
5.4.60.0000.05016.38
5.4.50.0030.04716.32
5.4.40.0200.05316.29
5.4.30.0030.07716.24
5.4.20.0000.07316.32
5.4.10.0030.06716.42
5.4.00.0000.05015.80
5.3.290.0070.07715.80
5.3.280.0030.07315.80
5.3.270.0030.07715.80
5.3.260.0100.07715.80
5.3.250.0070.06715.80
5.3.240.0100.07015.80
5.3.230.0000.08015.80
5.3.220.0100.06315.80
5.3.210.0100.06715.80
5.3.200.0030.07015.80
5.3.190.0030.07315.80
5.3.180.0070.06315.80
5.3.170.0030.06715.80
5.3.160.0100.04315.80
5.3.150.0030.07315.80
5.3.140.0000.07315.80
5.3.130.0030.05315.80
5.3.120.0030.07315.80
5.3.110.0070.07315.80
5.3.100.0100.06715.80
5.3.90.0030.06715.80
5.3.80.0030.06015.80
5.3.70.0000.08015.80
5.3.60.0070.06315.80
5.3.50.0030.07015.80
5.3.40.0070.06715.80
5.3.30.0030.07715.80
5.3.20.0070.07015.80
5.3.10.0000.04015.80
5.3.00.0100.06715.80
5.2.170.0000.05015.80
5.2.160.0000.06715.80
5.2.150.0000.04715.80
5.2.140.0100.05315.80
5.2.130.0030.04715.80
5.2.120.0030.06015.80
5.2.110.0070.06015.80
5.2.100.0070.04015.80
5.2.90.0070.04315.80
5.2.80.0030.04315.80
5.2.70.0070.05715.80
5.2.60.0070.04715.80
5.2.50.0000.06315.80
5.2.40.0070.05715.80
5.2.30.0000.05015.80
5.2.20.0070.06015.80
5.2.10.0070.06015.80
5.2.00.0070.04315.80
5.1.60.0100.04715.80
5.1.50.0000.04315.80
5.1.40.0000.04015.80
5.1.30.0030.05315.80
5.1.20.0030.05715.80
5.1.10.0030.05715.80
5.1.00.0070.04715.80
5.0.50.0030.04315.80
5.0.40.0030.04015.80
5.0.30.0000.07015.80
5.0.20.0030.04015.80
5.0.10.0030.03715.80
5.0.00.0000.06015.80
4.4.90.0030.02715.80
4.4.80.0070.02715.80
4.4.70.0000.02715.80
4.4.60.0000.03315.80
4.4.50.0030.02715.80
4.4.40.0070.05015.80
4.4.30.0000.04015.80
4.4.20.0100.02315.80
4.4.10.0030.03315.80
4.4.00.0000.04315.80
4.3.110.0000.03715.80
4.3.100.0030.03015.80
4.3.90.0030.03315.80
4.3.80.0030.05015.80
4.3.70.0000.03715.80
4.3.60.0030.03015.80
4.3.50.0000.04015.80
4.3.40.0030.05315.80
4.3.30.0000.03715.80
4.3.20.0030.02715.80
4.3.10.0100.02715.80
4.3.00.0070.01715.80

preferences:
44.45 ms | 404 KiB | 6 Q