3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person{ private $name = "aku"; public function __construct(){ } public function nama($name){ $this->name = $name; } } $orang = new Person; echo $this->nama; ?>

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.01018.42
8.3.50.0100.00721.93
8.3.40.0110.00418.82
8.3.30.0070.00719.05
8.3.20.0000.00820.18
8.3.10.0040.00423.35
8.3.00.0050.00318.93
8.2.180.0080.00816.75
8.2.170.0090.00622.96
8.2.160.0100.00320.35
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00020.67
8.2.110.0040.00422.02
8.2.100.0090.00319.51
8.2.90.0000.00818.96
8.2.80.0000.00917.97
8.2.70.0060.00617.36
8.2.60.0040.00419.53
8.2.50.0050.00318.07
8.2.40.0050.00518.22
8.2.30.0000.01118.18
8.2.20.0040.00417.59
8.2.10.0000.00817.95
8.2.00.0040.00417.66
8.1.280.0150.00025.92
8.1.270.0110.00423.84
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0000.01022.14
8.1.230.0100.00019.16
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0030.00717.21
8.1.190.0000.00817.35
8.1.180.0080.00018.89
8.1.170.0040.00418.52
8.1.160.0030.00521.98
8.1.150.0030.00518.56
8.1.140.0050.00317.38
8.1.130.0020.00517.82
8.1.120.0000.00717.44
8.1.110.0040.00417.40
8.1.100.0000.00717.38
8.1.90.0000.00717.43
8.1.80.0000.00817.43
8.1.70.0000.00717.31
8.1.60.0040.00417.61
8.1.50.0000.00817.51
8.1.40.0030.00517.53
8.1.30.0080.00417.62
8.1.20.0000.00717.67
8.1.10.0000.00717.54
8.1.00.0000.00717.51
8.0.300.0040.00418.77
8.0.290.0000.00817.04
8.0.280.0040.00418.37
8.0.270.0030.00317.23
8.0.260.0030.00317.20
8.0.250.0070.00016.97
8.0.240.0000.00716.99
8.0.230.0030.00516.82
8.0.220.0000.00716.77
8.0.210.0070.00016.86
8.0.200.0000.00616.86
8.0.190.0000.00716.88
8.0.180.0030.00316.96
8.0.170.0030.00516.91
8.0.160.0030.00316.86
8.0.150.0040.00416.82
8.0.140.0040.00416.87
8.0.130.0060.00013.36
8.0.120.0000.00816.81
8.0.110.0000.00716.90
8.0.100.0030.00616.73
8.0.90.0040.00416.93
8.0.80.0090.00616.86
8.0.70.0000.00816.89
8.0.60.0040.00416.74
8.0.50.0000.00816.84
8.0.30.0110.00817.11
8.0.20.0110.01017.40
8.0.10.0040.00416.84
8.0.00.0070.01316.50
7.4.330.0000.00615.00
7.4.320.0040.00416.47
7.4.300.0030.00316.59
7.4.290.0060.00316.60
7.4.280.0000.00716.38
7.4.270.0030.00316.57
7.4.260.0030.00316.57
7.4.250.0040.00416.48
7.4.240.0020.00516.47
7.4.230.0030.00316.46
7.4.220.0070.01016.70
7.4.210.0070.00816.47
7.4.200.0030.00316.66
7.4.190.0030.00316.73
7.4.160.0100.00616.55
7.4.150.0140.01317.40
7.4.140.0120.01117.86
7.4.130.0080.00916.40
7.4.120.0060.00916.57
7.4.110.0030.01516.54
7.4.100.0100.00716.49
7.4.90.0120.00416.48
7.4.80.0080.00819.39
7.4.70.0060.01016.44
7.4.60.0030.01316.46
7.4.50.0000.00516.27
7.4.40.0100.00716.57
7.4.30.0090.00616.55
7.4.00.0070.01015.00
7.3.330.0060.00013.35
7.3.320.0030.00313.34
7.3.310.0070.00016.39
7.3.300.0070.00016.21
7.3.290.0110.00316.36
7.3.280.0070.00916.34
7.3.270.0110.00717.40
7.3.260.0130.00416.52
7.3.250.0150.00816.44
7.3.240.0100.00616.46
7.3.230.0090.00916.39
7.3.210.0070.01016.33
7.3.200.0140.00419.39
7.3.190.0170.00016.41
7.3.180.0120.00316.52
7.3.170.0150.00616.36
7.3.160.0060.01016.43
7.3.120.0050.01014.75
7.3.110.0070.01014.46
7.3.100.0030.01214.65
7.3.90.0000.01214.97
7.3.80.0100.00314.83
7.3.70.0080.00014.73
7.3.60.0080.00414.83
7.3.50.0030.00714.83
7.3.40.0130.00014.49
7.3.30.0000.00814.81
7.3.20.0090.00616.36
7.3.10.0040.01116.64
7.3.00.0070.00716.58
7.2.330.0150.00616.76
7.2.320.0090.00916.70
7.2.310.0110.00516.59
7.2.300.0100.00716.33
7.2.290.0140.00316.71
7.2.250.0000.01515.24
7.2.240.0100.01014.90
7.2.230.0040.01514.91
7.2.220.0070.00714.76
7.2.210.0060.00615.11
7.2.200.0090.00615.05
7.2.190.0090.00614.70
7.2.180.0060.01014.93
7.2.170.0000.01514.82
7.2.60.0030.01217.05
7.2.00.0030.00719.45
7.1.330.0070.00415.79
7.1.320.0030.01015.80
7.1.310.0090.00615.30
7.1.300.0040.00815.45
7.1.290.0040.00915.55
7.1.280.0030.01015.43
7.1.270.0060.00615.65
7.1.260.0140.00015.68
7.1.200.0100.00315.54
7.1.100.0070.01017.84
7.1.70.0040.00816.82
7.1.60.0140.00919.46
7.1.50.0120.00316.61
7.1.00.0100.06722.32
7.0.200.0000.00716.50
7.0.140.0070.07022.21
7.0.60.0100.08319.80
7.0.50.0030.04717.87
7.0.40.0070.06720.24
7.0.30.0300.06020.23
7.0.20.0130.05720.05
7.0.10.0030.04720.05
7.0.00.0070.06020.10
5.6.280.0000.07321.12
5.6.210.0070.07720.53
5.6.200.0070.08718.22
5.6.190.0070.05020.39
5.6.180.0300.05020.55
5.6.170.0170.04720.52
5.6.160.0130.03020.39
5.6.150.0000.08718.14
5.6.140.0070.08018.18
5.6.130.0100.07018.18
5.6.120.0100.03721.12
5.6.110.0030.06021.03
5.6.100.0030.04320.96
5.6.90.0230.05020.97
5.6.80.0070.07020.36
5.5.350.0030.08320.44
5.5.340.0170.04018.09
5.5.330.0130.03320.57
5.5.320.0200.07720.26
5.5.310.0130.04720.41
5.5.300.0070.04317.95
5.5.290.0070.09017.93
5.5.280.0030.04320.89
5.5.270.0170.07320.68
5.5.260.0170.07320.73
5.5.250.0100.04720.80
5.5.240.4170.04020.26
5.4.450.0970.06019.65
5.4.440.0630.06319.55
5.4.430.0870.05019.32
5.4.420.0700.00019.54
5.4.410.0170.05319.08
5.4.400.0300.08018.53
5.4.390.0370.06718.61
5.4.380.0300.05018.75
5.4.370.0000.04318.76
5.4.360.0130.03318.79
5.4.350.0070.03312.02
5.4.340.0020.04012.02
5.4.320.0050.03612.50
5.4.310.0050.03812.50
5.4.300.0050.03812.50
5.4.290.0120.05212.50
5.4.280.0070.05412.39
5.4.270.0090.05112.40
5.4.260.0110.05212.39
5.4.250.0070.05712.39
5.4.240.0080.05412.39
5.4.230.0110.06012.38
5.4.220.0070.07612.38
5.4.210.0110.06212.39
5.4.200.0090.05612.38
5.4.190.0080.05412.39
5.4.180.0080.05312.38
5.4.170.0090.05712.39
5.4.160.0090.05012.39
5.4.150.0120.04712.39
5.4.140.0110.06212.07
5.4.130.0090.04812.05
5.4.120.0090.05012.02
5.4.110.0090.04712.01
5.4.100.0080.04712.01
5.4.90.0100.05212.02
5.4.80.0110.05212.02
5.4.70.0090.05012.00
5.4.60.0090.06312.01
5.4.50.0290.16112.00
5.4.40.0140.07311.99
5.4.30.0120.04312.00
5.4.20.0060.05311.99
5.4.10.0110.04712.00
5.4.00.0110.04711.49
5.3.290.0070.03812.80
5.3.280.0150.04412.71
5.3.270.0120.05112.72
5.3.260.0110.05212.72
5.3.250.0090.05112.72
5.3.240.0090.05012.72
5.3.230.0110.04712.71
5.3.220.0080.05312.68
5.3.210.0130.05112.68
5.3.200.0120.05312.68
5.3.190.0100.07312.68
5.3.180.0110.06712.68
5.3.170.0100.06812.67
5.3.160.0140.07712.68
5.3.150.0150.05912.67
5.3.140.0070.05512.66
5.3.130.0050.06412.66
5.3.120.0110.05312.66
5.3.110.0090.06112.66
5.3.100.0070.05312.12
5.3.90.0060.03812.11
5.3.80.0050.03812.10
5.3.70.0090.03512.10
5.3.60.0080.03612.08
5.3.50.0030.04012.03
5.3.40.0090.03312.04
5.3.30.0070.03311.99
5.3.20.0050.03811.77
5.3.10.0060.03811.73
5.3.00.0040.04011.72
5.2.170.0070.0439.23
5.2.160.0070.0429.23
5.2.150.0080.0339.23
5.2.140.0080.0389.22
5.2.130.0060.0309.18
5.2.120.0050.0299.18
5.2.110.0030.0339.19
5.2.100.0060.0279.18
5.2.90.0020.0339.18
5.2.80.0060.0299.18
5.2.70.0030.0339.18
5.2.60.0070.0299.13
5.2.50.0020.0359.10
5.2.40.0080.0279.07
5.2.30.0070.0309.05
5.2.20.0050.0309.04
5.2.10.0050.0338.95
5.2.00.0030.0358.81
5.1.60.0060.0238.09
5.1.50.0030.0278.09
5.1.40.0020.0258.07
5.1.30.0040.0278.42
5.1.20.0050.0278.45
5.1.10.0030.0288.17
5.1.00.0060.0248.17
5.0.50.0050.0216.64
5.0.40.0050.0186.50
5.0.30.0060.0396.32
5.0.20.0030.0286.29
5.0.10.0050.0276.26
5.0.00.0060.0396.25
4.4.90.0040.0144.78
4.4.80.0040.0224.76
4.4.70.0010.0174.75
4.4.60.0050.0154.75
4.4.50.0040.0154.77
4.4.40.0050.0234.71
4.4.30.0050.0134.75
4.4.20.0010.0174.84
4.4.10.0040.0144.85
4.4.00.0050.0294.76
4.3.110.0040.0174.67
4.3.100.0050.0134.66
4.3.90.0020.0164.64
4.3.80.0020.0254.59
4.3.70.0050.0134.63
4.3.60.0030.0154.63
4.3.50.0020.0174.63
4.3.40.0010.0264.54
4.3.30.0020.0163.30
4.3.20.0020.0163.28
4.3.10.0020.0163.24
4.3.00.0100.0236.66

preferences:
41.3 ms | 401 KiB | 5 Q