3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { protected $name; public function setName($name) { $this->name = $name; } public function getName() { return $this->name; } } class Student extends Person { public function showName() { return $this->name; } } $person = new Person(); $person->setName('Daan'); $person->getName();

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.0070.00716.50
8.3.50.0130.00816.53
8.3.40.0070.00718.59
8.3.30.0070.00718.67
8.3.20.0000.00818.59
8.3.10.0030.00520.40
8.3.00.0090.00019.26
8.2.180.0150.00416.63
8.2.170.0040.01122.96
8.2.160.0110.00421.07
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00619.36
8.2.110.0000.00921.02
8.2.100.0090.00317.78
8.2.90.0030.00619.03
8.2.80.0040.00417.68
8.2.70.0040.00417.38
8.2.60.0050.00317.79
8.2.50.0000.00818.07
8.2.40.0070.00018.22
8.2.30.0080.00017.89
8.2.20.0070.00417.50
8.2.10.0060.00317.61
8.2.00.0000.00817.63
8.1.280.0110.00425.92
8.1.270.0030.00624.66
8.1.260.0050.00326.35
8.1.250.0130.00328.09
8.1.240.0000.00920.64
8.1.230.0080.00420.91
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0070.00017.41
8.1.180.0000.00818.10
8.1.170.0000.00718.74
8.1.160.0040.00418.75
8.1.150.0000.00818.60
8.1.140.0040.00417.25
8.1.130.0030.00317.88
8.1.120.0040.00417.42
8.1.110.0000.00717.29
8.1.100.0040.00417.40
8.1.90.0070.00017.31
8.1.80.0030.00517.31
8.1.70.0040.00417.33
8.1.60.0000.00817.55
8.1.50.0000.00817.54
8.1.40.0040.00417.43
8.1.30.0000.00817.62
8.1.20.0000.00717.68
8.1.10.0080.00017.39
8.1.00.0070.00017.46
8.0.300.0000.00719.89
8.0.290.0040.00416.63
8.0.280.0050.00318.41
8.0.270.0000.00717.20
8.0.260.0090.00016.67
8.0.250.0000.00716.89
8.0.240.0080.00016.93
8.0.230.0030.00416.91
8.0.220.0000.00716.86
8.0.210.0040.00416.88
8.0.200.0030.00316.91
8.0.190.0080.00016.79
8.0.180.0040.00416.78
8.0.170.0040.00416.84
8.0.160.0000.00716.86
8.0.150.0030.00616.82
8.0.140.0030.00516.83
8.0.130.0000.00513.34
8.0.120.0040.00416.84
8.0.110.0000.00816.67
8.0.100.0040.00416.90
8.0.90.0000.00816.67
8.0.80.0100.00616.83
8.0.70.0030.00516.66
8.0.60.0050.00316.73
8.0.50.0070.00016.69
8.0.30.0100.01216.97
8.0.20.0130.00517.18
8.0.10.0000.00716.81
8.0.00.0140.00416.79
7.4.330.0000.00512.99
7.4.320.0030.00616.44
7.4.300.0030.00616.51
7.4.290.0030.00416.62
7.4.280.0040.00416.50
7.4.270.0050.00316.64
7.4.260.0000.00513.25
7.4.250.0000.00816.60
7.4.240.0030.00316.44
7.4.230.0030.00316.64
7.4.220.0090.00916.55
7.4.210.0070.00716.59
7.4.200.0000.00716.61
7.4.190.0070.00016.58
7.4.160.0100.00616.42
7.4.150.0090.00916.49
7.4.140.0080.01016.56
7.4.130.0080.00916.42
7.4.120.0080.00816.59
7.4.110.0070.01016.34
7.4.100.0060.01416.50
7.4.90.0090.00916.70
7.4.80.0100.00616.45
7.4.70.0100.01516.56
7.4.60.0090.01016.23
7.4.50.0060.00316.27
7.4.40.0070.00416.38
7.4.30.0100.00616.63
7.4.00.0040.00714.59
7.3.330.0000.00613.18
7.3.320.0030.00313.22
7.3.310.0030.00316.28
7.3.300.0040.00416.19
7.3.290.0100.00716.21
7.3.280.0060.01116.21
7.3.270.0190.00316.34
7.3.260.0150.00916.38
7.3.250.0090.00916.11
7.3.240.0100.00716.40
7.3.230.0140.00316.36
7.3.210.0090.00916.24
7.3.200.0100.01019.39
7.3.190.0140.00316.22
7.3.180.0090.00616.16
7.3.170.0060.00916.33
7.3.160.0140.00316.11
7.3.120.0060.00914.59
7.2.330.0030.01516.54
7.2.320.0100.00716.34
7.2.310.0030.02216.65
7.2.300.0000.02016.56
7.2.290.0090.00916.59
7.2.00.0040.01119.14
7.1.100.0030.01017.90
7.1.70.0030.00517.01
7.1.60.0170.00719.40
7.1.50.0070.01716.85
7.1.00.0000.03722.35
7.0.200.0000.00716.33
7.0.140.0070.07021.96
7.0.120.0030.05022.03
7.0.60.0130.08321.79
7.0.50.0100.04722.12
7.0.40.0170.03020.12
7.0.30.0100.04020.00
7.0.20.0130.03020.10
7.0.10.0070.04020.14
7.0.00.0070.05020.18
5.6.280.0030.07321.12
5.6.210.0070.05020.67
5.6.200.0170.04021.01
5.6.190.0200.05321.01
5.6.180.0200.02721.02
5.6.170.0170.03021.03
5.6.160.0130.03021.12
5.6.150.0100.03721.09
5.6.140.0200.02321.07
5.6.130.0070.03721.03
5.6.120.0070.04020.99
5.6.110.0070.03321.14
5.6.100.0100.03321.04
5.6.90.0100.03320.88
5.6.80.0100.03320.44
5.6.70.0100.03020.37
5.6.60.0100.03320.38
5.6.50.0070.03320.38
5.6.40.0130.08020.33
5.6.30.0070.05720.49
5.6.20.0100.05020.36
5.6.10.0100.05020.34
5.6.00.0170.06020.25
5.5.350.0030.04720.38
5.5.340.0200.03320.97
5.5.330.0170.03020.99
5.5.320.0200.02720.77
5.5.310.0130.04320.85
5.5.300.0100.03720.88
5.5.290.0100.03020.64
5.5.280.0130.03020.88
5.5.270.0170.02720.87
5.5.260.0070.03720.98
5.5.250.0030.04720.59
5.5.240.0070.04020.24
5.5.230.0100.04020.19
5.5.220.0100.03020.26
5.5.210.0030.04320.07
5.5.200.0100.04320.21
5.5.190.0130.04720.12
5.5.180.0070.04020.09
5.5.160.0030.04720.34
5.5.150.0070.08020.21
5.5.140.0100.07320.13
5.5.130.0070.06020.24
5.5.120.0100.06020.00
5.5.110.0100.03720.15
5.5.100.0100.07720.10
5.5.90.0130.03320.13
5.5.80.0170.07020.07
5.5.70.0070.07720.12
5.5.60.0100.03720.00
5.5.50.0100.03720.20
5.5.40.0070.04020.03
5.5.30.0070.04020.11
5.5.20.0170.05719.98
5.5.10.0100.06719.91
5.5.00.0100.07019.98
5.4.450.0100.03319.49
5.4.440.0030.03719.40
5.4.430.0070.03319.22
5.4.420.0100.03019.23
5.4.410.0130.02719.10
5.4.400.0030.03719.07
5.4.390.0030.03319.07
5.4.380.0070.03018.91
5.4.370.0100.03019.05
5.4.360.0030.03719.05
5.4.350.0070.04019.09
5.4.340.0130.04019.20
5.4.320.0130.03319.12
5.4.310.0100.04019.19
5.4.300.0100.07018.91
5.4.290.0130.07719.21
5.4.280.0070.07319.01
5.4.270.0170.07019.07
5.4.260.0130.07019.16
5.4.250.0130.07319.00
5.4.240.0100.05319.17
5.4.230.0130.06719.19
5.4.220.0070.04019.00
5.4.210.0130.06019.11
5.4.200.0130.03719.06
5.4.190.0130.03019.06
5.4.180.0130.07019.00
5.4.170.0200.06719.15
5.4.160.0130.06019.05
5.4.150.0130.03718.89
5.4.140.0100.05716.25
5.4.130.0170.03016.45
5.4.120.0130.03016.42
5.4.110.0070.04716.44
5.4.100.0170.06716.52
5.4.90.0100.05316.44
5.4.80.0100.04716.40
5.4.70.0130.03716.41
5.4.60.0100.03316.49
5.4.50.0100.04716.22
5.4.40.0130.04716.39
5.4.30.0100.04716.40
5.4.20.0100.03016.48
5.4.10.0170.06016.28
5.4.00.0070.03715.64
5.3.290.0070.04014.74
5.3.280.0070.05014.71
5.3.270.0130.06014.52
5.3.260.0130.07314.63
5.3.250.0030.04314.68
5.3.240.0130.07014.56
5.3.230.0100.06714.68
5.3.220.0070.05014.48
5.3.210.0070.07714.61
5.3.200.0130.04314.42
5.3.190.0030.07014.68
5.3.180.0100.04714.61
5.3.170.0100.03714.64
5.3.160.0100.07014.63
5.3.150.0070.03714.42
5.3.140.0100.03714.52
5.3.130.0030.05014.60
5.3.120.0130.03314.47
5.3.110.0070.03714.51
5.3.100.0030.04014.10
5.3.90.0170.04714.03
5.3.80.0100.05714.07
5.3.70.0100.04014.04
5.3.60.0130.04314.05
5.3.50.0100.07314.00
5.3.40.0130.03014.00
5.3.30.0100.05313.96
5.3.20.0070.03713.80
5.3.10.0070.06313.75
5.3.00.0200.06013.61
5.2.170.0030.03311.22
5.2.160.0030.04711.20
5.2.150.0030.06711.05
5.2.140.0070.03311.24
5.2.130.0070.03010.96
5.2.120.0100.05311.00
5.2.110.0000.02711.00
5.2.100.0000.02711.13
5.2.90.0030.05010.98
5.2.80.0070.03011.18
5.2.70.0070.06011.15
5.2.60.0030.03310.95
5.2.50.0030.03010.92
5.2.40.0030.02311.04
5.2.30.0000.03011.02
5.2.20.0000.05311.02
5.2.10.0000.03710.93
5.2.00.0000.03010.79
5.1.60.0070.04710.09
5.1.50.0000.0309.88
5.1.40.0000.04310.08
5.1.30.0000.04310.25
5.1.20.0000.03710.21
5.1.10.0030.0239.89
5.1.00.0000.03310.07
5.0.50.0030.0378.98
5.0.40.0000.0378.98
5.0.30.0030.0438.98
5.0.20.0000.0308.98
5.0.10.0000.0238.98
5.0.00.0000.0408.98
4.4.90.0000.0278.98
4.4.80.0000.0178.98
4.4.70.0030.0278.98
4.4.60.0000.0338.98
4.4.50.0070.0138.98
4.4.40.0000.0238.98
4.4.30.0030.0308.98
4.4.20.0000.0178.98
4.4.10.0000.0308.98
4.4.00.0030.0508.98
4.3.110.0030.0138.98
4.3.100.0030.0338.98
4.3.90.0000.0238.98
4.3.80.0000.0338.98
4.3.70.0000.0178.98
4.3.60.0000.0208.98
4.3.50.0000.0178.98
4.3.40.0030.0438.98
4.3.30.0030.0178.98
4.3.20.0000.0178.98
4.3.10.0000.0178.98
4.3.00.0000.0178.98

preferences:
44.98 ms | 401 KiB | 5 Q