3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class bob{ protected $myitem; function __contruct(){ $myitem = 25; } //public function GetItem(){ //return $this->$myitem; //} } class john extends bob{ public function GetItem(){ //echo parent::GetItem(); echo $this->$myitem; } } $j = new john(); $j->GetItem();

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.40.0120.00318.58
8.3.30.0070.00719.09
8.3.20.0100.00020.05
8.3.10.0040.00423.71
8.3.00.0080.00018.94
8.2.170.0120.00322.96
8.2.160.0100.00320.53
8.2.150.0140.00024.18
8.2.140.0070.01124.66
8.2.130.0000.00726.16
8.2.120.0040.00420.80
8.2.110.0000.00822.26
8.2.100.0050.00619.32
8.2.90.0000.00719.22
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0090.00517.53
8.2.50.0030.00618.07
8.2.40.0050.00321.19
8.2.30.0000.00718.16
8.2.20.0030.00617.71
8.2.10.0000.00718.02
8.2.00.0050.00317.81
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.92
8.1.230.0110.00019.09
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0070.00317.23
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0050.00318.50
8.1.160.0000.00721.91
8.1.150.0000.00718.67
8.1.140.0030.00517.49
8.1.130.0030.00317.73
8.1.120.0000.00817.51
8.1.110.0040.00417.35
8.1.100.0000.00717.46
8.1.90.0000.00717.34
8.1.80.0000.00817.43
8.1.70.0080.00017.35
8.1.60.0040.00417.47
8.1.50.0000.00817.35
8.1.40.0030.00617.52
8.1.30.0030.00517.59
8.1.20.0030.00517.57
8.1.10.0000.00717.59
8.1.00.0080.00017.54
8.0.300.0040.00418.77
8.0.290.0080.00317.16
8.0.280.0000.00718.46
8.0.270.0000.00717.16
8.0.260.0030.00317.27
8.0.250.0040.00417.02
8.0.240.0000.00717.05
8.0.230.0000.00716.96
8.0.220.0000.00717.00
8.0.210.0000.00716.92
8.0.200.0060.00016.98
8.0.190.0100.00016.98
8.0.180.0000.00716.93
8.0.170.0000.00816.99
8.0.160.0040.00416.83
8.0.150.0030.00316.93
8.0.140.0030.00517.00
8.0.130.0000.00513.34
8.0.120.0080.00017.00
8.0.110.0000.00716.91
8.0.100.0050.00217.07
8.0.90.0000.00716.89
8.0.80.0100.00616.94
8.0.70.0070.00016.93
8.0.60.0000.00717.02
8.0.50.0050.00316.80
8.0.30.0100.00817.07
8.0.20.0140.00817.40
8.0.10.0040.00416.94
8.0.00.0110.00816.71
7.4.330.0070.00015.00
7.4.320.0070.00316.57
7.4.300.0030.00316.65
7.4.290.0070.00016.66
7.4.280.0040.00416.58
7.4.270.0000.00716.62
7.4.260.0040.00716.43
7.4.250.0030.00616.39
7.4.240.0070.00016.50
7.4.230.0000.00716.49
7.4.220.0090.00916.56
7.4.210.0110.00316.62
7.4.200.0070.00016.71
7.4.190.0030.00316.46
7.4.160.0070.00716.56
7.4.150.0090.00917.40
7.4.140.0070.01617.86
7.4.130.0070.01016.46
7.4.120.0090.00816.50
7.4.110.0100.01316.46
7.4.100.0080.00816.55
7.4.90.0100.00716.39
7.4.80.0030.01719.39
7.4.70.0100.00716.55
7.4.60.0190.00316.41
7.4.50.0000.00416.42
7.4.40.0150.00716.39
7.4.30.0060.01516.53
7.4.00.0050.01214.90
7.3.330.0000.00613.19
7.3.320.0030.00313.33
7.3.310.0070.00016.39
7.3.300.0040.00416.38
7.3.290.0090.00616.36
7.3.280.0100.00716.41
7.3.270.0070.01017.40
7.3.260.0090.00916.47
7.3.250.0120.00516.42
7.3.240.0000.01816.34
7.3.230.0090.00916.39
7.3.210.0060.01016.32
7.3.200.0070.01419.39
7.3.190.0060.01116.39
7.3.180.0030.01616.43
7.3.170.0110.00716.42
7.3.160.0070.01016.39
7.3.120.0080.00714.77
7.3.110.0090.00914.87
7.3.100.0110.00714.68
7.3.90.0080.00014.78
7.3.80.0070.00714.75
7.3.70.0030.01014.81
7.3.60.0030.01014.67
7.3.50.0090.00414.70
7.3.40.0060.00614.60
7.3.30.0000.01314.62
7.3.20.0070.00716.70
7.3.10.0030.01016.79
7.3.00.0070.00316.54
7.2.330.0170.00316.52
7.2.320.0060.01016.73
7.2.310.0030.01416.38
7.2.300.0150.00816.79
7.2.290.0110.01116.36
7.2.250.0110.00615.25
7.2.240.0110.00615.03
7.2.230.0060.00915.13
7.2.220.0030.01314.79
7.2.210.0060.00915.16
7.2.200.0030.00714.65
7.2.190.0000.01114.92
7.2.180.0120.00014.54
7.2.170.0090.00314.88
7.2.160.0090.00614.66
7.2.150.0000.01116.79
7.2.140.0000.01417.05
7.2.130.0060.01016.74
7.2.120.0120.00616.98
7.2.110.0070.01016.73
7.2.100.0040.01216.84
7.2.90.0030.00816.98
7.2.80.0100.00316.85
7.2.70.0060.00916.75
7.2.60.0050.00716.64
7.2.50.0100.00716.99
7.2.40.0030.00917.11
7.2.30.0030.01216.83
7.2.20.0040.01216.91
7.2.10.0100.00016.80
7.2.00.0010.01118.00
7.1.330.0060.01015.43
7.1.320.0000.01715.64
7.1.310.0000.01415.55
7.1.300.0000.01515.61
7.1.290.0060.00615.66
7.1.280.0030.00615.81
7.1.270.0060.00615.67
7.1.260.0090.00315.69
7.1.250.0040.00415.69
7.1.240.0090.00915.46
7.1.230.0030.01115.41
7.1.220.0040.00415.58
7.1.210.0040.00815.70
7.1.200.0120.00415.60
7.1.190.0040.00715.70
7.1.180.0080.00415.35
7.1.170.0120.00315.57
7.1.160.0040.01115.73
7.1.150.0000.01315.40
7.1.140.0030.00915.70
7.1.130.0030.00715.73
7.1.120.0040.00715.68
7.1.110.0100.00615.51
7.1.100.0050.00516.82
7.1.90.0040.00715.17
7.1.80.0060.00615.51
7.1.70.0050.00516.09
7.1.60.0050.01317.46
7.1.50.0040.00816.34
7.1.40.0070.00315.79
7.1.30.0070.00715.74
7.1.20.0060.00615.52
7.1.10.0110.00015.42
7.1.00.0040.04419.09
7.0.330.0000.01015.30
7.0.320.0080.00315.16
7.0.310.0060.00915.43
7.0.300.0090.00615.43
7.0.290.0030.01015.04
7.0.280.0000.01415.31
7.0.270.0040.00415.29
7.0.260.0040.00715.39
7.0.250.0080.00815.54
7.0.240.0030.01015.47
7.0.230.0070.00715.32
7.0.220.0040.00415.39
7.0.210.0060.00615.25
7.0.200.0050.00815.87
7.0.190.0060.00615.40
7.0.180.0040.00415.09
7.0.170.0040.01115.32
7.0.160.0070.00315.39
7.0.150.0000.00715.00
7.0.140.0060.03918.81
7.0.130.0030.01015.12
7.0.120.0080.00315.35
7.0.110.0040.01115.34
7.0.100.0060.00315.36
7.0.90.0030.00915.35
7.0.80.0060.00615.07
7.0.70.0050.00515.29
7.0.60.0050.03017.56
7.0.50.0100.02516.65
7.0.40.0030.04215.53
7.0.30.0070.04415.62
7.0.20.0170.03015.58
7.0.10.0030.04615.53
7.0.00.0080.04015.60
5.6.400.0090.00614.31
5.6.390.0030.01414.31
5.6.380.0000.01014.53
5.6.370.0030.01214.39
5.6.360.0100.00314.41
5.6.350.0060.00914.20
5.6.340.0030.00614.34
5.6.330.0000.01314.12
5.6.320.0090.00614.39
5.6.310.0070.00713.99
5.6.300.0080.00414.35
5.6.290.0030.01014.13
5.6.280.0060.00613.95
5.6.270.0070.00714.07
5.6.260.0070.00714.07
5.6.250.0040.00414.37
5.6.240.0030.01414.14
5.6.230.0000.01114.21
5.6.220.0050.00514.41
5.6.210.0130.04317.48
5.6.200.0070.03316.30
5.6.190.0090.03016.26
5.6.180.0100.04316.18
5.6.170.0010.02916.28
5.6.160.0080.03316.17
5.6.150.0080.04016.33
5.6.140.0150.03716.23
5.6.130.0110.03516.19
5.6.120.0090.02316.23
5.6.110.0070.03816.03
5.6.100.0130.03816.23
5.6.90.0080.02816.03
5.6.80.0050.04815.76
5.6.70.0080.03715.89
5.6.60.0060.03815.72
5.6.50.0030.04515.81
5.6.40.0050.02715.96
5.6.30.0050.02815.86
5.6.20.0090.04115.75
5.6.10.0070.04515.92
5.6.00.0070.04215.91
5.5.380.0070.01014.14
5.5.370.0030.00614.34
5.5.360.0040.01113.99
5.5.350.0120.04317.33
5.5.340.0080.04516.08
5.5.330.0090.02816.22
5.5.320.0100.03316.13
5.5.310.0080.03216.18
5.5.300.0150.03816.14
5.5.290.0060.02616.06
5.5.280.0040.03416.06
5.5.270.0000.02916.11
5.5.260.0060.03316.07
5.5.250.0020.04416.07
5.5.240.0070.04315.75
5.5.230.0020.02715.73
5.5.220.0030.03815.82
5.5.210.0090.04115.64
5.5.200.0070.03015.73
5.5.190.0100.04015.73
5.5.180.0030.04515.70
5.5.170.0070.00714.21
5.5.160.0080.04115.83
5.5.150.0020.03415.70
5.5.140.0050.02215.54
5.5.130.0060.03415.76
5.5.120.0070.03515.62
5.5.110.0080.02615.71
5.5.100.0030.04215.56
5.5.90.0070.02615.55
5.5.80.0030.02715.73
5.5.70.0120.03815.71
5.5.60.0030.03215.65
5.5.50.0070.02715.77
5.5.40.0070.03815.59
5.5.30.0090.03015.68
5.5.20.0100.03815.47
5.5.10.0090.04015.67
5.5.00.0080.04315.71
5.4.450.0020.04215.13
5.4.440.0080.04315.12
5.4.430.0030.04515.26
5.4.420.0060.03015.20
5.4.410.0030.02215.08
5.4.400.0020.02914.91
5.4.390.0050.04214.97
5.4.380.0090.02314.93
5.4.370.0050.04014.88
5.4.360.0050.04115.00
5.4.350.0060.03615.05
5.4.340.0080.02315.11
5.4.330.0000.01011.10
5.4.320.0070.02214.89
5.4.310.0070.03915.08
5.4.300.0100.03914.85
5.4.290.0020.02414.82
5.4.280.0050.04314.84
5.4.270.0030.02614.93
5.4.260.0050.03014.98
5.4.250.0100.03514.80
5.4.240.0090.03515.00
5.4.230.0050.03214.97
5.4.220.0080.04115.01
5.4.210.0050.04214.97
5.4.200.0060.02614.94
5.4.190.0030.04314.83
5.4.180.0020.02515.00
5.4.170.0080.03714.94
5.4.160.0020.04615.09
5.4.150.0070.03214.85
5.4.140.0070.02913.52
5.4.130.0060.03813.61
5.4.120.0100.03413.67
5.4.110.0020.02513.65
5.4.100.0050.03713.67
5.4.90.0030.04013.58
5.4.80.0090.03613.66
5.4.70.0030.03213.66
5.4.60.0080.03513.65
5.4.50.0040.04013.51
5.4.40.0100.01813.60
5.4.30.0030.03613.65
5.4.20.0090.03013.63
5.4.10.0030.03913.54
5.4.00.0060.03613.34
5.3.290.0020.04512.57
5.3.280.0030.02512.46
5.3.270.0100.02912.53
5.3.260.0100.03912.60
5.3.250.0070.03612.52
5.3.240.0050.02012.60
5.3.230.0020.03912.54
5.3.220.0110.02312.46
5.3.210.0060.04012.44
5.3.200.0060.03712.61
5.3.190.0050.04012.59
5.3.180.0070.03512.64
5.3.170.0030.02812.61
5.3.160.0080.03812.62
5.3.150.0030.03912.75
5.3.140.0030.03712.59
5.3.130.0030.02912.51
5.3.120.0050.04212.61
5.3.110.0080.03812.58
5.3.100.0030.02312.23
5.3.90.0030.04212.35
5.3.80.0070.03512.26
5.3.70.0060.02212.28
5.3.60.0070.02512.29
5.3.50.0060.04112.28
5.3.40.0090.03512.12
5.3.30.0030.03912.30
5.3.20.0020.02312.06
5.3.10.0020.02211.99
5.3.00.0100.03312.02
5.2.170.0000.07011.20
5.2.160.0130.05311.14
5.2.150.0000.06311.17
5.2.140.0000.07011.36
5.2.130.0170.05011.16
5.2.120.0070.03011.11
5.2.110.0030.03711.21
5.2.100.0030.06010.95
5.2.90.0100.05011.07
5.2.80.0030.06711.13
5.2.70.0130.05311.09
5.2.60.0100.04711.15
5.2.50.0070.03311.03
5.2.40.0100.05310.96
5.2.30.0030.06310.96
5.2.20.0170.05010.96
5.2.10.0030.04010.90
5.2.00.0030.03010.79
5.1.60.0030.02310.06
5.1.50.0000.0279.99
5.1.40.0000.0279.89
5.1.30.0000.02710.38
5.1.20.0000.02710.37
5.1.10.0030.02710.28
5.1.00.0000.02710.06
5.0.50.0000.0208.72
5.0.40.0000.0208.72
5.0.30.0000.0308.72
5.0.20.0000.0208.72
5.0.10.0000.0208.72
5.0.00.0070.0238.72
4.4.90.0000.0378.72
4.4.80.0030.0238.72
4.4.70.0000.0408.72
4.4.60.0000.0308.72
4.4.50.0000.0238.72
4.4.40.0000.0238.72
4.4.30.0000.0208.72
4.4.20.0000.0208.72
4.4.10.0000.0178.72
4.4.00.0000.0278.72
4.3.110.0000.0178.72
4.3.100.0000.0138.72
4.3.90.0000.0178.72
4.3.80.0000.0238.72
4.3.70.0000.0138.72
4.3.60.0000.0138.72
4.3.50.0000.0178.72
4.3.40.0000.0238.72
4.3.30.0000.0138.72
4.3.20.0000.0178.72
4.3.10.0000.0178.72
4.3.00.0000.0138.72

preferences:
48.14 ms | 400 KiB | 5 Q