3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Doper { private $name; private $id; public function __construct($id, $name) { $this->name = $name; $this->id = $id; } public function getName() { return $this->name; } /** * Return id * @return int */ public function getId() { return $this->id; } } $doper = new Doper('zuzu', 1); echo '<pre>'; print_r($doper); exit;

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.75
8.3.50.0120.00817.43
8.3.40.0090.00618.92
8.3.30.0070.00718.84
8.3.20.0080.00018.61
8.3.10.0070.00720.56
8.3.00.0000.00819.38
8.2.180.0070.01416.38
8.2.170.0150.00022.96
8.2.160.0040.01120.70
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0020.00526.16
8.2.120.0040.00420.84
8.2.110.0080.00419.33
8.2.100.0100.00617.85
8.2.90.0040.00417.99
8.2.80.0070.00019.39
8.2.70.0000.00817.63
8.2.60.0040.00417.78
8.2.50.0080.00018.07
8.2.40.0000.00718.09
8.2.30.0000.00717.85
8.2.20.0050.00317.68
8.2.10.0030.00517.70
8.2.00.0040.00417.73
8.1.280.0090.00625.92
8.1.270.0060.00323.99
8.1.260.0140.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00422.19
8.1.230.0090.00321.08
8.1.220.0000.00817.74
8.1.210.0030.00518.79
8.1.200.0050.00617.35
8.1.190.0000.00717.53
8.1.180.0000.00818.10
8.1.170.0040.00418.81
8.1.160.0000.00718.75
8.1.150.0040.00418.57
8.1.140.0000.00817.44
8.1.130.0070.00017.66
8.1.120.0050.00517.47
8.1.110.0030.00517.37
8.1.100.0080.00017.45
8.1.90.0070.00017.39
8.1.80.0030.00317.39
8.1.70.0040.00417.38
8.1.60.0040.00417.50
8.1.50.0000.00717.46
8.1.40.0040.00417.39
8.1.30.0000.00817.63
8.1.20.0030.00517.69
8.1.10.0000.00817.56
8.1.00.0000.00817.48
8.0.300.0040.00419.98
8.0.290.0000.00716.63
8.0.280.0050.00318.44
8.0.270.0030.00317.17
8.0.260.0030.00316.79
8.0.250.0070.00316.99
8.0.240.0040.00417.00
8.0.230.0050.00216.90
8.0.220.0030.00316.90
8.0.210.0070.00016.86
8.0.200.0000.00716.95
8.0.190.0040.00416.95
8.0.180.0030.00316.79
8.0.170.0090.00016.88
8.0.160.0000.00816.89
8.0.150.0040.00416.78
8.0.140.0030.00716.82
8.0.130.0000.00513.30
8.0.120.0000.00716.75
8.0.110.0040.00416.88
8.0.100.0050.00316.98
8.0.90.0040.00416.83
8.0.80.0130.00316.87
8.0.70.0040.00416.80
8.0.60.0000.00716.79
8.0.50.0040.00416.94
8.0.30.0060.00917.34
8.0.20.0100.00816.99
8.0.10.0070.00016.89
8.0.00.0120.01116.68
7.4.330.0060.00012.93
7.4.320.0030.00316.57
7.4.300.0000.00616.51
7.4.290.0050.00216.49
7.4.280.0040.00416.49
7.4.270.0040.00416.59
7.4.260.0000.00613.27
7.4.250.0040.00416.38
7.4.240.0000.00716.64
7.4.230.0070.00016.39
7.4.220.0110.00416.62
7.4.210.0030.01216.58
7.4.200.0030.00316.62
7.4.190.0040.00416.40
7.4.160.0060.00916.39
7.4.150.0160.00616.36
7.4.140.0090.01216.34
7.4.130.0030.01316.39
7.4.120.0030.01316.73
7.4.110.0100.00716.61
7.4.100.0130.01016.64
7.4.90.0090.00916.53
7.4.80.0110.01419.39
7.4.70.0100.00816.49
7.4.60.0090.00916.47
7.4.50.0000.00916.35
7.4.40.0040.00816.60
7.4.30.0060.00916.32
7.4.00.0050.01214.98
7.3.330.0030.00313.37
7.3.320.0030.00213.29
7.3.310.0000.00716.20
7.3.300.0050.00216.29
7.3.290.0080.00616.29
7.3.280.0100.00816.25
7.3.270.0060.01016.30
7.3.260.0130.01016.34
7.3.250.0120.00916.33
7.3.240.0030.01316.48
7.3.230.0140.00316.54
7.3.210.0070.01116.38
7.3.200.0110.01016.42
7.3.190.0030.01316.47
7.3.180.0050.01116.23
7.3.170.0150.00616.37
7.3.160.0100.01316.31
7.3.120.0050.00814.62
7.3.110.0120.00314.59
7.3.100.0130.00614.80
7.3.90.0060.00914.83
7.3.80.0070.00714.71
7.3.70.0040.00814.75
7.3.60.0030.00614.80
7.3.50.0060.00914.66
7.3.40.0000.01614.64
7.3.30.0000.01314.85
7.3.20.0030.00616.39
7.3.10.0060.00316.52
7.3.00.0070.00716.63
7.2.330.0030.01516.74
7.2.320.0060.01216.75
7.2.310.0080.01116.62
7.2.300.0130.00816.52
7.2.290.0060.01516.70
7.2.250.0060.01315.10
7.2.240.0130.00615.17
7.2.230.0060.00915.03
7.2.220.0100.00614.97
7.2.210.0070.00714.86
7.2.200.0030.01014.83
7.2.190.0060.00914.75
7.2.180.0040.01114.78
7.2.170.0070.00715.08
7.2.60.0140.01016.53
7.2.50.0030.01016.61
7.2.00.0030.01019.63
7.1.330.0070.00715.92
7.1.320.0100.00615.86
7.1.310.0110.00416.06
7.1.300.0060.01015.51
7.1.290.0060.00815.84
7.1.280.0090.00615.75
7.1.270.0000.01515.41
7.1.260.0070.00715.71
7.1.200.0000.01315.63
7.1.70.0090.00017.28
7.1.60.0090.01519.30
7.1.50.0130.01017.04
7.1.00.0070.07022.47
7.0.200.1180.01014.52
7.0.140.0030.07021.95
7.0.120.0030.04322.05
7.0.60.0070.08719.80
7.0.50.0070.04017.99
7.0.40.0070.04720.02
7.0.30.0270.08720.02
7.0.20.0300.04320.30
7.0.10.0200.05720.12
7.0.00.0000.05720.12
5.6.280.0030.07321.11
5.6.210.0130.07320.62
5.6.200.0030.09018.22
5.6.190.0100.03720.51
5.6.180.0470.07020.52
5.6.170.0330.07720.45
5.6.160.0130.06020.55
5.6.150.0170.04018.16
5.6.140.0130.05718.24
5.6.130.0070.08018.14
5.6.120.0170.07321.14
5.6.110.0000.07321.06
5.6.100.0030.07720.88
5.6.90.0100.07720.95
5.6.80.0070.08020.45
5.5.350.0230.06320.41
5.5.340.0070.08318.05
5.5.330.0100.08020.38
5.5.320.0370.06720.27
5.5.310.0400.07320.34
5.5.300.0100.07717.98
5.5.290.0030.06317.92
5.5.280.0130.05720.77
5.5.270.0100.08020.73
5.5.260.0070.08320.75
5.5.250.0000.04320.55
5.5.240.0030.07720.17
5.4.450.0070.04019.47
5.4.440.0000.04019.18
5.4.430.0030.06719.46
5.4.420.0100.06719.40
5.4.410.0030.04019.07
5.4.400.0070.03319.16
5.4.390.0100.06019.07
5.4.380.0000.08319.12
5.4.370.0030.04719.14
5.4.360.0070.08719.24
5.4.350.0100.06019.15
5.4.340.0100.07319.11
5.4.320.0070.07019.16
5.4.310.0100.05318.85
5.4.300.0000.07019.24
5.4.290.0070.06318.87
5.4.280.0070.05319.14
5.4.270.0030.04019.14
5.4.260.0030.07719.20
5.4.250.0030.06718.84
5.4.240.0130.07019.14
5.4.230.0070.07318.86
5.4.220.0130.07719.25
5.4.210.0070.07319.09
5.4.200.0130.06018.97
5.4.190.0070.07718.84
5.4.180.0100.03719.15
5.4.170.0070.07318.97
5.4.160.0170.06718.89
5.4.150.0070.08319.21
5.4.140.0070.04016.27
5.4.130.0030.04316.36
5.4.120.0030.07716.38
5.4.110.0070.04016.42
5.4.100.0100.07316.49
5.4.90.0170.05016.30
5.4.80.0070.07016.39
5.4.70.0170.06016.45
5.4.60.0030.07716.27
5.4.50.0030.08016.25
5.4.40.0100.06716.28
5.4.30.0000.08016.36
5.4.20.0070.07016.38
5.4.10.0070.06016.36
5.4.00.0070.03715.71
5.3.290.0100.05314.82
5.3.280.0070.06314.74
5.3.270.0030.04014.61
5.3.260.0070.08314.65
5.3.250.0000.08014.64
5.3.240.0130.04014.62
5.3.230.0100.05314.66
5.3.220.0030.05714.46
5.3.210.0070.08014.58
5.3.200.0000.05314.60
5.3.190.0070.07714.49
5.3.180.0130.06714.60
5.3.170.0070.04014.71
5.3.160.0100.05714.59
5.3.150.0130.05314.60
5.3.140.0000.08014.60
5.3.130.0070.06314.55
5.3.120.0030.04014.44
5.3.110.0100.07014.44
5.3.100.0170.04714.05
5.3.90.0100.06713.95
5.3.80.0170.05714.07
5.3.70.0070.03314.07
5.3.60.0070.07314.06
5.3.50.0130.05713.87
5.3.40.0070.07014.00
5.3.30.0130.07013.99
5.3.20.0070.06313.74
5.3.10.0030.04713.56
5.3.00.0100.06313.64
5.2.170.0000.07311.21
5.2.160.0000.03311.07
5.2.150.0000.07011.21
5.2.140.0030.04711.22
5.2.130.0030.06011.14
5.2.120.0030.06311.13
5.2.110.0100.06011.07
5.2.100.0030.06311.26
5.2.90.0070.05011.07
5.2.80.0000.05311.02
5.2.70.0030.03711.15
5.2.60.0030.06011.02
5.2.50.0000.03711.02
5.2.40.0070.06311.16
5.2.30.0000.04010.93
5.2.20.0070.06011.02
5.2.10.0030.05710.88
5.2.00.0030.03710.68
5.1.60.0030.03010.02
5.1.50.0070.04010.02
5.1.40.0030.03010.05
5.1.30.0000.04310.35
5.1.20.0030.03310.43
5.1.10.0030.04710.04
5.1.00.0000.0379.98
5.0.50.0000.0338.70
5.0.40.0000.0438.32
5.0.30.0100.0638.29
5.0.20.0030.0378.29
5.0.10.0000.0338.29
5.0.00.0070.0638.29
4.4.90.0000.0208.29
4.4.80.0070.0278.29
4.4.70.0030.0378.29
4.4.60.0000.0378.29
4.4.50.0000.0238.29
4.4.40.0000.0578.29
4.4.30.0000.0308.29
4.4.20.0030.0378.29
4.4.10.0070.0308.29
4.4.00.0000.0478.29
4.3.110.0000.0208.29
4.3.100.0000.0308.29
4.3.90.0100.0138.29
4.3.80.0000.0508.29
4.3.70.0000.0308.29
4.3.60.0100.0238.29
4.3.50.0000.0408.29
4.3.40.0030.0538.29
4.3.30.0030.0178.29
4.3.20.0000.0178.29
4.3.10.0030.0208.29
4.3.00.0030.0308.29

preferences:
48.78 ms | 401 KiB | 5 Q