3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Testing { //private $a = "parent"; public function __set($name, $value) { echo $name . ' ' . $value . "\n"; } public function __construct() { $this->a = 'asd'; $this->a = 'bcd'; $this->a = 'ggg'; } } $obj = new Testing;

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.00416.75
8.3.50.0110.00416.43
8.3.40.0130.00318.84
8.3.30.0100.00718.71
8.3.20.0000.00821.95
8.3.10.0040.00423.52
8.3.00.0040.00421.73
8.2.180.0070.01418.16
8.2.170.0070.00722.96
8.2.160.0070.00721.06
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0110.00321.13
8.2.110.0100.00022.08
8.2.100.0090.00317.78
8.2.90.0040.00417.75
8.2.80.0000.00818.73
8.2.70.0030.00517.93
8.2.60.0000.00818.04
8.2.50.0080.00018.16
8.2.40.0040.00420.55
8.2.30.0000.00719.50
8.2.20.0030.00618.03
8.2.10.0040.00417.99
8.2.00.0020.00517.93
8.1.280.0070.00725.92
8.1.270.0040.00422.24
8.1.260.0090.00026.35
8.1.250.0110.00428.09
8.1.240.0050.00520.36
8.1.230.0110.00017.81
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0050.00317.48
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0000.00818.75
8.1.160.0000.00718.84
8.1.150.0040.00418.95
8.1.140.0050.00317.64
8.1.130.0030.00319.03
8.1.120.0000.00717.48
8.1.110.0040.00417.48
8.1.100.0030.00517.47
8.1.90.0000.00717.44
8.1.80.0070.00017.34
8.1.70.0040.00417.51
8.1.60.0070.00317.60
8.1.50.0000.00817.41
8.1.40.0000.00817.56
8.1.30.0080.00017.65
8.1.20.0060.00317.71
8.1.10.0060.00317.59
8.1.00.0030.00617.40
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00818.32
8.0.270.0000.00717.18
8.0.260.0000.00719.04
8.0.250.0000.00716.85
8.0.240.0040.00416.83
8.0.230.0040.00417.02
8.0.220.0000.00616.87
8.0.210.0000.00716.88
8.0.200.0060.00016.96
8.0.190.0000.00716.92
8.0.180.0040.00416.80
8.0.170.0000.00816.82
8.0.160.0070.00016.89
8.0.150.0070.00316.83
8.0.140.0000.00816.82
8.0.130.0040.00413.31
8.0.120.0000.00816.83
8.0.110.0040.00416.94
8.0.100.0040.00416.74
8.0.90.0050.00216.84
8.0.80.0110.01016.95
8.0.70.0040.00416.79
8.0.60.0000.00816.73
8.0.50.0000.00716.91
8.0.30.0110.01016.94
8.0.20.0110.00717.40
8.0.10.0040.00416.97
8.0.00.0100.00716.79
7.4.330.0050.00015.55
7.4.320.0000.00616.58
7.4.300.0060.00016.50
7.4.290.0040.00416.60
7.4.280.0070.00016.59
7.4.270.0000.00716.58
7.4.260.0000.00716.41
7.4.250.0000.00716.56
7.4.240.0070.00016.46
7.4.230.0040.00416.54
7.4.220.0040.00416.50
7.4.210.0080.01116.58
7.4.200.0030.00316.40
7.4.160.0110.00816.48
7.4.140.0120.00817.86
7.4.130.0090.00916.52
7.4.120.0080.01316.50
7.4.110.0060.01016.40
7.4.100.0130.00316.35
7.4.90.0130.00416.61
7.4.80.0080.01119.39
7.4.70.0140.00316.46
7.4.60.0080.00816.49
7.4.50.0070.01116.59
7.4.40.0100.00716.39
7.4.00.0060.01215.22
7.3.330.0030.00313.04
7.3.320.0030.00313.26
7.3.310.0040.00416.17
7.3.300.0070.00016.35
7.3.290.0070.00016.32
7.3.280.0060.00816.32
7.3.260.0100.01216.38
7.3.240.0090.00716.52
7.3.230.0030.01416.40
7.3.210.0070.01016.59
7.3.200.0000.01516.57
7.3.190.0060.01616.26
7.3.180.0060.00916.43
7.3.170.0120.00616.56
7.3.160.0070.01016.45
7.3.10.0120.00316.12
7.3.00.0040.01616.27
7.2.330.0130.00716.63
7.2.320.0080.00916.68
7.2.310.0120.01116.39
7.2.300.0100.00716.52
7.2.290.0110.00716.82
7.2.130.0150.00316.59
7.2.120.0160.00316.48
7.2.110.0100.00316.26
7.2.100.0080.01216.82
7.2.90.0240.00616.80
7.2.80.0130.00616.54
7.2.70.0150.00816.65
7.2.60.0110.00516.85
7.2.50.0170.00516.64
7.2.40.0360.01217.44
7.2.30.0310.00717.26
7.2.20.0360.01117.18
7.2.10.0240.01017.26
7.2.00.0270.01317.36
7.1.250.0120.00915.38
7.1.200.0040.00415.79
7.1.160.0300.01216.85
7.1.150.0320.01016.83
7.1.140.0420.01416.50
7.1.130.1150.00817.05
7.1.120.0450.01416.82
7.1.110.0390.01315.90
7.1.100.0270.01216.34
7.1.90.0390.00616.16
7.1.80.0450.01216.07
7.1.70.0380.01315.29
7.1.60.0380.01632.94
7.1.50.0520.01632.85
7.1.40.0430.01132.57
7.1.30.0430.01332.55
7.1.20.0440.01232.77
7.1.10.0330.00914.38
7.1.00.0260.00914.86

preferences:
59.55 ms | 400 KiB | 5 Q