3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { public static $prop; public static function setProp($prop) { self::$prop = $prop; } } class ChildClass extends ParentClass { } ParentClass::$prop = "first"; $parent = new ParentClass; echo "parent 1: " . $parent::$prop; ChildClass::$prop = "second"; $child = new ChildClass; echo "child 1: " . $child::$prop; echo "parent 2: " . $parent::$prop;

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.0120.00916.50
8.3.50.0150.00717.53
8.3.40.0090.00918.54
8.3.30.0070.00718.63
8.3.20.0050.00318.96
8.3.10.0030.00620.48
8.3.00.0000.00919.25
8.2.180.0190.00416.75
8.2.170.0040.01122.96
8.2.160.0070.00722.30
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0040.00419.77
8.2.110.0050.00521.04
8.2.100.0080.00417.78
8.2.90.0050.00219.23
8.2.80.0040.00417.93
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0000.00819.95
8.2.30.0070.00017.93
8.2.20.0080.00017.53
8.2.10.0030.00717.68
8.2.00.0050.00517.64
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00020.88
8.1.230.0000.01020.84
8.1.220.0040.00417.74
8.1.210.0090.00018.90
8.1.200.0000.01017.35
8.1.190.0000.00717.53
8.1.180.0040.00418.10
8.1.170.0000.00718.78
8.1.160.0000.00718.81
8.1.150.0090.00018.48
8.1.140.0060.00317.29
8.1.130.0000.00717.84
8.1.120.0000.00717.30
8.1.110.0000.00817.26
8.1.100.0000.00817.43
8.1.90.0020.00517.46
8.1.80.0050.00217.35
8.1.70.0000.00817.34
8.1.60.0030.00617.47
8.1.50.0000.00817.32
8.1.40.0070.00017.47
8.1.30.0000.00717.63
8.1.20.0000.00917.45
8.1.10.0040.00417.45
8.1.00.0000.00817.54
8.0.300.0080.00420.02
8.0.290.0000.00716.75
8.0.280.0070.00018.32
8.0.270.0040.00317.25
8.0.260.0000.00816.84
8.0.250.0040.00416.97
8.0.240.0060.00416.92
8.0.230.0030.00516.93
8.0.220.0070.00016.86
8.0.210.0030.00516.90
8.0.200.0030.00316.92
8.0.190.0000.00716.81
8.0.180.0040.00416.79
8.0.170.0060.00316.89
8.0.160.0050.00216.91
8.0.150.0000.00716.89
8.0.140.0000.00716.86
8.0.130.0040.00413.32
8.0.120.0020.00516.86
8.0.110.0070.00016.71
8.0.100.0040.00416.81
8.0.90.0000.00716.85
8.0.80.0060.00916.72
8.0.70.0040.00416.73
8.0.60.0000.00816.87
8.0.50.0000.00716.68
8.0.30.0140.00817.06
8.0.20.0110.01217.32
8.0.10.0040.00416.84
8.0.00.0050.01616.68
7.4.330.0000.00512.98
7.4.320.0030.00316.50
7.4.300.0030.00316.38
7.4.290.0040.00416.53
7.4.280.0030.00716.44
7.4.270.0000.00716.45
7.4.260.0050.00013.23
7.4.250.0040.00416.43
7.4.240.0070.00016.54
7.4.230.0000.00716.56
7.4.220.0120.00316.60
7.4.210.0070.00716.46
7.4.200.0040.00216.54
7.4.190.0040.00416.63
7.4.160.0050.01116.38
7.4.150.0040.01516.30
7.4.140.0100.01016.54
7.4.130.0120.00516.33
7.4.120.0040.01216.57
7.4.110.0100.00616.48
7.4.100.0140.00316.27
7.4.90.0100.00716.52
7.4.80.0120.00316.49
7.4.70.0060.01216.31
7.4.60.0030.01316.36
7.4.50.0040.00416.48
7.4.40.0000.01216.57
7.4.30.0120.00316.30
7.4.00.0060.01214.74
7.3.330.0030.00313.29
7.3.320.0030.00313.36
7.3.310.0030.00316.29
7.3.300.0060.00016.20
7.3.290.0090.00616.34
7.3.280.0120.00716.30
7.3.270.0110.01516.32
7.3.260.0140.00616.42
7.3.250.0120.00716.31
7.3.240.0070.01116.63
7.3.230.0100.01316.49
7.3.210.0130.00616.52
7.3.200.0060.01119.39
7.3.190.0070.01016.32
7.3.180.0070.00716.57
7.3.170.0130.00316.37
7.3.160.0080.00816.32
7.3.120.0100.00714.67
7.3.110.0140.00014.75
7.3.100.0110.00414.95
7.3.90.0120.00314.96
7.3.80.0040.00915.18
7.3.70.0060.00614.74
7.3.60.0070.00714.90
7.3.50.0070.00814.89
7.3.40.0030.00614.66
7.3.30.0030.00714.77
7.3.20.0070.01016.44
7.3.10.0070.00316.80
7.3.00.0000.01016.39
7.2.330.0060.01116.42
7.2.320.0100.00616.86
7.2.310.0110.01116.80
7.2.300.0090.00616.38
7.2.290.0150.00316.71
7.2.240.0070.01014.85
7.2.230.0030.00914.95
7.2.220.0030.00915.14
7.2.210.0090.00614.81
7.2.200.0040.01215.02
7.2.190.0030.01015.23
7.2.180.0030.00914.84
7.2.170.0000.01315.19
7.2.160.0060.01014.75
7.2.150.0100.00717.09
7.2.140.0030.01016.95
7.2.130.0060.00716.97
7.2.120.0080.00417.14
7.2.110.0040.00716.83
7.2.100.0000.01517.02
7.2.90.0080.00417.04
7.2.80.0000.01716.93
7.2.70.0000.01416.93
7.2.60.0060.00816.88
7.2.50.0070.00417.15
7.2.40.0060.00916.70
7.2.30.0120.00316.86
7.2.20.0090.00916.81
7.2.10.0030.01417.19
7.2.00.0070.00718.10
7.1.330.0030.01015.54
7.1.320.0070.00715.85
7.1.310.0000.01015.71
7.1.300.0070.01015.54
7.1.290.0040.00815.82
7.1.280.0100.00315.98
7.1.270.0040.00815.57
7.1.260.0030.00915.75
7.1.250.0000.01215.40
7.1.200.0030.00715.30
7.1.100.0040.00817.93
7.1.70.0000.00917.25
7.1.60.0160.00919.40
7.1.50.0100.01016.57
7.1.00.0000.04022.48
7.0.200.0030.00616.73
7.0.140.0030.07322.01
7.0.120.0030.06322.03
7.0.60.0300.07319.90
7.0.50.0070.08717.88
7.0.40.0270.06020.15
7.0.30.0300.05320.03
7.0.20.0200.07320.04
7.0.10.0270.07720.20
7.0.00.0270.08020.16
5.6.280.0030.07321.02
5.6.210.0070.04720.61
5.6.200.0100.07018.28
5.6.190.0200.09020.61
5.6.180.0200.08020.61
5.6.170.0270.06320.64
5.6.160.0370.05720.62
5.6.150.0230.04720.40
5.6.140.0200.08320.50
5.6.130.0330.07020.50
5.6.120.0130.05020.17
5.6.110.0300.07720.18
5.6.100.0130.05020.18
5.6.90.0200.07320.39
5.6.80.0430.05319.58
5.6.70.0200.06319.71
5.6.60.0230.04319.88
5.6.50.0270.04019.82
5.6.40.0270.07719.73
5.6.30.0230.06319.69
5.6.20.0200.05319.59
5.6.10.0300.06319.85
5.6.00.0230.05319.63
5.5.350.0070.08320.40
5.5.340.0130.07717.95
5.5.330.0200.06320.27
5.5.320.0300.04320.43
5.5.310.0230.07320.30
5.5.300.0230.04319.97
5.5.290.0300.07720.04
5.5.280.0230.04020.24
5.5.270.0170.06720.21
5.5.260.0230.07720.31
5.5.250.0270.07319.78
5.5.240.0170.05719.69
5.5.230.0230.04319.55
5.5.220.0170.04719.36
5.5.210.0330.04719.58
5.5.200.0270.07319.56
5.5.190.0500.07019.32
5.5.180.0300.07319.48
5.5.160.0230.05019.34
5.5.150.0370.06719.38
5.5.140.0230.05719.64
5.5.130.0170.07319.58
5.5.120.0170.06719.48
5.5.110.0230.07319.34
5.5.100.0200.06019.46
5.5.90.0300.05319.22
5.5.80.0230.06019.39
5.5.70.0300.06719.45
5.5.60.0230.08319.36
5.5.50.0270.07019.41
5.5.40.0200.06019.38
5.5.30.0300.06319.39
5.5.20.0200.07719.27
5.5.10.0270.07019.36
5.5.00.0170.04319.30
5.4.450.0170.08319.54
5.4.440.0270.07719.18
5.4.430.0170.04019.47
5.4.420.0200.08019.47
5.4.410.0300.07019.27
5.4.400.0230.04718.86
5.4.390.0200.04019.21
5.4.380.0200.04019.16
5.4.370.0200.05719.10
5.4.360.0170.04719.24
5.4.350.0170.08719.08
5.4.340.0230.06719.15
5.4.320.0230.07319.12
5.4.310.0200.06319.19
5.4.300.0270.06019.00
5.4.290.0200.04718.93
5.4.280.0270.06719.20
5.4.270.0270.06019.19
5.4.260.0270.07019.00
5.4.250.0230.06319.14
5.4.240.0200.04318.87
5.4.230.0230.04319.20
5.4.220.0200.06319.15
5.4.210.0270.07319.14
5.4.200.0370.05319.20
5.4.190.0370.06019.06
5.4.180.0370.06318.84
5.4.170.0270.05319.14
5.4.160.0270.06718.84
5.4.150.0370.06719.17
5.4.140.0270.06716.46
5.4.130.0170.06716.55
5.4.120.0230.06716.42
5.4.110.0200.07316.33
5.4.100.0200.03316.48
5.4.90.0170.04016.54
5.4.80.0300.06316.47
5.4.70.0270.07016.49
5.4.60.0230.07716.43
5.4.50.0430.04016.45
5.4.40.0200.07316.64
5.4.30.0230.07316.62
5.4.20.0270.05316.40
5.4.10.0200.05316.50
5.4.00.0300.04015.97
5.3.290.0200.05714.66
5.3.280.0270.05714.64
5.3.270.0230.05014.52
5.3.260.0270.06714.61
5.3.250.0200.04714.62
5.3.240.0300.07014.68
5.3.230.0270.06714.59
5.3.220.0300.05714.45
5.3.210.0130.08014.58
5.3.200.0300.06714.71
5.3.190.0230.04714.62
5.3.180.0270.05314.48
5.3.170.0400.02714.62
5.3.160.0170.05014.58
5.3.150.0230.06714.64
5.3.140.0230.06014.57
5.3.130.0130.08014.57
5.3.120.0200.05714.54
5.3.110.0230.07714.55
5.3.100.0400.05714.07
5.3.90.0270.07014.02
5.3.80.0300.06314.06
5.3.70.0300.04314.08
5.3.60.0170.07714.00
5.3.50.0330.05714.10
5.3.40.0230.06713.91
5.3.30.0200.07714.07
5.3.20.0330.05313.72
5.3.10.0200.06713.65
5.3.00.0230.06313.79
5.2.170.0130.07012.49
5.2.160.0200.03712.49
5.2.150.0330.05712.49
5.2.140.0200.06012.49
5.2.130.0170.06712.49
5.2.120.0270.05712.49
5.2.110.0170.03312.49
5.2.100.0130.06712.49
5.2.90.0170.04012.49
5.2.80.0200.06012.49
5.2.70.0200.06012.49
5.2.60.0170.02712.49
5.2.50.0170.02712.49
5.2.40.0070.03012.49
5.2.30.0030.03312.49
5.2.20.0100.02712.49
5.2.10.0070.03312.49
5.2.00.0030.03312.49
5.1.60.0030.02712.49
5.1.50.0070.02712.49
5.1.40.0100.02312.49
5.1.30.0070.02712.49
5.1.20.0100.02712.49
5.1.10.0100.02312.49
5.1.00.0070.02712.49
5.0.50.0030.02012.49
5.0.40.0030.02012.49
5.0.30.0070.03012.49
5.0.20.0030.02012.49
5.0.10.0070.02012.49
5.0.00.0070.03012.49
4.4.90.0070.02012.49
4.4.80.0000.02012.49
4.4.70.0070.01312.49
4.4.60.0070.01312.49
4.4.50.0100.01312.49
4.4.40.0030.02712.49
4.4.30.0000.02012.49
4.4.20.0070.03012.49
4.4.10.0070.01312.49
4.4.00.0030.02312.49
4.3.110.0070.01312.49
4.3.100.0070.01712.49
4.3.90.0070.01312.49
4.3.80.0070.02012.49
4.3.70.0000.01712.49
4.3.60.0070.01312.49
4.3.50.0070.01312.49
4.3.40.0030.02312.49
4.3.30.0030.01712.49
4.3.20.0000.01712.49
4.3.10.0000.01712.49
4.3.00.0030.01712.49

preferences:
41.02 ms | 400 KiB | 5 Q