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 . "\n"; $child = new ChildClass; echo "child 1: " . $child::$prop . "\n"; echo "parent 2: " . $parent::$prop . "\n"; ChildClass::$prop = "second"; echo "child 2: " . $child::$prop . "\n"; echo "parent 3: " . $parent::$prop . "\n";

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.0110.00418.56
8.3.50.0100.00817.38
8.3.40.0070.00718.54
8.3.30.0110.00718.70
8.3.20.0070.00018.68
8.3.10.0050.00320.36
8.3.00.0030.00517.63
8.2.180.0170.00318.54
8.2.170.0130.00322.96
8.2.160.0140.00322.30
8.2.150.0090.00024.18
8.2.140.0050.00224.66
8.2.130.0080.00026.16
8.2.120.0040.00419.95
8.2.110.0040.00420.47
8.2.100.0110.00017.91
8.2.90.0050.00319.23
8.2.80.0000.00917.97
8.2.70.0000.00817.63
8.2.60.0030.00617.93
8.2.50.0000.00918.10
8.2.40.0030.00519.88
8.2.30.0040.00417.99
8.2.20.0000.00917.68
8.2.10.0030.00717.70
8.2.00.0030.00517.74
8.1.280.0160.00025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0090.00023.75
8.1.230.0090.00317.83
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0050.00317.35
8.1.180.0060.00318.10
8.1.170.0040.00418.84
8.1.160.0040.00418.97
8.1.150.0040.00418.66
8.1.140.0000.00717.34
8.1.130.0030.00317.78
8.1.120.0030.00317.39
8.1.110.0060.00317.46
8.1.100.0030.00517.52
8.1.90.0040.00417.43
8.1.80.0040.00417.47
8.1.70.0070.00017.47
8.1.60.0080.00017.60
8.1.50.0070.00017.50
8.1.40.0030.00617.49
8.1.30.0030.00517.71
8.1.20.0040.00417.62
8.1.10.0050.00517.66
8.1.00.0050.00317.60
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0030.00318.52
8.0.270.0000.00717.19
8.0.260.0030.00316.83
8.0.250.0000.00716.95
8.0.240.0000.00916.95
8.0.230.0000.00716.92
8.0.220.0000.00716.81
8.0.210.0000.00816.79
8.0.200.0060.00016.93
8.0.190.0030.00317.03
8.0.180.0000.00816.94
8.0.170.0060.00316.82
8.0.160.0000.00716.90
8.0.150.0040.00416.87
8.0.140.0000.00816.91
8.0.130.0030.00313.33
8.0.120.0000.00916.89
8.0.110.0040.00416.97
8.0.100.0040.00416.95
8.0.90.0040.00416.96
8.0.80.0030.01416.91
8.0.70.0000.00716.89
8.0.60.0040.00416.68
8.0.50.0080.00016.81
8.0.30.0100.00917.15
8.0.20.0130.00817.19
8.0.10.0020.00516.83
8.0.00.0070.01116.81
7.4.330.0020.00213.02
7.4.320.0060.00016.57
7.4.300.0000.00616.58
7.4.290.0000.00716.56
7.4.280.0030.00616.54
7.4.270.0000.00616.43
7.4.260.0030.00313.23
7.4.250.0030.00516.38
7.4.240.0070.00016.46
7.4.230.0070.00016.37
7.4.220.0120.00316.43
7.4.210.0070.00716.46
7.4.200.0070.00016.61
7.4.190.0040.00416.68
7.4.160.0110.01116.60
7.4.150.0080.01516.35
7.4.140.0100.01016.47
7.4.130.0110.00616.57
7.4.120.0120.00616.53
7.4.110.0100.00716.42
7.4.100.0080.01616.53
7.4.90.0170.00016.53
7.4.80.0000.01716.51
7.4.70.0130.00316.54
7.4.60.0120.00416.47
7.4.50.0060.00316.45
7.4.40.0080.00816.23
7.4.30.0080.00816.58
7.4.00.0080.00914.76
7.3.330.0000.00613.32
7.3.320.0000.00513.29
7.3.310.0000.00716.39
7.3.300.0030.00316.22
7.3.290.0060.00916.28
7.3.280.0090.00716.31
7.3.270.0040.01316.58
7.3.260.0090.00916.48
7.3.250.0110.01016.41
7.3.240.0130.00316.25
7.3.230.0150.00616.39
7.3.210.0130.00316.43
7.3.200.0100.01319.39
7.3.190.0190.00416.32
7.3.180.0130.00316.49
7.3.170.0090.01216.55
7.3.160.0060.00916.39
7.3.120.0110.00614.91
7.3.110.0060.00714.78
7.3.100.0030.01014.88
7.3.90.0070.00814.76
7.3.80.0040.00915.12
7.3.70.0030.00814.72
7.3.60.0060.00714.89
7.3.50.0020.00814.76
7.3.40.0090.00314.94
7.3.30.0060.00914.67
7.3.20.0040.01116.56
7.3.10.0050.00816.61
7.3.00.0050.00816.60
7.2.330.0140.00316.38
7.2.320.0140.00416.73
7.2.310.0100.01316.43
7.2.300.0140.00316.84
7.2.290.0110.00516.74
7.2.250.0050.01115.24
7.2.240.0110.00815.29
7.2.230.0080.00815.26
7.2.220.0110.00615.07
7.2.210.0100.00615.23
7.2.200.0050.00515.04
7.2.190.0060.00815.12
7.2.180.0020.01115.04
7.2.170.0030.00915.21
7.2.160.0070.00315.07
7.2.150.0110.00416.91
7.2.140.0060.00916.62
7.2.130.0030.00817.01
7.2.120.0090.00316.86
7.2.110.0070.00916.87
7.2.100.0090.00416.96
7.2.90.0050.01216.93
7.2.80.0090.00516.90
7.2.70.0060.01016.72
7.2.60.0020.01317.03
7.2.50.0080.00716.99
7.2.40.0090.00517.14
7.2.30.0060.00617.01
7.2.20.0070.00317.00
7.2.10.0050.00816.79
7.2.00.0050.00817.69
7.1.330.0070.00715.82
7.1.320.0070.00415.85
7.1.310.0050.01015.89
7.1.300.0030.00815.75
7.1.290.0100.00215.73
7.1.280.0080.00415.67
7.1.270.0020.00815.89
7.1.260.0030.00915.72
7.1.250.0060.00615.77
7.1.100.0080.00617.69
7.1.70.0040.00817.10
7.1.60.0100.01319.40
7.1.50.0140.01016.98
7.1.00.0070.07322.30
7.0.200.0000.00916.68
7.0.140.0130.05722.09
7.0.120.0100.07022.12
7.0.60.0130.08019.93
7.0.50.0000.04317.83
7.0.40.0070.03717.74
7.0.30.0030.04017.72
7.0.20.0000.04317.72
7.0.10.0030.04017.81
7.0.00.0030.04017.82
5.6.280.0000.07720.91
5.6.210.0070.08320.65
5.6.200.0100.03318.18
5.6.190.0070.04718.18
5.6.180.0030.04018.12
5.6.170.0000.04318.15
5.6.160.0030.04018.25
5.6.150.0030.04018.18
5.6.140.0100.03318.11
5.6.130.0030.04318.15
5.6.120.0000.04318.21
5.6.110.0070.03718.23
5.6.100.0030.04318.14
5.6.90.0030.04018.20
5.6.80.0030.04017.54
5.6.70.0070.03317.57
5.6.60.0000.05717.55
5.6.50.0030.08317.57
5.6.40.0130.05717.50
5.6.30.0100.07717.48
5.6.20.0070.06317.50
5.6.10.0070.06717.59
5.6.00.0130.05317.46
5.5.350.0300.06720.50
5.5.340.0000.05017.95
5.5.330.0030.04318.14
5.5.320.0030.03718.04
5.5.310.0030.04318.08
5.5.300.0000.04017.98
5.5.290.0030.04017.98
5.5.280.0000.04317.98
5.5.270.0100.03317.98
5.5.260.0070.03717.94
5.5.250.0070.04317.79
5.5.240.0000.04017.32
5.5.230.0070.03717.46
5.5.220.0000.05317.46
5.5.210.0100.04317.32
5.5.200.0070.07017.35
5.5.190.0130.04017.33
5.5.180.0130.08017.30
5.5.160.0070.05017.38
5.5.150.0030.05717.29
5.5.140.0030.08017.30
5.5.130.0000.05017.38
5.5.120.0100.06717.36
5.5.110.0130.07017.37
5.5.100.0130.06717.22
5.5.90.0170.07017.24
5.5.80.0030.05317.16
5.5.70.0070.07317.23
5.5.60.0100.07717.33
5.5.50.0100.07017.21
5.5.40.0070.08017.22
5.5.30.0230.06317.22
5.5.20.0070.07317.23
5.5.10.0070.08017.16
5.5.00.0170.04317.31
5.4.450.0030.04019.46
5.4.440.0030.04019.34
5.4.430.0070.03319.36
5.4.420.0000.04019.38
5.4.410.0000.04019.29
5.4.400.0070.03319.11
5.4.390.0100.03319.03
5.4.380.0130.07019.12
5.4.370.0100.04318.98
5.4.360.0070.04719.05
5.4.350.0100.04019.03
5.4.340.0100.07018.99
5.4.320.0100.07318.96
5.4.310.0230.06019.03
5.4.300.0100.03318.98
5.4.290.0030.04019.03
5.4.280.0100.06319.15
5.4.270.0070.07719.02
5.4.260.0000.05019.04
5.4.250.0070.05319.26
5.4.240.0130.05719.13
5.4.230.0130.05719.12
5.4.220.0030.07319.09
5.4.210.0100.07319.04
5.4.200.0070.05319.02
5.4.190.0070.07319.04
5.4.180.0200.06319.04
5.4.170.0070.08019.10
5.4.160.0030.06718.99
5.4.150.0070.07719.12
5.4.140.0070.07016.38
5.4.130.0070.03316.62
5.4.120.0130.03316.59
5.4.110.0070.07316.55
5.4.100.0170.06716.35
5.4.90.0030.07716.43
5.4.80.0030.06316.62
5.4.70.0070.05016.38
5.4.60.0100.07016.40
5.4.50.0030.04316.32
5.4.40.0200.06316.46
5.4.30.0070.04316.35
5.4.20.0100.06016.55
5.4.10.0030.05316.37
5.4.00.0030.06315.68
5.3.290.0100.04714.73
5.3.280.0030.04014.59
5.3.270.0070.05014.65
5.3.260.0030.04714.68
5.3.250.0030.04314.67
5.3.240.0070.06014.68
5.3.230.0170.05314.65
5.3.220.0030.04714.78
5.3.210.0130.07014.60
5.3.200.0070.07714.62
5.3.190.0070.07014.60
5.3.180.0030.04714.59
5.3.170.0070.06014.61
5.3.160.0030.07314.78
5.3.150.0000.08714.57
5.3.140.0130.06014.55
5.3.130.0030.08314.58
5.3.120.0100.08014.54
5.3.110.0100.03714.59
5.3.100.0070.07014.14
5.3.90.0070.05314.23
5.3.80.0130.05714.00
5.3.70.0030.08014.04
5.3.60.0030.07713.89
5.3.50.0100.04713.96
5.3.40.0030.05314.16
5.3.30.0000.07713.97
5.3.20.0130.05713.74
5.3.10.0100.06713.70
5.3.00.0100.07013.62
5.2.170.0030.05011.24
5.2.160.0070.06011.20
5.2.150.0070.05011.37
5.2.140.0000.05711.20
5.2.130.0030.05711.14
5.2.120.0070.05311.14
5.2.110.0030.06011.07
5.2.100.0070.05011.16
5.2.90.0100.03011.08
5.2.80.0000.03711.15
5.2.70.0030.06011.14
5.2.60.0030.06711.08
5.2.50.0070.06011.05
5.2.40.0100.05310.98
5.2.30.0100.06010.98
5.2.20.0030.06711.00
5.2.10.0070.04710.75
5.2.00.0030.06710.68
5.1.60.0070.0579.99
5.1.50.0070.04710.04
5.1.40.0070.03710.05
5.1.30.0100.02710.34
5.1.20.0070.03010.39
5.1.10.0070.0539.91
5.1.00.0030.03010.12
5.0.50.0100.0408.64
5.0.40.0070.0208.61
5.0.30.0000.0608.44
5.0.20.0130.0278.44
5.0.10.0100.0378.44
5.0.00.0070.0638.44
4.4.90.0030.0338.44
4.4.80.0070.0308.44
4.4.70.0100.0278.44
4.4.60.0070.0338.44
4.4.50.0000.0408.44
4.4.40.0070.0438.44
4.4.30.0070.0178.44
4.4.20.0000.0238.44
4.4.10.0070.0308.44
4.4.00.0030.0538.44
4.3.110.0030.0178.44
4.3.100.0000.0408.44
4.3.90.0030.0278.44
4.3.80.0070.0278.44
4.3.70.0000.0278.44
4.3.60.0130.0238.44
4.3.50.0000.0178.44
4.3.40.0030.0238.44
4.3.30.0030.0138.44
4.3.20.0000.0178.44
4.3.10.0070.0308.44
4.3.00.0030.0208.44

preferences:
117.2 ms | 401 KiB | 5 Q