3v4l.org

run code in 300+ PHP versions simultaneously
<?php class person { private $_name = 'dude'; 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.130.0070.01316.43
8.3.120.0120.00420.76
8.3.110.0000.00816.53
8.3.100.0080.00018.43
8.3.90.0100.00726.77
8.3.80.0090.00018.31
8.3.70.0180.00016.38
8.3.60.0100.00716.63
8.3.50.0120.00621.08
8.3.40.0090.00618.71
8.3.30.0070.01018.58
8.3.20.0100.00020.16
8.3.10.0080.00021.66
8.3.00.0000.00821.90
8.2.250.0030.01016.58
8.2.240.0040.00419.07
8.2.230.0080.00020.94
8.2.220.0030.00624.06
8.2.210.0140.00426.77
8.2.200.0090.00016.38
8.2.190.0060.00916.58
8.2.180.0110.00418.29
8.2.170.0040.01122.96
8.2.160.0100.00320.39
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00021.05
8.2.120.0030.00526.35
8.2.110.0060.00320.94
8.2.100.0120.00017.93
8.2.90.0000.00818.97
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0050.00317.93
8.2.50.0070.00418.09
8.2.40.0000.00822.19
8.2.30.0000.00819.42
8.2.20.0040.00417.68
8.2.10.0070.00018.00
8.2.00.0000.00718.03
8.1.300.0150.00020.36
8.1.290.0070.00330.84
8.1.280.0130.00925.92
8.1.270.0070.00722.05
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0100.01022.60
8.1.230.0000.01119.10
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0050.00317.13
8.1.180.0000.00818.10
8.1.170.0050.00318.67
8.1.160.0080.00020.67
8.1.150.0040.00420.59
8.1.140.0000.00819.55
8.1.130.0030.00317.60
8.1.120.0030.00317.46
8.1.110.0040.00417.46
8.1.100.0040.00417.43
8.1.90.0040.00417.48
8.1.80.0000.00717.34
8.1.70.0000.00717.40
8.1.60.0040.00417.46
8.1.50.0030.00617.41
8.1.40.0050.00317.51
8.1.30.0000.00817.47
8.1.20.0030.00517.66
8.1.10.0050.00317.63
8.1.00.0040.00417.53
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0030.00318.34
8.0.270.0030.00317.29
8.0.260.0030.00317.14
8.0.250.0070.00016.98
8.0.240.0050.00216.82
8.0.230.0000.00716.94
8.0.220.0030.00316.88
8.0.210.0000.00716.81
8.0.200.0070.00016.95
8.0.190.0040.00816.96
8.0.180.0000.00816.77
8.0.170.0040.00416.93
8.0.160.0070.00016.91
8.0.150.0030.00516.84
8.0.140.0080.00016.85
8.0.130.0030.00313.31
8.0.120.0030.00516.87
8.0.110.0080.00016.93
8.0.100.0000.00716.89
8.0.90.0040.00416.82
8.0.80.0040.01416.84
8.0.70.0070.00016.66
8.0.60.0000.00716.76
8.0.50.0040.00416.88
8.0.30.0120.00817.00
8.0.20.0090.01217.40
8.0.10.0040.00417.00
8.0.00.0080.00916.60
7.4.330.0030.00316.67
7.4.320.0070.00016.39
7.4.300.0000.00716.45
7.4.290.0030.00316.64
7.4.280.0030.00516.41
7.4.270.0070.00016.60
7.4.260.0000.00816.40
7.4.250.0000.00716.45
7.4.240.0030.00316.45
7.4.230.0070.00016.60
7.4.220.0090.00916.57
7.4.210.0090.00516.59
7.4.200.0030.00316.33
7.4.160.0130.00316.46
7.4.150.0000.01717.40
7.4.140.0100.01017.86
7.4.130.0120.00916.56
7.4.120.0070.01016.49
7.4.110.0030.01316.47
7.4.100.0000.01816.59
7.4.90.0030.01316.50
7.4.80.0110.00819.39
7.4.70.0110.00616.50
7.4.60.0130.00616.65
7.4.50.0060.00916.59
7.4.40.0090.00916.57
7.4.30.0060.01016.70
7.4.00.0060.00515.00
7.3.330.0000.00613.36
7.3.320.0020.00213.34
7.3.310.0030.00316.25
7.3.300.0000.00716.31
7.3.290.0000.00716.22
7.3.280.0120.00716.35
7.3.270.0060.01517.40
7.3.260.0080.00816.37
7.3.250.0050.01316.57
7.3.240.0080.00816.46
7.3.230.0090.01216.61
7.3.210.0100.00716.37
7.3.200.0110.00619.39
7.3.190.0060.01016.33
7.3.180.0120.00416.22
7.3.170.0110.00716.37
7.3.160.0060.00916.50
7.3.120.0020.01414.82
7.3.110.0070.00914.92
7.3.100.0050.01014.79
7.3.90.0030.01114.82
7.3.80.0060.00814.81
7.3.70.0050.01014.84
7.3.60.0050.01114.75
7.3.50.0050.01314.87
7.3.40.0060.00914.71
7.3.30.0070.00514.88
7.3.20.0050.00816.59
7.3.10.0080.00816.68
7.3.00.0070.00716.45
7.2.330.0170.00316.84
7.2.320.0110.00616.67
7.2.310.0090.00916.75
7.2.300.0140.00316.77
7.2.290.0120.00916.56
7.2.250.0090.00615.32
7.2.240.0080.00815.12
7.2.230.0030.01215.23
7.2.220.0010.01515.02
7.2.210.0070.00614.99
7.2.200.0070.00914.98
7.2.190.0020.01215.22
7.2.180.0070.01015.00
7.2.170.0020.01214.94
7.2.160.0000.01114.95
7.2.150.0110.00416.66
7.2.140.0090.00316.79
7.2.130.0070.01117.05
7.2.120.0070.00717.01
7.2.110.0030.01317.17
7.2.100.0030.00916.98
7.2.90.0000.01417.02
7.2.80.0040.00816.73
7.2.70.0000.01017.17
7.2.60.0050.00916.78
7.2.50.0030.01317.16
7.2.40.0060.00317.05
7.2.30.0070.01016.76
7.2.20.0120.00316.84
7.2.10.0030.00716.91
7.2.00.0130.00918.22
7.1.330.0070.00715.68
7.1.320.0030.01015.70
7.1.310.0030.00815.62
7.1.300.0080.00615.77
7.1.290.0050.01015.86
7.1.280.0020.01115.97
7.1.270.0070.00715.73
7.1.260.0030.00915.79
7.1.250.0030.01216.07
7.1.200.0110.00915.66
7.1.100.0040.01118.10
7.1.70.0000.00717.13
7.1.60.0090.00919.40
7.1.50.0130.01616.86
7.1.00.0000.08022.40
7.0.200.0280.00314.57
7.0.60.0170.04321.59
7.0.50.0100.07317.80
7.0.40.0070.04720.11
7.0.30.0200.04320.20
7.0.20.0330.08320.05
7.0.10.0100.08020.17
7.0.00.0130.07320.14
5.6.280.0000.03721.13
5.6.210.0130.07020.48
5.6.200.0100.08018.19
5.6.190.0070.05320.35
5.6.180.0270.07720.45
5.6.170.0230.05320.55
5.6.160.0030.08720.54
5.6.150.0070.07318.26
5.6.140.0000.04318.11
5.6.130.0030.05718.18
5.6.120.0070.06021.04
5.6.110.0300.05321.12
5.6.100.0100.08021.14
5.6.90.0100.08720.96
5.6.80.0130.07320.41
5.5.350.0030.08020.47
5.5.340.0100.05018.03
5.5.330.0100.08020.40
5.5.320.0430.06320.19
5.5.310.0330.04020.33
5.5.300.0030.05718.01
5.5.290.0030.08317.97
5.5.280.0100.07320.78
5.5.270.0130.05320.77
5.5.260.0130.08020.88
5.5.250.0070.08020.80
5.5.240.0200.07320.20

preferences:
61.92 ms | 403 KiB | 5 Q