3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $b =1; public $c = 2; public function test(){ return $this->b + $this->c; } } class B extends A{ public $b = 5; public $c = 10; } $a = new B(); echo $a->test();

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.0060.00918.20
8.3.50.0130.00721.27
8.3.40.0170.00318.80
8.3.30.0070.00718.82
8.3.20.0080.00019.97
8.3.10.0050.00323.65
8.3.00.0080.00018.96
8.2.180.0130.01016.50
8.2.170.0070.00722.96
8.2.160.0080.01222.02
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0100.00019.74
8.2.110.0070.00320.99
8.2.100.0040.00817.84
8.2.90.0080.00019.76
8.2.80.0050.00320.53
8.2.70.0030.00517.93
8.2.60.0000.00918.16
8.2.50.0040.00418.10
8.2.40.0060.00321.14
8.2.30.0040.00419.15
8.2.20.0000.00717.73
8.2.10.0040.00417.93
8.2.00.0070.00017.66
8.1.280.0030.01025.92
8.1.270.0030.00518.71
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.02
8.1.230.0070.00422.66
8.1.220.0000.00917.74
8.1.210.0060.00318.84
8.1.200.0040.00417.35
8.1.190.0000.00817.10
8.1.180.0050.00518.10
8.1.170.0060.00318.48
8.1.160.0090.00019.06
8.1.150.0040.00418.84
8.1.140.0040.00417.30
8.1.130.0000.00717.73
8.1.120.0040.00417.32
8.1.110.0040.00417.38
8.1.100.0070.00017.43
8.1.90.0000.00717.31
8.1.80.0040.00417.37
8.1.70.0030.00317.39
8.1.60.0060.00317.57
8.1.50.0000.00817.59
8.1.40.0040.00417.38
8.1.30.0000.00817.61
8.1.20.0040.00417.64
8.1.10.0040.00417.61
8.1.00.0040.00417.50
8.0.300.0000.00820.02
8.0.290.0050.00516.63
8.0.280.0030.00318.43
8.0.270.0000.00817.26
8.0.260.0000.00717.30
8.0.250.0000.00716.93
8.0.240.0050.00216.91
8.0.230.0000.00716.92
8.0.220.0030.00316.82
8.0.210.0070.00016.79
8.0.200.0000.00616.95
8.0.190.0000.00816.84
8.0.180.0030.00316.88
8.0.170.0040.00416.72
8.0.160.0040.00416.80
8.0.150.0040.00416.75
8.0.140.0040.00416.75
8.0.130.0030.00313.24
8.0.120.0030.00516.68
8.0.110.0030.00516.76
8.0.100.0040.00416.64
8.0.90.0040.00416.76
8.0.80.0090.00616.77
8.0.70.0040.00416.63
8.0.60.0040.00416.84
8.0.50.0040.00416.76
8.0.30.0080.01216.97
8.0.20.0100.01217.40
8.0.10.0070.00017.00
8.0.00.0050.01216.50
7.4.330.0050.00015.03
7.4.320.0030.00316.39
7.4.300.0000.00716.44
7.4.290.0040.00416.60
7.4.280.0060.00316.58
7.4.270.0040.00416.61
7.4.260.0070.00016.49
7.4.250.0040.00416.58
7.4.240.0020.00416.54
7.4.230.0000.00716.59
7.4.220.0130.01016.46
7.4.210.0130.00716.59
7.4.200.0030.00316.50
7.4.160.0030.01316.34
7.4.150.0000.02117.40
7.4.140.0100.00717.86
7.4.130.0110.00716.50
7.4.120.0080.01216.52
7.4.110.0150.00316.23
7.4.100.0140.00716.41
7.4.90.0090.00916.58
7.4.80.0110.00719.39
7.4.70.0070.01116.42
7.4.60.0060.01016.53
7.4.50.0050.00316.69
7.4.40.0090.00916.41
7.4.30.0080.01116.43
7.4.00.0030.01314.82
7.3.330.0040.00213.23
7.3.320.0000.00613.17
7.3.310.0070.00016.32
7.3.300.0030.00316.30
7.3.290.0070.00816.27
7.3.280.0070.00916.22
7.3.270.0120.00917.40
7.3.260.0110.01116.45
7.3.250.0090.01216.47
7.3.240.0090.01416.25
7.3.230.0090.01216.39
7.3.210.0130.00616.25
7.3.200.0090.01219.39
7.3.190.0030.01216.38
7.3.180.0100.00616.46
7.3.170.0090.01216.43
7.3.160.0120.00916.44
7.3.10.0060.00616.45
7.3.00.0100.00016.62
7.2.330.0110.00616.45
7.2.320.0100.00716.51
7.2.310.0040.01416.46
7.2.300.0030.01316.42
7.2.290.0110.00816.62
7.2.130.0000.01416.96
7.2.120.0120.00316.75
7.2.110.0070.00716.98
7.2.100.0030.01017.09
7.2.90.0120.00016.91
7.2.80.0030.00916.87
7.2.70.0070.00317.04
7.2.60.0050.00616.84
7.2.50.0040.01116.90
7.2.40.0070.00717.06
7.2.30.0060.00616.95
7.2.20.0060.00916.81
7.2.10.0040.00716.60
7.2.00.0090.00417.99
7.1.250.0040.00815.91
7.1.200.0000.01415.74
7.1.100.0040.01118.29
7.1.70.0000.00717.05
7.1.60.0090.01519.22
7.1.50.0090.01216.26
7.1.00.0070.07322.36
7.0.200.0000.01016.66
7.0.140.0000.06722.04
7.0.60.0170.06719.93
7.0.50.0100.08017.81
7.0.40.0070.04020.22
7.0.30.0300.05720.09
7.0.20.0330.04720.23
7.0.10.0030.05320.19
7.0.00.0030.05020.15
5.6.280.0030.07321.01
5.6.210.0070.04320.69
5.6.200.0000.08318.21
5.6.190.0100.08320.58
5.6.180.0230.05320.48
5.6.170.0330.07720.47
5.6.160.0170.07020.52
5.6.150.0130.07718.29
5.6.140.0070.07718.18
5.6.130.0070.07718.14
5.6.120.0070.04021.12
5.6.110.0130.08021.11
5.6.100.0100.08321.02
5.6.90.0130.05320.93
5.6.80.0030.08720.28
5.5.350.0230.08020.53
5.5.340.0100.08018.09
5.5.330.0070.07720.29
5.5.320.0300.07320.35
5.5.310.0200.04320.34
5.5.300.0000.04018.04
5.5.290.0100.08318.07
5.5.280.0070.08320.89
5.5.270.0100.08020.86
5.5.260.0100.05720.66
5.5.250.0030.04020.59
5.5.240.0000.08320.35
5.4.450.0300.08019.54
5.4.440.0170.07319.55
5.4.430.0130.05319.54
5.4.420.0230.05019.31
5.4.410.0270.05319.26
5.4.400.0300.04319.07
5.4.390.0130.06719.00
5.4.380.0170.06318.81
5.4.370.0130.05718.84
5.4.360.0170.05318.63
5.4.350.0230.05718.59
5.4.340.0130.05718.59
5.4.320.0100.06318.46
5.4.310.0200.05318.52
5.4.300.0200.05018.76
5.4.290.0270.04718.63
5.4.280.0200.06018.78
5.4.270.0200.05318.75
5.4.260.0300.06318.77
5.4.250.0200.07718.67
5.4.240.0170.06718.60
5.4.230.0130.06018.68
5.4.220.0170.05718.73
5.4.210.0130.05718.71
5.4.200.0100.05716.64
5.4.190.0100.05718.77
5.4.180.0200.05318.77
5.4.170.0200.05718.82
5.4.160.0230.05318.74
5.4.150.0170.05718.67
5.4.140.0300.05016.14
5.4.130.0300.05716.44
5.4.120.0130.05716.29
5.4.110.0200.05316.25
5.4.100.0200.05016.25
5.4.90.0130.05316.27
5.4.80.0100.05316.21
5.4.70.0270.05016.22
5.4.60.0170.05016.23
5.4.50.0100.05316.20
5.4.40.0170.05016.38
5.4.30.0170.05016.16
5.4.20.0070.05716.25
5.4.10.0130.05316.24
5.4.00.0270.03715.78
5.3.290.0170.05714.77
5.3.280.0130.05314.73
5.3.270.0200.05014.82
5.3.260.0170.05714.71
5.3.250.0130.06014.77
5.3.240.0200.05014.79
5.3.230.0130.05714.80
5.3.220.0270.04014.66
5.3.210.0330.03714.61
5.3.200.0270.04314.73
5.3.190.0130.05714.67
5.3.180.0130.05714.74
5.3.170.0170.05014.61
5.3.160.0130.05714.78
5.3.150.0230.06314.61
5.3.140.0270.06014.68
5.3.130.0130.05714.53
5.3.120.0100.06014.53
5.3.110.0230.06714.67
5.3.100.0200.06714.22
5.3.90.0270.06014.13
5.3.80.0300.05314.07
5.3.70.0270.05714.02
5.3.60.0170.05014.00
5.3.50.0200.06714.05
5.3.40.0270.05714.06
5.3.30.0230.04314.13
5.3.20.0200.04313.85
5.3.10.0070.05713.88
5.3.00.0170.05013.66
5.2.170.0200.03311.18
5.2.160.0130.04011.14
5.2.150.0070.04711.14
5.2.140.0230.04311.16
5.2.130.0100.04711.16
5.2.120.0130.04011.33
5.2.110.0200.03311.17
5.2.100.0130.03711.32
5.2.90.0100.04311.21
5.2.80.0170.04711.24
5.2.70.0130.04011.19
5.2.60.0030.05311.07
5.2.50.0130.04011.04
5.2.40.0230.03711.11
5.2.30.0200.03711.02
5.2.20.0100.05011.02
5.2.10.0200.03711.04
5.2.00.0170.03710.74
5.1.60.0070.03710.00
5.1.50.0170.0339.98
5.1.40.0130.03310.02
5.1.30.0170.03010.33
5.1.20.0130.03310.37
5.1.10.0100.03710.20
5.1.00.0030.04310.27
5.0.50.0170.0178.73
5.0.40.0100.0238.45
5.0.30.0030.0538.37
5.0.20.0070.0278.23
5.0.10.0100.0278.20
5.0.00.0100.0408.18
4.4.90.0030.0235.90
4.4.80.0170.0135.91
4.4.70.0000.0275.89
4.4.60.0000.0275.91
4.4.50.0070.0235.88
4.4.40.0100.0335.91
4.4.30.0100.0205.91
4.4.20.0000.0305.92
4.4.10.0130.0205.97
4.4.00.0000.0505.93
4.3.110.0000.0275.82
4.3.100.0100.0175.89
4.3.90.0100.0175.79
4.3.80.0030.0375.81
4.3.70.0070.0205.91
4.3.60.0070.0205.80
4.3.50.0100.0175.80
4.3.40.0030.0375.82
4.3.30.0000.0274.64
4.3.20.0000.0274.55
4.3.10.0000.0274.49
4.3.00.0100.0237.76

preferences:
46.39 ms | 401 KiB | 5 Q