3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { private $_name = 'sina'; private $_age = '27'; private $_employer = 'yes'; public function get_name() { return $this->_name; } public function get_age() { return $this->_age; } public function get_employer() { return $this->_employer; } } $person = new Person(); $required = array('name','age'); foreach($required as $req) { $func = "get_{$req}()"; echo $person->$$func; }

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.01116.88
8.3.50.0110.00821.20
8.3.40.0110.00318.72
8.3.30.0150.00618.90
8.3.20.0000.00720.20
8.3.10.0070.00021.77
8.3.00.0060.00321.76
8.2.180.0080.00818.29
8.2.170.0110.00422.96
8.2.160.0140.00020.55
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00021.18
8.2.110.0060.00319.27
8.2.100.0120.00017.68
8.2.90.0030.00618.97
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0040.00417.79
8.2.50.0060.00318.09
8.2.40.0030.00622.37
8.2.30.0000.00819.30
8.2.20.0080.00017.56
8.2.10.0000.00718.07
8.2.00.0050.00318.17
8.1.280.0070.01325.92
8.1.270.0040.00422.17
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00321.43
8.1.230.0030.00717.42
8.1.220.0000.00817.76
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00517.23
8.1.180.0050.00318.10
8.1.170.0080.00018.71
8.1.160.0030.00520.85
8.1.150.0030.00620.76
8.1.140.0040.00419.57
8.1.130.0030.00317.75
8.1.120.0080.00017.48
8.1.110.0080.00017.41
8.1.100.0000.00717.30
8.1.90.0080.00017.43
8.1.80.0000.00717.51
8.1.70.0030.00317.47
8.1.60.0080.00017.45
8.1.50.0030.00617.54
8.1.40.0050.00317.46
8.1.30.0030.00517.54
8.1.20.0040.00417.58
8.1.10.0040.00417.52
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0030.00516.73
8.0.280.0000.00718.49
8.0.270.0030.00317.12
8.0.260.0080.00017.23
8.0.250.0000.00817.07
8.0.240.0000.00717.06
8.0.230.0000.00717.01
8.0.220.0000.00716.99
8.0.210.0040.00416.94
8.0.200.0030.00616.97
8.0.190.0120.00016.99
8.0.180.0030.00516.99
8.0.170.0000.00816.95
8.0.160.0000.00716.98
8.0.150.0000.00716.87
8.0.140.0030.00416.97
8.0.130.0000.00513.37
8.0.120.0040.00416.85
8.0.110.0050.00216.85
8.0.100.0070.00016.79
8.0.90.0040.00417.02
8.0.80.0130.00316.91
8.0.70.0000.00716.74
8.0.60.0000.00816.83
8.0.50.0070.00017.01
8.0.30.0090.00817.07
8.0.20.0130.00617.40
8.0.10.0000.00716.98
8.0.00.0150.00616.65
7.4.330.0000.00516.77
7.4.320.0030.00516.52
7.4.300.0000.00816.57
7.4.290.0070.00016.47
7.4.280.0070.00016.63
7.4.270.0000.00616.60
7.4.260.0000.00816.58
7.4.250.0040.00416.49
7.4.240.0070.00016.57
7.4.230.0070.00016.48
7.4.220.0120.00616.59
7.4.210.0070.00716.63
7.4.200.0030.00316.38
7.4.160.0080.00816.46
7.4.150.0150.00317.40
7.4.140.0150.00717.86
7.4.130.0120.00616.51
7.4.120.0070.01016.55
7.4.110.0130.00516.50
7.4.100.0190.00416.59
7.4.90.0070.01016.57
7.4.80.0090.00919.39
7.4.70.0090.00616.41
7.4.60.0060.01016.50
7.4.50.0070.00716.29
7.4.40.0090.00916.33
7.4.30.0100.01016.43
7.4.00.0060.00914.87
7.3.330.0000.00613.40
7.3.320.0050.00013.35
7.3.310.0000.00816.27
7.3.300.0030.00316.42
7.3.290.0000.00816.43
7.3.280.0090.00816.44
7.3.270.0070.01017.40
7.3.260.0140.00316.33
7.3.250.0110.00916.37
7.3.240.0140.00316.54
7.3.230.0190.00416.55
7.3.210.0070.01116.62
7.3.200.0120.00319.39
7.3.190.0120.00916.41
7.3.180.0120.00416.40
7.3.170.0080.00916.54
7.3.160.0090.00616.68
7.3.00.0040.00716.75
7.2.330.0080.00816.71
7.2.320.0030.01416.73
7.2.310.0050.01116.48
7.2.300.0140.00316.77
7.2.290.0110.01116.76
7.2.130.0090.00616.98
7.2.120.0040.00816.95
7.2.110.0030.00716.65
7.2.100.0040.00716.83
7.2.90.0120.00017.15
7.2.80.0080.00817.15
7.2.70.0000.00817.20
7.2.60.0080.00317.04
7.2.50.0070.00717.09
7.2.40.0090.00616.77
7.2.30.0000.01016.86
7.2.20.0000.01516.84
7.2.10.0090.00617.07
7.2.00.0070.01116.86
7.1.250.0080.00415.64
7.1.240.0050.00315.76
7.1.230.0000.01815.76
7.1.220.0070.00415.48
7.1.210.0030.00715.59
7.1.200.0080.00415.56
7.1.190.0070.00315.75
7.1.180.0060.01015.84
7.1.170.0000.00715.70
7.1.160.0090.00615.70
7.1.150.0040.01115.95
7.1.140.0100.00016.01
7.1.130.0000.00915.82
7.1.120.0060.00615.59
7.1.110.0000.00915.77
7.1.100.0040.00717.08
7.1.90.0070.00715.85
7.1.80.0000.01215.69
7.1.70.0030.00716.51
7.1.60.0070.00917.46
7.1.50.0050.01116.16
7.1.40.0060.00615.78
7.1.30.0000.01015.84
7.1.20.0070.00415.73
7.1.10.0050.00615.62
7.1.00.0030.04319.19
7.0.330.0070.00715.27
7.0.320.0110.00015.16
7.0.310.0060.00315.29
7.0.300.0060.00615.11
7.0.290.0060.00615.32
7.0.280.0110.00415.33
7.0.270.0060.00615.27
7.0.260.0090.00315.42
7.0.250.0000.01015.18
7.0.240.0070.00315.41
7.0.230.0040.00415.61
7.0.220.0060.00615.41
7.0.210.0110.00315.40
7.0.200.0240.00315.05
7.0.190.0060.00615.50
7.0.180.0100.00015.41
7.0.170.0030.01015.40
7.0.160.0030.01015.52
7.0.150.0100.00015.16
7.0.140.0090.00615.13
7.0.130.0030.00915.54
7.0.120.0040.00415.18
7.0.110.0030.01015.46
7.0.100.0080.02817.61
7.0.90.0020.02717.68
7.0.80.0050.02517.66
7.0.70.0100.02017.61
7.0.60.0100.02717.69
7.0.50.0060.02317.78
7.0.40.0050.04816.71
7.0.30.0070.03916.85
7.0.20.0030.04316.72
7.0.10.0070.04216.79
7.0.00.0100.03816.76
5.6.380.0060.00614.48
5.6.370.0070.00314.63
5.6.360.0000.01014.13
5.6.350.0040.00414.01
5.6.340.0040.01114.00
5.6.330.0070.01014.46
5.6.320.0030.01214.52
5.6.310.0080.00313.89
5.6.300.0000.01114.15
5.6.290.0060.00614.50
5.6.280.0060.02817.68
5.6.270.0040.01114.26
5.6.260.0040.01114.41
5.6.250.0030.02517.55
5.6.240.0020.02817.50
5.6.230.0050.02517.41
5.6.220.0040.02417.47
5.6.210.0060.02517.35
5.6.200.0100.02017.71
5.6.190.0000.02817.71
5.6.180.0080.04317.77
5.6.170.0040.02817.63
5.6.160.0120.03317.62
5.6.150.0040.04417.56
5.6.140.0090.03917.78
5.6.130.0030.04017.69
5.6.120.0070.04717.69
5.6.110.0090.04117.58
5.6.100.0080.03017.65
5.6.90.0080.03517.78
5.6.80.0050.04217.28
5.6.70.0080.03017.39
5.6.60.0040.04417.35
5.6.50.0120.03317.39
5.6.40.0040.04717.40
5.6.30.0100.04017.25
5.6.20.0050.04217.23
5.6.10.0070.02717.41
5.6.00.0070.02817.26
5.5.380.0030.02215.89
5.5.370.0030.02115.71
5.5.360.0050.01815.77
5.5.350.0000.02515.71
5.5.340.0070.02115.95
5.5.330.0040.01915.95
5.5.320.0080.03815.83
5.5.310.0100.03115.99
5.5.300.0090.04215.96
5.5.290.0130.03515.89
5.5.280.0090.03315.93
5.5.270.0030.04516.04
5.5.260.0020.04216.08
5.5.250.0110.03615.88
5.5.240.0050.03415.65
5.5.230.0030.04315.63
5.5.220.0070.04215.65
5.5.210.0080.04115.65
5.5.200.0070.04115.68
5.5.190.0100.03815.63
5.5.180.0080.03515.71
5.5.170.0030.00611.00
5.5.160.0010.04415.72
5.5.150.0070.03815.64
5.5.140.0080.03815.63
5.5.130.0100.03615.66
5.5.120.0070.03015.67
5.5.110.0080.03515.66
5.5.100.0000.03315.48
5.5.90.0100.03715.70
5.5.80.0090.02315.53
5.5.70.0070.03615.57
5.5.60.0070.04015.53
5.5.50.0050.03415.53
5.5.40.0120.03515.49
5.5.30.0000.03015.54
5.5.20.0030.03915.55
5.5.10.0030.04215.49
5.5.00.0070.04015.56

preferences:
37.34 ms | 401 KiB | 5 Q