3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $x; public function __construct() { $this->x = 1; } public function hi() { return __METHOD__ . ': x = ' . $this->x; } } class B extends A { public function __construct() { $this->x = 2; } } $b = new B(); echo $b->hi();

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.01018.43
8.3.50.0160.00822.93
8.3.40.0140.00318.84
8.3.30.0100.00319.10
8.3.20.0000.00720.16
8.3.10.0040.00421.74
8.3.00.0080.00019.26
8.2.180.0090.00916.50
8.2.170.0100.00322.96
8.2.160.0130.00320.43
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00421.16
8.2.110.0030.00619.29
8.2.100.0040.00717.72
8.2.90.0090.00017.84
8.2.80.0030.00517.97
8.2.70.0030.00517.63
8.2.60.0040.00717.80
8.2.50.0040.00418.07
8.2.40.0060.00319.95
8.2.30.0000.00718.06
8.2.20.0020.00517.68
8.2.10.0000.00818.05
8.2.00.0000.00917.63
8.1.280.0100.00725.92
8.1.270.0090.00023.70
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0080.00323.83
8.1.230.0070.00422.60
8.1.220.0030.00617.76
8.1.210.0080.00018.86
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0000.00721.81
8.1.150.0000.00818.70
8.1.140.0040.00417.29
8.1.130.0080.00017.74
8.1.120.0040.00717.29
8.1.110.0050.00217.31
8.1.100.0040.00417.42
8.1.90.0040.00417.39
8.1.80.0040.00417.39
8.1.70.0000.00717.41
8.1.60.0080.00017.57
8.1.50.0030.00517.55
8.1.40.0030.00617.57
8.1.30.0060.00317.55
8.1.20.0030.00617.64
8.1.10.0080.00017.45
8.1.00.0080.00017.34
8.0.300.0080.00019.67
8.0.290.0030.00516.75
8.0.280.0030.00618.48
8.0.270.0040.00417.17
8.0.260.0030.00317.18
8.0.250.0030.00316.98
8.0.240.0040.00416.84
8.0.230.0000.00716.93
8.0.220.0000.00716.86
8.0.210.0070.00016.89
8.0.200.0000.00616.86
8.0.190.0030.00516.89
8.0.180.0000.00716.80
8.0.170.0000.00716.88
8.0.160.0000.00816.82
8.0.150.0000.00716.81
8.0.140.0040.00416.81
8.0.130.0030.00313.30
8.0.120.0040.00416.90
8.0.110.0000.00816.73
8.0.100.0030.00516.73
8.0.90.0040.00416.91
8.0.80.0210.00616.77
8.0.70.0040.00416.74
8.0.60.0040.00416.73
8.0.50.0000.00816.74
8.0.30.0070.01317.12
8.0.20.0130.00917.40
8.0.10.0040.00416.98
8.0.00.0070.01216.72
7.4.330.0030.00315.07
7.4.320.0030.00316.51
7.4.300.0030.00316.60
7.4.290.0030.00316.50
7.4.280.0000.00816.43
7.4.270.0030.00316.61
7.4.260.0000.00716.45
7.4.250.0000.00716.55
7.4.240.0020.00516.46
7.4.230.0040.00416.60
7.4.220.0090.00916.63
7.4.210.0030.01016.62
7.4.200.0050.00216.57
7.4.160.0040.01216.36
7.4.150.0180.00017.40
7.4.140.0100.01317.86
7.4.130.0100.01416.42
7.4.120.0150.00416.44
7.4.110.0060.01016.60
7.4.100.0140.00316.41
7.4.90.0090.00916.56
7.4.80.0100.01019.39
7.4.70.0100.00716.36
7.4.60.0100.00716.24
7.4.50.0080.00016.25
7.4.40.0060.01216.42
7.4.30.0100.00716.56
7.4.00.0060.00615.16
7.3.330.0030.00313.08
7.3.320.0050.00013.30
7.3.310.0070.00016.11
7.3.300.0000.00616.30
7.3.290.0120.00616.27
7.3.280.0080.00716.28
7.3.270.0100.00717.40
7.3.260.0100.00716.63
7.3.250.0100.00716.43
7.3.240.0070.01116.54
7.3.230.0090.00616.46
7.3.210.0100.00616.21
7.3.200.0030.01419.39
7.3.190.0070.01416.38
7.3.180.0090.01216.27
7.3.170.0130.00316.34
7.3.160.0030.01316.22
7.2.330.0110.01116.51
7.2.320.0060.01016.83
7.2.310.0130.01016.73
7.2.300.0120.00916.75
7.2.290.0080.00816.77
7.2.00.0040.01219.27
7.1.100.0000.01518.14
7.1.70.0000.00716.87
7.1.60.0040.00717.34
7.1.50.0160.00616.88
7.1.00.0100.07022.40
7.0.200.0140.01016.62
7.0.140.0000.07722.09
7.0.60.0130.04020.07
7.0.50.0070.04717.88
7.0.40.0170.07320.09
7.0.30.0300.04720.08
7.0.20.0230.04320.19
7.0.10.0030.05020.08
7.0.00.0030.04320.09
5.6.280.0030.07020.79
5.6.210.0270.06020.60
5.6.200.0030.07318.25
5.6.190.0030.07720.43
5.6.180.0300.04720.61
5.6.170.0300.06720.67
5.6.160.0070.09020.50
5.6.150.0070.07018.12
5.6.140.0170.05718.16
5.6.130.0100.04018.14
5.6.120.0070.08321.04
5.6.110.0130.08320.96
5.6.100.0070.08021.12
5.6.90.0170.07020.93
5.6.80.0100.07020.54
5.6.70.4230.04020.39
5.5.350.0200.07320.32
5.5.340.0100.05717.94
5.5.330.0070.07720.29
5.5.320.0230.04020.30
5.5.310.0270.07320.23
5.5.300.0100.07318.08
5.5.290.0100.03717.95
5.5.280.0030.07020.77
5.5.270.0070.07720.76
5.5.260.0070.07320.98
5.5.250.0100.08320.68
5.5.240.0230.07320.28
5.4.450.0400.07019.66
5.4.440.0330.07019.55
5.4.430.0330.05719.53
5.4.420.0230.05019.38
5.4.410.0330.05319.53
5.4.400.0270.06319.20
5.4.390.0230.04019.16
5.4.380.0370.04018.98
5.4.370.0300.07019.22
5.4.360.0270.07318.88
5.4.350.0330.05718.95
5.4.340.0330.07019.09
5.4.320.0300.04319.09
5.4.310.0330.04718.86
5.4.300.0270.07319.22
5.4.290.0370.06318.81
5.4.280.0230.07718.87
5.4.270.0300.06718.99
5.4.260.0330.04018.99
5.4.250.0370.03719.24
5.4.240.0170.04319.08
5.4.230.0200.05718.84
5.4.220.0230.04319.08
5.4.210.0270.07319.13
5.4.200.0270.04319.08
5.4.190.0130.04719.15
5.4.180.0400.06319.15
5.4.170.0270.07719.21
5.4.160.0300.05719.17
5.4.150.0330.06719.17
5.4.140.0300.03316.72
5.4.130.0230.05016.38
5.4.120.0330.04316.37
5.4.110.0330.05316.61
5.4.100.0300.06316.30
5.4.90.0270.06316.52
5.4.80.0300.06716.59
5.4.70.0270.06716.22
5.4.60.0230.06016.43
5.4.50.0200.04716.55
5.4.40.0200.03716.33
5.4.30.0230.04016.38
5.4.20.0230.07016.24
5.4.10.0330.06316.55
5.4.00.0200.04015.80
5.3.290.0400.05714.78
5.3.280.0230.04014.64
5.3.270.0330.06314.73
5.3.260.0400.03714.52
5.3.250.0270.05014.52
5.3.240.0200.04314.52
5.3.230.0400.05714.60
5.3.220.0200.04714.46
5.3.210.0270.04314.61
5.3.200.0230.04314.54
5.3.190.0300.06314.56
5.3.180.0300.05014.68
5.3.170.0270.04014.79
5.3.160.0300.05314.54
5.3.150.0270.05314.49
5.3.140.0200.04014.72
5.3.130.0230.05014.46
5.3.120.0270.07314.54
5.3.110.0270.06014.46
5.3.100.0270.06314.13
5.3.90.0270.04314.00
5.3.80.0300.06714.02
5.3.70.0200.04313.93
5.3.60.0300.06313.93
5.3.50.0330.04013.95
5.3.40.0270.05314.11
5.3.30.0270.04013.82
5.3.20.0330.06313.71
5.3.10.0200.04713.59
5.3.00.0270.06313.59
5.2.170.0300.05712.52
5.2.160.0230.06012.52
5.2.150.0230.06312.52
5.2.140.0170.03312.52
5.2.130.0200.06012.52
5.2.120.0200.04712.52
5.2.110.0230.04712.52
5.2.100.0370.05012.52
5.2.90.0230.05712.52
5.2.80.0200.04012.52
5.2.70.0300.05312.52
5.2.60.0330.05012.52
5.2.50.0230.04712.52
5.2.40.0230.06012.52
5.2.30.0270.05012.52
5.2.20.0200.06012.52
5.2.10.0230.05312.52
5.2.00.0200.04712.52
5.1.60.0170.02712.52
5.1.50.0170.05312.52
5.1.40.0170.03012.52
5.1.30.0130.03712.52
5.1.20.0200.03712.52
5.1.10.0200.03712.52
5.1.00.0200.03012.52
5.0.50.0130.04012.52
5.0.40.0170.04012.52
5.0.30.0100.04012.52
5.0.20.0130.02712.52
5.0.10.0070.02712.52
5.0.00.0100.05312.52
4.4.90.0100.02712.52
4.4.80.0100.02712.52
4.4.70.0100.03312.52
4.4.60.0130.03012.52
4.4.50.0030.02712.52
4.4.40.0100.04712.52
4.4.30.0100.02012.52
4.4.20.0100.03712.52
4.4.10.0170.03312.52
4.4.00.0070.03312.52
4.3.110.0100.03012.52
4.3.100.0070.01712.52
4.3.90.0100.03712.52
4.3.80.0100.04312.52
4.3.70.0070.02712.52
4.3.60.0030.02712.52
4.3.50.0070.02712.52
4.3.40.0100.02712.52
4.3.30.0070.03012.52
4.3.20.0030.03312.52
4.3.10.0070.02312.52
4.3.00.0030.02012.52

preferences:
45.06 ms | 401 KiB | 5 Q