3v4l.org

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

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.0100.01016.88
8.3.50.0090.00622.12
8.3.40.0110.00418.66
8.3.30.0060.00919.13
8.3.20.0070.00020.26
8.3.10.0040.00423.54
8.3.00.0000.00820.80
8.2.180.0120.00318.29
8.2.170.0150.00022.96
8.2.160.0110.00320.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0110.00720.70
8.2.110.0040.00720.99
8.2.100.0120.00017.72
8.2.90.0080.00019.02
8.2.80.0030.00517.97
8.2.70.0000.00917.63
8.2.60.0080.00017.92
8.2.50.0080.00018.07
8.2.40.0100.00018.02
8.2.30.0050.00318.25
8.2.20.0050.00217.74
8.2.10.0000.00718.09
8.2.00.0080.00017.73
8.1.280.0100.01025.92
8.1.270.0080.00023.88
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0060.00321.27
8.1.230.0060.00617.42
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0070.00418.42
8.1.160.0000.00721.95
8.1.150.0040.00418.57
8.1.140.0050.00217.29
8.1.130.0030.00317.88
8.1.120.0040.00417.31
8.1.110.0000.00717.26
8.1.100.0000.00717.41
8.1.90.0050.00317.39
8.1.80.0040.00417.39
8.1.70.0000.00717.27
8.1.60.0060.00317.50
8.1.50.0040.00417.44
8.1.40.0050.00517.50
8.1.30.0060.00617.61
8.1.20.0020.00517.56
8.1.10.0000.00917.48
8.1.00.0000.00717.40
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0040.00418.39
8.0.270.0000.00717.19
8.0.260.0050.00317.14
8.0.250.0030.00316.93
8.0.240.0030.00316.80
8.0.230.0090.00016.85
8.0.220.0000.00716.78
8.0.210.0000.00716.87
8.0.200.0060.00016.91
8.0.190.0040.00416.95
8.0.180.0030.00516.80
8.0.170.0040.00416.91
8.0.160.0000.00716.95
8.0.150.0050.00316.78
8.0.140.0000.00816.75
8.0.130.0000.00513.38
8.0.120.0050.00316.86
8.0.110.0080.00016.78
8.0.100.0080.00016.84
8.0.90.0040.00416.78
8.0.80.0030.01116.93
8.0.70.0040.00416.84
8.0.60.0040.00416.79
8.0.50.0040.00416.89
8.0.30.0100.00916.94
8.0.20.0130.00617.40
8.0.10.0050.00217.09
8.0.00.0030.01416.60
7.4.330.0030.00415.00
7.4.320.0030.00316.52
7.4.300.0030.00316.43
7.4.290.0030.00316.59
7.4.280.0030.00616.51
7.4.270.0030.00316.48
7.4.260.0030.00316.49
7.4.250.0040.00416.46
7.4.240.0030.00416.56
7.4.230.0030.00316.60
7.4.220.0110.00716.47
7.4.210.0070.01016.63
7.4.200.0030.00316.59
7.4.190.0000.00716.46
7.4.160.0090.00616.55
7.4.150.0070.01317.40
7.4.140.0080.01017.86
7.4.130.0120.00716.52
7.4.120.0090.00816.64
7.4.110.0070.01116.73
7.4.100.0120.00616.45
7.4.90.0070.01016.45
7.4.80.0060.01219.39
7.4.70.0100.00716.53
7.4.60.0090.01216.45
7.4.50.0040.00416.41
7.4.40.0110.00716.58
7.4.30.0090.00616.32
7.4.00.0030.01414.77
7.3.330.0030.00313.23
7.3.320.0050.00013.31
7.3.310.0040.00416.38
7.3.300.0070.00016.21
7.3.290.0090.01216.34
7.3.280.0110.00716.37
7.3.270.0150.00617.40
7.3.260.0060.01816.28
7.3.250.0150.00516.42
7.3.240.0070.01016.56
7.3.230.0040.01316.43
7.3.210.0100.01416.56
7.3.200.0160.00016.39
7.3.190.0100.01216.42
7.3.180.0100.00716.63
7.3.170.0030.01316.46
7.3.160.0060.00916.44
7.3.120.0090.00614.85
7.3.10.0080.00416.59
7.3.00.0020.00816.34
7.2.330.0130.00716.38
7.2.320.0070.01116.57
7.2.310.0090.01516.54
7.2.300.0060.01016.68
7.2.290.0080.01116.65
7.2.130.0060.00816.80
7.2.120.0010.00916.71
7.2.110.0070.00716.86
7.2.100.0030.01016.85
7.2.90.0070.00516.82
7.2.80.0070.00816.86
7.2.70.0070.00916.52
7.2.60.0050.01016.72
7.2.50.0030.01016.76
7.2.40.0050.00716.73
7.2.30.0030.00816.72
7.2.20.0020.01316.79
7.2.10.0040.01116.82
7.2.00.0040.00617.74
7.1.250.0040.00815.50
7.1.200.0000.01115.38
7.1.100.0040.01218.03
7.1.70.0000.01417.06
7.1.60.0130.01019.46
7.1.50.0100.01316.95
7.1.00.0070.07722.36
7.0.200.0000.00716.79
7.0.140.0000.08022.09
7.0.60.0070.08719.86
7.0.50.0030.04017.95
7.0.40.0130.03720.27
7.0.30.0230.04320.29
7.0.20.0300.08020.24
7.0.10.0200.05320.19
7.0.00.0100.08320.09
5.6.280.0000.07721.08
5.6.210.0100.08320.54
5.6.200.0100.07318.19
5.6.190.0130.07720.77
5.6.180.3170.04320.56
5.6.170.0230.05020.54
5.6.160.0130.04320.50
5.6.150.0130.04318.12
5.6.140.0030.05018.15
5.6.130.0000.05018.12
5.6.120.0100.04720.98
5.6.110.0070.03721.00
5.6.100.0070.07320.98
5.6.90.0170.07021.11
5.6.80.0070.05020.43
5.6.70.0270.07020.38
5.5.350.0100.08020.35
5.5.340.0100.07017.96
5.5.330.0070.07020.37
5.5.320.0030.05320.37
5.5.310.0270.08020.23
5.5.300.0100.07717.99
5.5.290.0070.06317.95
5.5.280.0000.08020.68
5.5.270.0070.08320.79
5.5.260.0000.04320.80
5.5.250.0000.04320.46
5.5.240.0170.06020.16
5.4.450.0870.05019.47
5.4.440.0900.05719.58
5.4.430.0130.05019.45
5.4.420.0670.00019.52
5.4.410.0070.07019.02
5.4.400.0200.06018.63
5.4.390.0370.05018.62
5.4.380.0230.06018.70
5.4.370.0030.04018.61
5.4.360.0100.03718.59
5.4.350.0090.03212.02
5.4.340.0070.03812.02
5.4.320.0070.03812.50
5.4.310.0070.03712.50
5.4.300.0070.05012.50
5.4.290.0090.04412.50
5.4.280.0060.03812.39
5.4.270.0090.05512.39
5.4.260.0090.03812.39
5.4.250.0050.04412.40
5.4.240.0090.03912.40
5.4.230.0050.05312.38
5.4.220.0080.04212.39
5.4.210.0140.04612.39
5.4.200.0080.06212.38
5.4.190.0100.07312.38
5.4.180.0270.09412.38
5.4.170.0120.04712.40
5.4.160.0200.10012.39
5.4.150.0150.10412.39
5.4.140.0060.06812.07
5.4.130.0160.09512.06
5.4.120.0060.07612.01
5.4.110.0140.08712.01
5.4.100.0120.04612.01
5.4.90.0090.04212.01
5.4.80.0070.03812.02
5.4.70.0030.04112.01
5.4.60.0090.05212.01
5.4.50.0040.04712.01
5.4.40.0120.03412.00
5.4.30.0200.08411.99
5.4.20.0070.03912.00
5.4.10.0170.08311.99
5.4.00.0100.06611.48
5.3.290.0040.04112.80
5.3.280.0190.12112.71
5.3.270.0120.07012.72
5.3.260.0080.05512.72
5.3.250.0070.05412.72
5.3.240.0050.05612.72
5.3.230.0090.05612.71
5.3.220.0060.05812.68
5.3.210.0110.04712.68
5.3.200.0090.06812.68
5.3.190.0120.04012.68
5.3.180.0180.10812.68
5.3.170.0070.05612.67
5.3.160.0080.06612.67
5.3.150.0090.06812.68
5.3.140.0110.05612.66
5.3.130.0090.05812.65
5.3.120.0120.05512.65
5.3.110.0100.06112.66
5.3.100.0110.05612.12
5.3.90.0110.03912.11
5.3.80.0070.04312.10
5.3.70.0180.05812.10
5.3.60.0080.04912.08
5.3.50.0140.03412.03
5.3.40.0070.05212.03
5.3.30.0150.06711.98
5.3.20.0070.06211.78
5.3.10.0100.05011.73
5.3.00.0080.04411.72
5.2.170.0060.0479.23
5.2.160.0050.0409.23
5.2.150.0060.0409.23
5.2.140.0060.0329.23
5.2.130.0020.0339.19
5.2.120.0100.0259.18
5.2.110.0040.0349.20
5.2.100.0340.0899.18
5.2.90.0050.0399.18
5.2.80.0080.0349.18
5.2.70.0070.0359.18
5.2.60.0100.0489.13
5.2.50.0070.0379.10
5.2.40.0060.0359.07
5.2.30.0100.0589.05
5.2.20.0190.0599.04
5.2.10.0120.0318.95
5.2.00.0070.0308.81
5.1.60.0040.0278.09
5.1.50.0040.0288.09
5.1.40.0080.0238.07
5.1.30.0080.0268.42
5.1.20.0060.0288.45
5.1.10.0040.0278.16
5.1.00.0040.0278.16
5.0.50.0020.0236.65
5.0.40.0030.0226.50
5.0.30.0080.0376.32
5.0.20.0090.0446.29
5.0.10.0020.0306.26
5.0.00.0040.0396.25
4.4.90.0040.0154.78
4.4.80.0030.0164.76
4.4.70.0060.0144.76
4.4.60.0030.0284.75
4.4.50.0030.0284.77
4.4.40.0050.0524.70
4.4.30.0100.0424.76
4.4.20.0030.0224.85
4.4.10.0090.0504.85
4.4.00.0120.0404.76
4.3.110.0020.0204.67
4.3.100.0060.0164.66
4.3.90.0050.0274.63
4.3.80.0070.0264.58
4.3.70.0080.0134.63
4.3.60.0030.0184.63
4.3.50.0050.0174.63
4.3.40.0170.0684.54
4.3.30.0020.0203.30
4.3.20.0020.0193.28
4.3.10.0020.0183.24
4.3.00.0100.0236.66

preferences:
44.92 ms | 401 KiB | 5 Q