3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { public static $prop; } class ChildClass extends ParentClass { public static $prop; } 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.0140.00718.30
8.3.50.0100.00521.99
8.3.40.0090.01218.56
8.3.30.0040.01118.81
8.3.20.0000.00818.60
8.3.10.0040.00420.54
8.3.00.0040.00421.91
8.2.180.0060.00916.63
8.2.170.0180.00422.96
8.2.160.0070.00720.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00719.48
8.2.110.0040.00822.26
8.2.100.0080.00317.91
8.2.90.0050.00219.17
8.2.80.0080.00017.97
8.2.70.0080.00317.50
8.2.60.0000.00818.04
8.2.50.0060.00618.07
8.2.40.0030.01117.90
8.2.30.0080.00019.91
8.2.20.0040.00417.55
8.2.10.0070.00017.66
8.2.00.0040.00417.73
8.1.280.0060.00925.92
8.1.270.0090.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.01022.50
8.1.230.0040.00820.90
8.1.220.0060.00318.77
8.1.210.0080.00018.97
8.1.200.0080.00017.38
8.1.190.0080.00017.51
8.1.180.0000.00818.10
8.1.170.0080.00018.57
8.1.160.0000.00718.87
8.1.150.0000.00718.73
8.1.140.0040.00417.39
8.1.130.0000.00717.71
8.1.120.0070.00017.33
8.1.110.0070.00017.43
8.1.100.0000.00817.35
8.1.90.0030.00617.52
8.1.80.0070.00017.53
8.1.70.0000.00817.46
8.1.60.0080.00017.65
8.1.50.0000.00817.50
8.1.40.0050.00317.50
8.1.30.0040.00417.58
8.1.20.0080.00017.59
8.1.10.0040.00417.51
8.1.00.0040.00417.57
8.0.300.0000.00820.02
8.0.290.0050.00316.75
8.0.280.0000.00718.42
8.0.270.0000.00717.20
8.0.260.0000.00716.89
8.0.250.0000.00716.95
8.0.240.0030.00616.86
8.0.230.0030.00316.84
8.0.220.0040.00416.85
8.0.210.0040.00416.96
8.0.200.0000.00916.87
8.0.190.0040.00416.99
8.0.180.0030.00516.84
8.0.170.0030.00516.95
8.0.160.0070.00016.89
8.0.150.0040.00416.86
8.0.140.0040.00416.89
8.0.130.0030.00613.30
8.0.120.0040.00416.82
8.0.110.0000.01116.88
8.0.100.0040.00416.78
8.0.90.0050.00316.79
8.0.80.0040.01416.93
8.0.70.0000.00716.80
8.0.60.0000.00816.86
8.0.50.0040.00416.88
8.0.30.0100.01117.13
8.0.20.0090.01017.40
8.0.10.0080.00016.93
8.0.00.0090.00916.75
7.4.330.0030.00314.70
7.4.320.0060.00316.55
7.4.300.0030.00316.45
7.4.290.0000.00716.51
7.4.280.0030.00616.35
7.4.270.0060.00316.41
7.4.260.0000.00513.23
7.4.250.0040.00416.32
7.4.240.0000.00716.56
7.4.230.0000.00916.30
7.4.220.0110.00716.55
7.4.210.0060.01116.54
7.4.200.0030.00316.65
7.4.190.0070.00016.53
7.4.160.0070.01016.40
7.4.150.0090.00617.40
7.4.140.0140.00717.86
7.4.130.0110.00816.47
7.4.120.0140.00616.52
7.4.110.0100.00616.56
7.4.100.0120.00616.43
7.4.90.0060.01016.53
7.4.80.0100.00719.37
7.4.70.0070.01616.35
7.4.60.0130.00716.32
7.4.50.0040.00416.18
7.4.40.0030.01122.27
7.4.30.0060.01216.54
7.4.00.0060.00614.96
7.3.330.0030.00313.35
7.3.320.0000.00613.28
7.3.310.0070.00016.22
7.3.300.0090.00016.33
7.3.290.0040.01116.26
7.3.280.0080.00716.29
7.3.270.0100.00717.40
7.3.260.0130.00718.24
7.3.250.0140.00516.48
7.3.240.0030.01416.45
7.3.230.0060.01216.39
7.3.210.0100.00616.61
7.3.200.0130.00419.39
7.3.190.0070.01116.55
7.3.180.0160.00016.59
7.3.170.0070.01416.74
7.3.160.0130.00416.54
7.3.120.0040.01114.88
7.3.10.0060.00616.57
7.3.00.0090.00616.78
7.2.330.0140.00616.79
7.2.320.0060.00916.46
7.2.310.0060.01516.57
7.2.300.0090.00916.84
7.2.290.0040.01216.38
7.2.130.0080.00716.76
7.2.120.0120.00216.86
7.2.110.0070.00516.98
7.2.100.0090.00816.67
7.2.90.0100.00816.83
7.2.80.0070.00816.91
7.2.70.0080.00816.87
7.2.60.0110.00316.87
7.2.50.0060.01116.59
7.2.40.0040.00816.97
7.2.30.0050.01016.81
7.2.20.0070.00917.00
7.2.10.0060.00816.99
7.2.00.0130.00517.55
7.1.250.0130.00215.64
7.1.240.0130.00515.77
7.1.230.0090.00915.45
7.1.220.0150.00715.77
7.1.210.0160.00315.55
7.1.200.0110.00415.65
7.1.190.0130.00615.58
7.1.180.0170.00315.78
7.1.170.0030.01015.73
7.1.160.0100.00715.50
7.1.150.0070.01015.51
7.1.140.0050.00815.38
7.1.130.0110.00415.73
7.1.120.0030.01015.39
7.1.110.0090.00915.81
7.1.100.0080.00516.94
7.1.90.0120.00015.53
7.1.80.0140.00315.99
7.1.70.0090.00416.58
7.1.60.0080.00716.44
7.1.50.0050.01316.29
7.1.40.0070.01115.62
7.1.30.0140.00315.55
7.1.20.0130.00615.79
7.1.10.0120.00315.59
7.1.00.0070.03518.92
7.0.330.0100.00615.29
7.0.320.0030.01015.39
7.0.310.0100.00715.04
7.0.300.0160.00015.30
7.0.290.0120.00615.43
7.0.280.0140.00415.26
7.0.270.0150.00415.30
7.0.260.0140.00315.36
7.0.250.0080.00415.58
7.0.240.0060.01015.27
7.0.230.0120.00615.45
7.0.220.0070.01015.45
7.0.210.0110.00715.31
7.0.200.0060.00916.00
7.0.190.0070.00415.20
7.0.180.0100.00615.46
7.0.170.0110.00315.30
7.0.160.0060.00915.11
7.0.150.0080.00415.46
7.0.140.0080.03518.65
7.0.130.0130.00315.46
7.0.120.0120.00615.49
7.0.110.0070.00715.48
7.0.100.0130.00315.46
7.0.90.0090.00615.48
7.0.80.0090.00615.31
7.0.70.0120.00315.37
7.0.60.0100.03417.62
7.0.50.0070.04116.52
7.0.40.0080.05016.67
7.0.30.0320.02016.85
7.0.20.0070.02716.79
7.0.10.0130.03116.86
7.0.00.0040.04716.84
5.6.380.0030.00814.32
5.6.370.0100.00314.49
5.6.360.0100.00314.30
5.6.350.0040.00714.15
5.6.340.0030.01414.35
5.6.330.0030.00614.52
5.6.320.0100.00314.23
5.6.310.0080.00014.46
5.6.300.0060.00614.38
5.6.290.0030.00614.45
5.6.280.0070.04517.77
5.6.270.0100.00314.22
5.6.260.0040.01114.45
5.6.250.0100.00614.14
5.6.240.0130.00314.52
5.6.230.0100.00313.93
5.6.220.0120.00314.02
5.6.210.0100.04017.21
5.6.200.0030.02816.20
5.6.190.0100.04317.41
5.6.180.0130.03717.34
5.6.170.0190.04117.38
5.6.160.0050.02417.41
5.6.150.0130.02716.11
5.6.140.0110.03516.33
5.6.130.0040.03916.40
5.6.120.0110.02117.56
5.6.110.0120.04417.77
5.6.100.0110.04317.47
5.6.90.0040.02517.58
5.6.80.0080.01817.42
5.6.70.0120.04217.24
5.6.60.0080.00814.11
5.6.50.0030.01214.17
5.6.40.0060.00914.13
5.6.30.0030.01014.18
5.6.20.0100.00314.13
5.6.10.0040.00714.19
5.6.00.0000.01414.19
5.5.380.0080.00311.41
5.5.370.0000.00810.70
5.5.360.0090.00311.27
5.5.350.0190.03815.80
5.5.340.0080.02714.50
5.5.330.0020.02715.72
5.5.320.0210.02815.73
5.5.310.0150.04015.81
5.5.300.0050.04814.56
5.5.290.0050.02514.60
5.5.280.0080.02516.16
5.5.270.0100.04016.19
5.5.260.0020.02616.08
5.5.250.0020.02515.87
5.5.240.0050.04215.57
5.5.230.0040.00811.18
5.5.220.0000.01111.02
5.5.210.0030.00711.02
5.5.200.0040.00411.05
5.5.190.0000.00810.79
5.5.180.0030.00711.27
5.5.170.0040.00411.34
5.5.160.0040.00710.96
5.5.150.0030.00910.81
5.5.140.0060.00311.16
5.5.130.0000.00811.11
5.5.120.0040.00410.97
5.5.110.0080.00010.95
5.5.100.0040.00810.77
5.5.90.0090.00310.75
5.5.80.0040.00410.98
5.5.70.0000.00611.06
5.5.60.0070.00711.12
5.5.50.0020.00511.11
5.5.40.0030.00611.04
5.5.30.0050.00511.19
5.5.20.0030.00710.95
5.5.10.0030.00711.01
5.5.00.0070.00311.14
5.4.450.2060.02215.14
5.4.440.0830.02115.11
5.4.430.2340.02415.23
5.4.420.2070.02315.32
5.4.410.2000.02615.17
5.4.400.0510.02814.92
5.4.390.1940.02414.83
5.4.380.1990.02415.04
5.4.370.1970.01815.08
5.4.360.1830.02214.72
5.4.350.1600.02314.96
5.4.340.2020.02315.13
5.4.330.0080.00511.04
5.4.320.2260.01815.24
5.4.310.2260.02215.22
5.4.300.2380.01714.98
5.4.290.2350.02315.24
5.4.280.2430.01815.10
5.4.270.2190.02214.97
5.4.260.2020.02414.86
5.4.250.2370.01815.02
5.4.240.1970.02415.12
5.4.230.1850.02215.07
5.4.220.1890.02615.04
5.4.210.2280.02314.92
5.4.200.2250.01815.19
5.4.190.2160.02214.96
5.4.180.2320.02314.98
5.4.170.2120.02315.02
5.4.160.1890.02214.86
5.4.150.1800.02815.14
5.4.140.1930.02013.61
5.4.130.1900.01713.55
5.4.120.1870.01813.48
5.4.110.1730.02113.54
5.4.100.2020.02513.42
5.4.90.1900.01913.59
5.4.80.1950.01813.39
5.4.70.1830.01813.49
5.4.60.1950.02513.63
5.4.50.1990.01813.61
5.4.40.1970.01813.82
5.4.30.1830.02113.69
5.4.20.2120.02013.72
5.4.10.2100.02813.64
5.4.00.2000.02313.47
5.3.290.2160.02112.48
5.3.280.1930.01812.37
5.3.270.2340.02212.52
5.3.260.1950.02212.53
5.3.250.1910.02112.50
5.3.240.1980.02312.54
5.3.230.1950.01712.39
5.3.220.1850.02012.53
5.3.210.2430.02412.57
5.3.200.1810.02112.43
5.3.190.1980.01712.45
5.3.180.1840.02112.54
5.3.170.1840.02612.60
5.3.160.1990.01812.39
5.3.150.1970.02012.56
5.3.140.2000.01812.59
5.3.130.1990.02112.53
5.3.120.1830.02212.51
5.3.110.2090.02512.57
5.3.100.1930.02212.23
5.3.90.1890.02112.33
5.3.80.1960.02012.26
5.3.70.1920.02412.26
5.3.60.1830.02012.29
5.3.50.1870.02312.14
5.3.40.2220.02312.12
5.3.30.2280.01812.09
5.3.20.2370.02011.96
5.3.10.1980.02011.81
5.3.00.2020.01712.01
5.2.170.1570.01910.33
5.2.160.1450.01810.34
5.2.150.1730.01810.36
5.2.140.2000.02010.36
5.2.130.1950.01110.32
5.2.120.1880.01810.33
5.2.110.1750.01010.38
5.2.100.1800.01610.43
5.2.90.1660.01610.31
5.2.80.1650.01910.31
5.2.70.1680.01510.32
5.2.60.2060.02110.36
5.2.50.1730.01810.42
5.2.40.1420.01210.38
5.2.30.1280.01410.33
5.2.20.1510.01710.28
5.2.10.1050.02010.28
5.2.00.1420.01310.19
5.1.60.1400.0139.80
5.1.50.0000.0319.77
5.1.40.0030.0169.77
5.1.30.0030.0179.93
5.1.20.0030.01610.02
5.1.10.1140.0209.80
5.1.00.1570.0169.79
5.0.50.0930.0129.77
5.0.40.0940.0089.77
5.0.30.0850.0159.77
5.0.20.0870.0139.77
5.0.10.0900.0139.77
5.0.00.0870.0179.77
4.4.90.0500.0129.77
4.4.80.0680.0109.77
4.4.70.0750.0099.77
4.4.60.0750.0149.77
4.4.50.0780.0139.77
4.4.40.0340.0139.77
4.4.30.0020.0129.77
4.4.20.0030.0209.77
4.4.10.0900.0119.77
4.4.00.0740.0139.77
4.3.110.0890.0129.77
4.3.100.1000.0069.77
4.3.90.0700.0129.77
4.3.80.0730.0109.77
4.3.70.0630.0079.77
4.3.60.0710.0089.77
4.3.50.0650.0099.77
4.3.40.0820.0139.77
4.3.30.0470.0129.77
4.3.20.0330.0109.77
4.3.10.0410.0159.77
4.3.00.0400.0179.77

preferences:
45.47 ms | 401 KiB | 5 Q