3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class parentc { protected static $config=1; protected static $db; } class x extends parentc { public function __construct() { static::$config='x'; echo (static::$config); } public function echoc() { echo (static::$config); } } class y extends parentc { public function __construct() { static::$config='y'; echo (static::$config); } public function echoc() { echo (static::$config); } } $x=new x(); $y=new y(); $x->echoc();

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.0090.00918.83
8.3.30.0080.00619.21
8.3.20.0000.00720.14
8.3.10.0050.00323.59
8.3.00.0080.00019.25
8.2.170.0110.00422.96
8.2.160.0080.00820.51
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0100.00020.97
8.2.110.0030.00619.24
8.2.100.0070.00717.75
8.2.90.0050.00319.22
8.2.80.0060.00317.97
8.2.70.0000.00917.50
8.2.60.0050.00317.93
8.2.50.0100.00018.07
8.2.40.0000.00818.34
8.2.30.0040.00418.18
8.2.20.0080.00017.75
8.2.10.0090.00017.98
8.2.00.0000.00817.67
8.1.270.0000.00823.79
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0030.00621.36
8.1.230.0040.00817.64
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0060.00617.23
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0050.00318.57
8.1.160.0070.00021.95
8.1.150.0000.00718.92
8.1.140.0000.00717.42
8.1.130.0070.00017.86
8.1.120.0050.00217.29
8.1.110.0040.00417.45
8.1.100.0040.00417.33
8.1.90.0040.00417.38
8.1.80.0040.00417.36
8.1.70.0000.00717.33
8.1.60.0080.00017.43
8.1.50.0030.00617.42
8.1.40.0000.00717.38
8.1.30.0030.00517.55
8.1.20.0000.00717.57
8.1.10.0000.00817.46
8.1.00.0040.00417.40
8.0.300.0070.00018.77
8.0.290.0000.00916.63
8.0.280.0070.00018.44
8.0.270.0050.00217.29
8.0.260.0030.00317.29
8.0.250.0070.00016.88
8.0.240.0030.00516.86
8.0.230.0070.00016.88
8.0.220.0070.00016.80
8.0.210.0030.00316.82
8.0.200.0060.00316.86
8.0.190.0040.00416.91
8.0.180.0030.00316.85
8.0.170.0050.00316.80
8.0.160.0040.00416.82
8.0.150.0000.00716.77
8.0.140.0000.00816.66
8.0.130.0060.00013.24
8.0.120.0030.00316.82
8.0.110.0050.00316.73
8.0.100.0080.00016.75
8.0.90.0070.00016.82
8.0.80.0080.00816.79
8.0.70.0080.00016.73
8.0.60.0040.00416.65
8.0.50.0040.00416.77
8.0.30.0150.00317.19
8.0.20.0080.01517.43
8.0.10.0000.00716.89
8.0.00.0120.00716.56
7.4.330.0050.00015.01
7.4.320.0050.00216.52
7.4.300.0060.00016.60
7.4.290.0070.00016.60
7.4.280.0070.00016.60
7.4.270.0000.00716.49
7.4.260.0030.00316.39
7.4.250.0000.00816.39
7.4.240.0040.00316.55
7.4.230.0040.00416.52
7.4.220.0090.00616.54
7.4.210.0070.00716.56
7.4.200.0030.00316.57
7.4.160.0030.01316.44
7.4.150.0180.01017.40
7.4.140.0090.00817.86
7.4.130.0120.00516.40
7.4.120.0070.01016.41
7.4.110.0140.00316.20
7.4.100.0090.00916.50
7.4.90.0110.00516.49
7.4.80.0030.01319.39
7.4.70.0030.01516.57
7.4.60.0100.00616.26
7.4.50.0060.00316.66
7.4.40.0130.00316.37
7.4.30.0110.00516.61
7.4.10.0040.01516.19
7.4.00.0090.00715.69
7.3.330.0000.00613.27
7.3.320.0000.00513.11
7.3.310.0000.00616.18
7.3.300.0030.00316.30
7.3.290.0070.00716.23
7.3.280.0080.00916.32
7.3.270.0100.01317.40
7.3.260.0090.00916.51
7.3.250.0140.00616.53
7.3.240.0070.01016.25
7.3.230.0060.01516.39
7.3.210.0150.00516.52
7.3.200.0070.01019.39
7.3.190.0100.01016.24
7.3.180.0060.00916.41
7.3.170.0000.01616.42
7.3.160.0090.00616.30
7.3.130.0070.01316.16
7.3.120.0100.01016.44
7.3.110.0110.00716.19
7.3.100.0040.01116.35
7.3.90.0070.01416.14
7.3.80.0040.00716.33
7.3.70.0100.00716.18
7.3.60.0000.01816.09
7.3.50.0090.00616.20
7.3.40.0130.00316.04
7.3.30.0070.01015.90
7.3.20.0060.00917.97
7.3.10.0040.01517.80
7.3.00.0060.00918.24
7.2.330.0130.00316.91
7.2.320.0140.00716.61
7.2.310.0040.01316.39
7.2.300.0080.00816.56
7.2.290.0100.00916.71
7.2.260.0090.00616.23
7.2.250.0100.01016.02
7.2.240.0030.01316.71
7.2.230.0070.01016.55
7.2.220.0100.00616.27
7.2.210.0140.00416.40
7.2.200.0100.00716.64
7.2.190.0000.01916.36
7.2.180.0030.01016.50
7.2.170.0080.00516.45
7.2.160.0070.00416.20
7.2.150.0080.00818.39
7.2.140.0110.00818.25
7.2.130.0070.01018.20
7.2.120.0110.00718.32
7.2.110.0070.00718.53
7.2.100.0150.00318.46
7.2.90.0060.00918.32
7.2.80.0090.00618.54
7.2.70.0060.00618.30
7.2.60.0040.01118.36
7.2.50.0030.01318.16
7.2.40.0100.01018.23
7.2.30.0100.00718.33
7.2.20.0080.00418.23
7.2.10.0130.00318.21
7.2.00.0040.00918.94
7.1.330.0070.01417.38
7.1.320.0040.01217.00
7.1.310.0060.00917.11
7.1.300.0110.01116.98
7.1.290.0130.00317.11
7.1.280.0070.00416.95
7.1.270.0060.01217.19
7.1.260.0110.00717.12
7.1.250.0120.00617.04
7.1.240.0040.01116.97
7.1.230.0040.01117.20
7.1.220.0090.00617.07
7.1.210.0030.01017.00
7.1.200.0090.00616.40
7.1.190.0030.00616.98
7.1.180.0120.00617.05
7.1.170.0090.00617.28
7.1.160.0040.01416.89
7.1.150.0060.00617.09
7.1.140.0040.00817.11
7.1.130.0040.01117.18
7.1.120.0030.00717.29
7.1.110.0030.00717.21
7.1.100.0070.00617.58
7.1.90.0080.00817.18
7.1.80.0060.00617.23
7.1.70.0000.01217.17
7.1.60.0080.01218.30
7.1.50.0080.01117.00
7.1.40.0100.00717.08
7.1.30.0070.01017.01
7.1.20.0120.00617.06
7.1.10.0000.01317.01
7.1.00.0080.03919.63
7.0.330.0110.00416.81
7.0.320.0120.00016.79
7.0.310.0070.00316.90
7.0.300.0060.01016.96
7.0.290.0090.00617.03
7.0.280.0030.00616.86
7.0.270.0070.00316.65
7.0.260.0080.00816.80
7.0.250.0030.01016.84
7.0.240.0060.00616.84
7.0.230.0030.01316.93
7.0.220.0040.00816.98
7.0.210.0080.00816.94
7.0.200.0050.00716.74
7.0.190.0070.01017.09
7.0.180.0100.00317.21
7.0.170.0100.00316.88
7.0.160.0030.01416.90
7.0.150.0030.01016.71
7.0.140.0100.03519.45
7.0.130.0060.00916.86
7.0.120.0030.01016.89
7.0.110.0060.00916.71
7.0.100.0110.00716.86
7.0.90.0070.01516.88
7.0.80.0130.01016.81
7.0.70.0080.01616.87
7.0.60.0110.04218.40
7.0.50.0100.03817.50
7.0.40.0100.02817.54
7.0.30.0240.03717.45
7.0.20.0180.04717.52
7.0.10.0170.04417.53
7.0.00.0090.04417.47
5.6.400.0040.01115.92
5.6.390.0040.01116.17
5.6.380.0120.00316.20
5.6.370.0060.00615.91
5.6.360.0090.00915.79
5.6.350.0030.00915.70
5.6.340.0150.00415.84
5.6.330.0060.00315.94
5.6.320.0070.00716.03
5.6.310.0110.00415.96
5.6.300.0090.00915.96
5.6.290.0040.01115.76
5.6.280.0030.04218.29
5.6.270.0100.00315.53
5.6.260.0110.00815.91
5.6.250.0090.01215.95
5.6.240.0120.00916.00
5.6.230.0080.01316.10
5.6.220.0040.01915.76
5.6.210.0070.04818.25
5.6.200.0100.02817.10
5.6.190.0100.04918.17
5.6.180.0220.04218.20
5.6.170.0170.04318.06
5.6.160.0100.04518.18
5.6.150.0080.04616.96
5.6.140.0040.05217.02
5.6.130.0090.02417.09
5.6.120.0070.04318.39
5.6.110.0120.03018.44
5.6.100.0080.03718.28
5.6.90.0050.03818.28
5.6.80.0050.04318.07
5.6.70.1430.01918.03
5.6.60.0070.01115.72
5.6.50.0080.00815.88
5.6.40.0040.01115.68
5.6.30.0110.00315.65
5.6.20.0040.01115.73
5.6.10.0000.01615.93
5.6.00.0110.00415.98
5.5.380.0030.01215.83
5.5.370.0060.00915.72
5.5.360.0080.00815.61
5.5.350.0110.02118.03
5.5.340.0070.03916.95
5.5.330.0040.03418.06
5.5.320.0180.03118.09
5.5.310.0150.04517.99
5.5.300.0110.02816.96
5.5.290.0090.03416.95
5.5.280.0120.04518.21
5.5.270.0110.03818.41
5.5.260.0060.05018.32
5.5.250.0070.04018.16
5.5.240.0170.04217.94
5.5.230.0030.01315.70
5.5.220.0160.00315.75
5.5.210.0140.00415.88
5.5.200.0070.00715.77
5.5.190.0040.01415.52
5.5.180.0070.00716.01
5.5.170.0030.01015.89
5.5.160.0070.00715.64
5.5.150.0060.00915.61
5.5.140.0070.01115.87
5.5.130.0030.01015.45
5.5.120.0100.00615.77
5.5.110.0090.00915.68
5.5.100.0100.01315.88
5.5.90.0110.01115.59
5.5.80.0050.01415.81
5.5.70.0150.00615.74
5.5.60.0090.01215.38
5.5.50.0120.01215.66
5.5.40.0090.01515.76
5.5.30.0050.01615.62
5.5.20.0110.01115.78
5.5.10.0060.01615.92
5.5.00.0050.01915.72
5.4.450.0170.02716.00
5.4.440.0120.02016.21
5.4.430.0140.02416.00
5.4.420.0150.01816.17
5.4.410.0130.02515.86
5.4.400.0150.01715.86
5.4.390.0370.02215.88
5.4.380.0250.04015.61
5.4.370.0330.03315.58
5.4.360.0130.03115.52
5.4.350.0200.03715.54
5.4.340.0170.03015.50
5.4.330.0040.00412.69
5.4.320.0070.01912.45
5.4.310.0040.02412.57
5.4.300.0050.02212.47
5.4.290.0080.02112.49
5.4.280.0060.02112.40
5.4.270.0090.01912.52
5.4.260.0070.02212.47
5.4.250.0060.02312.39
5.4.240.0050.02612.54
5.4.230.0060.02112.43
5.4.220.0040.02312.46
5.4.210.0060.02412.44
5.4.200.0070.02012.46
5.4.190.0040.02412.46
5.4.180.0050.02412.43
5.4.170.0050.02312.51
5.4.160.0020.02512.39
5.4.150.0050.02312.49
5.4.140.0050.02212.36
5.4.130.0080.02312.34
5.4.120.0050.02112.26
5.4.110.0070.02012.33
5.4.100.0060.02212.29
5.4.90.0030.02212.29
5.4.80.0040.02512.26
5.4.70.0050.02212.25
5.4.60.0080.01912.22
5.4.50.0080.01912.20
5.4.40.0060.02112.23
5.4.30.0050.02712.23
5.4.20.0070.02112.31
5.4.10.0050.02112.29
5.4.00.0050.02211.94
5.3.290.0040.04212.80
5.3.280.0060.04112.71
5.3.270.0080.03812.72
5.3.260.0070.03812.72
5.3.250.0050.04012.72
5.3.240.0080.03712.72
5.3.230.0070.03712.71
5.3.220.0070.03612.68
5.3.210.0070.03812.68
5.3.200.0060.03812.68
5.3.190.0060.03812.68
5.3.180.0090.03912.67
5.3.170.0100.04312.67
5.3.160.0050.03812.68
5.3.150.0100.04512.68
5.3.140.0070.03512.66
5.3.130.0040.04212.66
5.3.120.0100.03612.65
5.3.110.0120.04312.66
5.3.100.0090.03612.13
5.3.90.0090.03612.11
5.3.80.0090.03812.10
5.3.70.0060.03712.10
5.3.60.0080.03712.09
5.3.50.0070.03612.04
5.3.40.0060.03712.03
5.3.30.0070.03411.99
5.3.20.0050.03911.77
5.3.10.0110.03011.74
5.3.00.0060.03811.73
5.2.170.0040.0319.22
5.2.160.0050.0309.22
5.2.150.0030.0379.22
5.2.140.0080.0299.21
5.2.130.0080.0389.18
5.2.120.0070.0279.18
5.2.110.0060.0319.18
5.2.100.0050.0299.18
5.2.90.0050.0299.18
5.2.80.0020.0339.18
5.2.70.0080.0279.18
5.2.60.0070.0339.13
5.2.50.0040.0379.10
5.2.40.0050.0289.07
5.2.30.0050.0319.05
5.2.20.0070.0279.04
5.2.10.0060.0268.95
5.2.00.0060.0278.81
5.1.60.0030.0258.09
5.1.50.0050.0248.09
5.1.40.0060.0238.07
5.1.30.0060.0298.43
5.1.20.0090.0238.45
5.1.10.0040.0328.16
5.1.00.0040.0268.16
5.0.50.0050.0196.64
5.0.40.0050.0196.50
5.0.30.0020.0376.31
5.0.20.0050.0256.29
5.0.10.0060.0256.26
5.0.00.0060.0376.25
4.4.90.0040.0164.78
4.4.80.0030.0154.75
4.4.70.0010.0184.75
4.4.60.0030.0154.75
4.4.50.0030.0154.77
4.4.40.0030.0254.71
4.4.30.0010.0234.76
4.4.20.0050.0194.84
4.4.10.0030.0204.85
4.4.00.0030.0264.76
4.3.110.0060.0204.67
4.3.100.0010.0194.67
4.3.90.0040.0134.63
4.3.80.0030.0254.58
4.3.70.0020.0174.63
4.3.60.0020.0164.63
4.3.50.0040.0184.63
4.3.40.0040.0304.54
4.3.30.0030.0163.28
4.3.20.0010.0203.26
4.3.10.0020.0203.22
4.3.00.0000.02018.23

preferences:
40.54 ms | 400 KiB | 5 Q