3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X{ public $real = []; public function __construct(){ $this->real ['qty']= 15; } public function &setData(){ return $this->real; } } $x = new X(); $x->setData()['qty'] = 22; $x->setData()['qty2'] = 'haha yeah, we should not use refs :)'; var_dump($x->real);

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.0040.01118.55
8.3.50.0100.01016.62
8.3.40.0090.00618.67
8.3.30.0100.00718.64
8.3.20.0000.00819.20
8.3.10.0050.00321.73
8.3.00.0090.00020.64
8.2.180.0040.01118.38
8.2.170.0030.01718.89
8.2.160.0060.00922.96
8.2.150.0000.00824.18
8.2.140.0090.00624.66
8.2.130.0040.00419.66
8.2.120.0070.00026.35
8.2.110.0030.00721.01
8.2.100.0040.00817.78
8.2.90.0050.00319.13
8.2.80.0080.00017.97
8.2.70.0050.00318.05
8.2.60.0040.00418.03
8.2.50.0030.00618.10
8.2.40.0070.00419.32
8.2.30.0000.00719.14
8.2.20.0050.00218.05
8.2.10.0070.00018.07
8.2.00.0040.00418.04
8.1.280.0070.01025.92
8.1.270.0070.00022.05
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.97
8.1.230.0040.00720.95
8.1.220.0050.00317.74
8.1.210.0060.00318.91
8.1.200.0060.00317.23
8.1.190.0050.00317.22
8.1.180.0060.00318.10
8.1.170.0030.00518.61
8.1.160.0000.00818.74
8.1.150.0030.00518.71
8.1.140.0050.00222.20
8.1.130.0000.00719.99
8.1.120.0030.00617.30
8.1.110.0040.00417.39
8.1.100.0050.00517.43
8.1.90.0030.00617.31
8.1.80.0040.00417.26
8.1.70.0050.00517.31
8.1.60.0080.00017.61
8.1.50.0000.00817.54
8.1.40.0030.00617.52
8.1.30.0000.00717.59
8.1.20.0030.00817.66
8.1.10.0000.00817.50
8.1.00.0030.00517.45
8.0.300.0070.00020.02
8.0.290.0080.00016.63
8.0.280.0000.00718.39
8.0.270.0070.00017.19
8.0.260.0040.00418.32
8.0.250.0030.00316.87
8.0.240.0000.00616.97
8.0.230.0000.00816.91
8.0.220.0000.00716.84
8.0.210.0040.00416.72
8.0.200.0030.00316.79
8.0.190.0000.00716.90
8.0.180.0060.00316.93
8.0.170.0050.00316.87
8.0.160.0070.00016.77
8.0.150.0040.00416.77
8.0.140.0070.00016.75
8.0.130.0050.00013.22
8.0.120.0040.00416.70
8.0.110.0040.00416.82
8.0.100.0000.00716.83
8.0.90.0040.00416.81
8.0.80.0020.01516.80
8.0.70.0070.00016.82
8.0.60.0000.00716.84
8.0.50.0040.00416.72
8.0.30.0110.00717.10
8.0.20.0120.00717.40
8.0.10.0050.00316.96
8.0.00.0100.00716.80
7.4.330.0060.00015.55
7.4.320.0000.00716.56
7.4.300.0000.00716.57
7.4.290.0040.00416.61
7.4.280.0070.00016.48
7.4.270.0030.00316.58
7.4.260.0030.00316.50
7.4.250.0000.00916.55
7.4.240.0030.00316.56
7.4.230.0030.00316.59
7.4.220.0030.00516.40
7.4.210.0050.01316.55
7.4.200.0000.00716.40
7.4.160.0120.01016.39
7.4.140.0100.01117.86
7.4.130.0140.00516.48
7.4.120.0080.01116.54
7.4.110.0070.01016.45
7.4.100.0270.01016.36
7.4.90.0090.00916.61
7.4.80.0060.00919.39
7.4.70.0120.00916.43
7.4.60.0090.00616.53
7.4.50.0140.00416.48
7.4.40.0090.00916.27
7.4.00.0070.00714.97
7.3.330.0050.00013.03
7.3.320.0030.00313.28
7.3.310.0070.00016.31
7.3.300.0030.00316.22
7.3.290.0030.00516.39
7.3.280.0110.00816.28
7.3.260.0100.00816.45
7.3.240.0110.01116.43
7.3.230.0060.01216.23
7.3.210.0160.00616.49
7.3.200.0160.00016.29
7.3.190.0190.00316.44
7.3.180.0060.01516.29
7.3.170.0100.01316.29
7.3.160.0100.01016.61
7.3.120.0030.01314.75
7.3.110.0070.01014.88
7.3.100.0060.00914.99
7.3.90.0060.01214.89
7.3.80.0060.00314.64
7.3.70.0000.01114.75
7.3.60.0000.00814.62
7.3.50.0090.00614.70
7.3.40.0100.01014.79
7.3.30.0030.00914.75
7.3.20.0070.01116.54
7.3.10.0110.00316.45
7.3.00.0100.01116.61
7.2.330.0100.01416.50
7.2.320.0030.01916.70
7.2.310.0130.01016.39
7.2.300.0110.00816.38
7.2.290.0100.00716.48
7.2.250.0000.01814.80
7.2.240.0070.01314.96
7.2.230.0090.00615.20
7.2.220.0060.00615.11
7.2.210.0100.00314.86
7.2.200.0060.00614.53
7.2.190.0100.00614.85
7.2.180.0150.00014.96
7.2.170.0110.00414.95
7.2.130.0070.00716.41
7.2.120.0140.00716.81
7.2.110.0080.00516.31
7.2.100.0120.00416.44
7.2.90.0100.00816.71
7.2.80.0060.00716.55
7.2.70.0060.00916.77
7.2.60.0070.01016.62
7.2.50.0080.00616.64
7.2.40.0050.01016.77
7.2.30.0090.00616.59
7.2.20.0020.01616.68
7.2.10.0110.00516.74
7.2.00.0090.00516.85
7.1.330.0030.01015.81
7.1.320.0060.00315.58
7.1.310.0040.01115.60
7.1.300.0060.00915.72
7.1.290.0170.00315.83
7.1.280.0000.00915.42
7.1.270.0040.00715.53
7.1.260.0090.00615.66
7.1.250.0060.00615.56
7.1.230.0100.00315.85
7.1.220.0030.01015.46
7.1.210.0080.00815.86
7.1.200.0000.01315.65
7.1.190.0000.01115.89
7.1.180.0070.00715.57
7.1.170.0080.00815.69
7.1.160.0030.00815.84
7.1.150.0070.01015.72
7.1.140.0070.00415.68
7.1.130.0070.00415.48
7.1.120.0040.01115.83
7.1.110.0180.00015.74
7.1.100.0080.00415.87
7.1.90.0060.00615.82
7.1.80.0040.01115.50
7.1.70.0080.00615.84
7.1.60.0040.00815.52
7.1.50.0040.00715.72
7.1.40.0060.00615.54
7.1.30.0030.00815.74
7.1.20.0000.01015.72
7.1.10.0070.00315.70
7.1.00.0040.00815.57
5.6.380.0080.00914.22

preferences:
59.05 ms | 400 KiB | 5 Q