3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $x; private $y; private $z; public function __constructor() { $this->x = 100; $this->y = 20; $this->z = 30; } public function _get($k) { echo $this->x; return $this->$k; } } $t = new Test(); echo $t->x . PHP_EOL;

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.0100.01016.75
8.3.50.0100.00717.93
8.3.40.0120.00618.73
8.3.30.0100.00718.89
8.3.20.0000.00820.21
8.3.10.0070.00023.58
8.3.00.0000.00819.38
8.2.180.0080.01116.75
8.2.170.0040.01122.96
8.2.160.0030.01020.38
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0020.00526.16
8.2.120.0080.00026.16
8.2.110.0060.00322.09
8.2.100.0040.00817.92
8.2.90.0050.00319.09
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0040.00419.47
8.2.30.0030.00520.69
8.2.20.0030.00617.69
8.2.10.0080.00018.08
8.2.00.0040.00417.87
8.1.270.0040.00423.88
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0000.00922.02
8.1.230.0120.00017.66
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00918.59
8.1.160.0040.00421.88
8.1.150.0000.00718.83
8.1.140.0000.00819.42
8.1.130.0070.00017.68
8.1.120.0000.00717.43
8.1.110.0000.00717.41
8.1.100.0080.00017.35
8.1.90.0000.00817.39
8.1.80.0000.00717.42
8.1.70.0000.00717.37
8.1.60.0030.00517.51
8.1.50.0080.00017.57
8.1.40.0040.00417.54
8.1.30.0040.00417.66
8.1.20.0000.00817.70
8.1.10.0000.00717.62
8.1.00.0070.00017.55
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.29
8.0.270.0070.00017.15
8.0.260.0040.00417.20
8.0.250.0070.00017.02
8.0.240.0040.00416.98
8.0.230.0030.00316.82
8.0.220.0050.00216.95
8.0.210.0040.00416.88
8.0.200.0040.00416.85
8.0.190.0020.00517.00
8.0.180.0000.00716.93
8.0.170.0000.00816.88
8.0.160.0000.00716.89
8.0.150.0030.00316.80
8.0.140.0040.00416.80
8.0.130.0000.00513.30
8.0.120.0040.00416.84
8.0.110.0040.00416.78
8.0.100.0040.00416.77
8.0.90.0070.00016.76
8.0.80.0090.00516.87
8.0.70.0040.00417.01
8.0.60.0070.00016.94
8.0.50.0070.00016.84
8.0.30.0100.00817.12
8.0.20.0150.00317.40
8.0.10.0000.00716.84
8.0.00.0130.00716.78
7.4.330.0020.00215.08
7.4.320.0000.00616.37
7.4.300.0030.00316.38
7.4.290.0070.00016.59
7.4.280.0060.00516.64
7.4.270.0030.00316.52
7.4.260.0050.00216.47
7.4.250.0070.00016.47
7.4.240.0030.00316.57
7.4.230.0000.00716.43
7.4.220.0150.00916.56
7.4.210.0040.01216.65
7.4.200.0040.00416.52
7.4.160.0060.00916.45
7.4.150.0120.00617.40
7.4.140.0080.01817.86
7.4.130.0110.00616.51
7.4.120.0070.01216.57
7.4.110.0130.01316.63
7.4.100.0030.01916.53
7.4.90.0070.01016.61
7.4.80.0090.00619.39
7.4.70.0060.00916.52
7.4.60.0140.00316.44
7.4.50.0030.00616.57
7.4.40.0030.01416.38
7.4.30.0100.01016.50
7.4.00.0080.00814.73
7.3.330.0050.00013.26
7.3.320.0000.00513.37
7.3.310.0070.00016.12
7.3.300.0000.00816.27
7.3.290.0070.00716.24
7.3.280.0070.00716.29
7.3.270.0150.00417.40
7.3.260.0080.01616.49
7.3.250.0100.00816.37
7.3.240.0070.01016.37
7.3.230.0090.00816.50
7.3.210.0110.00916.48
7.3.200.0110.00716.59
7.3.190.0080.00816.32
7.3.180.0030.01416.62
7.3.170.0070.01016.34
7.3.160.0090.00616.49
7.3.120.0100.01014.47
7.3.110.0040.00814.74
7.3.100.0040.00914.68
7.3.90.0080.00014.86
7.3.80.0030.00614.61
7.3.70.0030.01014.91
7.3.60.0100.00414.73
7.3.50.0030.00914.61
7.3.40.0080.00514.66
7.3.30.0100.00314.64
7.3.20.0110.00416.71
7.3.10.0030.00616.57
7.3.00.0040.00716.61
7.2.330.0070.01116.77
7.2.320.0130.00716.54
7.2.310.0100.00716.80
7.2.300.0070.01016.73
7.2.290.0090.01216.41
7.2.250.0130.00714.69
7.2.240.0070.01414.91
7.2.230.0100.00715.28
7.2.220.0120.00015.25
7.2.210.0000.01115.25
7.2.200.0040.01115.14
7.2.190.0030.00915.08
7.2.180.0040.01215.08
7.2.170.0100.01014.84
7.2.60.0040.01116.80
7.2.00.0030.00919.04
7.1.330.0040.00715.64
7.1.320.0070.00715.66
7.1.310.0100.00715.58
7.1.300.0090.00315.87
7.1.290.0100.00315.44
7.1.280.0030.01015.40
7.1.270.0000.01515.49
7.1.260.0070.00415.82
7.1.200.0030.01015.71
7.1.100.0060.00317.93
7.1.70.0000.01116.85
7.1.60.0060.01919.48
7.1.50.0040.00816.70
7.1.00.0130.06322.57
7.0.200.1350.00614.52
7.0.60.0100.08020.04
7.0.50.0030.08717.73
7.0.40.0000.08320.02
7.0.30.0330.07720.06
7.0.20.0200.05020.25
7.0.10.0030.09020.23
7.0.00.0070.06320.25
5.6.280.0030.06021.11
5.6.210.0070.04020.48
5.6.200.0070.08018.18
5.6.190.0100.07320.67
5.6.180.0330.04720.67
5.6.170.0230.03720.44
5.6.160.0000.05720.52
5.6.150.0070.07018.15
5.6.140.0030.08018.21
5.6.130.0030.04718.18
5.6.120.0130.08320.99
5.6.110.0070.05321.05
5.6.100.0030.08021.03
5.6.90.0070.09021.04
5.6.80.0100.06020.41
5.5.350.3970.04020.50
5.5.340.0070.07717.93
5.5.330.0070.07320.25
5.5.320.0100.08020.27
5.5.310.0300.08320.37
5.5.300.0030.04317.95
5.5.290.0070.03718.05
5.5.280.0070.05720.83
5.5.270.0000.05020.76
5.5.260.0170.07720.89
5.5.250.0100.07320.49
5.5.240.0300.04320.27

preferences:
54.15 ms | 400 KiB | 5 Q