3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { protected static $property = 'foo'; public function method() { echo self::$property . "\n"; } } class Child extends Base { public function __construct() { Base::$property = 'bar'; } } echo "base1\n"; $base1 = new Base(); $base1->method(); echo "child\n"; $child = new Child(); $child->method(); echo "base2\n"; $base2 = new Base(); $base2->method();

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.0040.01118.85
8.3.30.0110.00419.21
8.3.20.0080.00020.39
8.3.10.0000.00822.05
8.3.00.0040.00422.30
8.2.170.0110.00422.96
8.2.160.0100.00320.89
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0080.00019.48
8.2.110.0070.00322.08
8.2.100.0090.00317.91
8.2.90.0040.00419.05
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0050.00317.93
8.2.50.0080.00018.07
8.2.40.0060.00318.34
8.2.30.0050.00218.02
8.2.20.0030.00517.72
8.2.10.0050.00319.43
8.2.00.0000.00817.67
8.1.270.0000.00823.73
8.1.260.0100.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00023.89
8.1.230.0070.00318.99
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0080.00017.53
8.1.180.0050.00318.10
8.1.170.0040.00418.57
8.1.160.0040.00422.01
8.1.150.0050.00318.52
8.1.140.0040.00417.46
8.1.130.0030.00317.89
8.1.120.0040.00417.36
8.1.110.0030.00617.44
8.1.100.0040.00417.48
8.1.90.0030.00317.38
8.1.80.0030.00317.50
8.1.70.0040.00417.40
8.1.60.0040.00417.53
8.1.50.0060.00317.57
8.1.40.0040.00417.57
8.1.30.0040.00417.68
8.1.20.0000.00817.64
8.1.10.0070.00017.62
8.1.00.0000.00817.47
8.0.300.0030.00318.77
8.0.290.0040.00417.15
8.0.280.0030.00318.45
8.0.270.0030.00317.29
8.0.260.0000.00716.83
8.0.250.0050.00316.85
8.0.240.0040.00416.89
8.0.230.0070.00016.94
8.0.220.0030.00316.96
8.0.210.0030.00416.83
8.0.200.0030.00316.94
8.0.190.0040.00316.90
8.0.180.0090.00016.80
8.0.170.0040.00416.96
8.0.160.0040.00416.98
8.0.150.0000.00716.91
8.0.140.0000.00816.78
8.0.130.0000.00813.29
8.0.120.0040.00416.88
8.0.110.0000.00716.77
8.0.100.0050.00216.74
8.0.90.0040.00416.91
8.0.80.0040.01116.85
8.0.70.0000.00816.72
8.0.60.0050.00316.72
8.0.50.0000.00716.63
8.0.30.0110.00817.00
8.0.20.0170.00517.40
8.0.10.0070.00016.75
8.0.00.0080.01016.64
7.4.330.0030.00315.00
7.4.320.0000.00716.55
7.4.300.0030.00316.63
7.4.290.0040.00416.50
7.4.280.0000.00616.35
7.4.270.0070.00016.61
7.4.260.0080.00016.58
7.4.250.0000.00816.49
7.4.240.0060.00216.60
7.4.230.0000.00716.61
7.4.220.0100.01716.63
7.4.210.0100.00816.51
7.4.200.0000.00716.71
7.4.190.0030.00316.41
7.4.160.0060.01216.41
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0090.00916.42
7.4.120.0110.00616.64
7.4.110.0060.01616.53
7.4.100.0110.01116.35
7.4.90.0100.01316.48
7.4.80.0080.01119.39
7.4.70.0110.00416.32
7.4.60.0100.00716.48
7.4.50.0000.00616.52
7.4.40.0040.01522.77
7.4.30.0030.01216.52
7.4.10.0060.01314.81
7.4.00.0060.00914.92
7.3.330.0050.00013.16
7.3.320.0000.00513.16
7.3.310.0030.00316.20
7.3.300.0070.00016.35
7.3.290.0120.00416.31
7.3.280.0060.01316.29
7.3.270.0060.01617.40
7.3.260.0090.00916.40
7.3.250.0090.00816.33
7.3.240.0120.00416.30
7.3.230.0070.01016.39
7.3.210.0060.01816.50
7.3.200.0110.00719.39
7.3.190.0130.00416.29
7.3.180.0060.01216.42
7.3.170.0140.00316.59
7.3.160.0110.00716.33
7.3.130.0040.01415.06
7.3.120.0030.01314.71
7.3.110.0060.00914.83
7.3.100.0050.01114.72
7.3.90.0030.00914.97
7.3.80.0040.00814.79
7.3.70.0070.00414.66
7.3.60.0050.00614.87
7.3.50.0040.00614.72
7.3.40.0060.00714.64
7.3.30.0040.01014.68
7.3.20.0050.00816.59
7.3.10.0060.00716.48
7.3.00.0060.00716.40
7.2.330.0070.01116.39
7.2.320.0090.01616.76
7.2.310.0100.01016.42
7.2.300.0060.01016.86
7.2.290.0140.00316.45
7.2.260.0100.00614.89
7.2.250.0130.00515.22
7.2.240.0040.01114.94
7.2.230.0050.00815.04
7.2.220.0060.00815.21
7.2.210.0050.00715.05
7.2.200.0100.00515.00
7.2.190.0040.01014.93
7.2.180.0040.01115.10
7.2.170.0070.00714.95
7.2.160.0050.01015.11
7.2.150.0040.01216.91
7.2.140.0050.00816.68
7.2.130.0080.00716.81
7.2.120.0060.00616.76
7.2.110.0030.00817.00
7.2.100.0050.00916.84
7.2.90.0050.01016.70
7.2.80.0080.00616.99
7.2.70.0060.00616.89
7.2.60.0070.00816.82
7.2.50.0050.00816.75
7.2.40.0090.00416.77
7.2.30.0020.01117.08
7.2.20.0080.00716.87
7.2.10.0090.00616.78
7.2.00.0040.00917.46
7.1.330.0060.00715.72
7.1.320.0050.00715.66
7.1.310.0080.00515.72
7.1.300.0060.01015.65
7.1.290.0080.00615.56
7.1.280.0050.00915.77
7.1.270.0030.01015.70
7.1.260.0020.01015.72
7.1.250.0040.00615.56
7.1.240.0070.01015.59
7.1.230.0130.00315.70
7.1.220.0070.01015.77
7.1.210.0040.00715.66
7.1.200.0090.00415.62
7.1.190.0070.00715.78
7.1.180.0070.00715.64
7.1.170.0000.00915.59
7.1.160.0070.00415.87
7.1.150.0070.00715.75
7.1.140.0060.00615.57
7.1.130.0040.00815.76
7.1.120.0030.00715.48
7.1.110.0040.00715.80
7.1.100.0020.01216.65
7.1.90.0030.01015.51
7.1.80.0000.01215.69
7.1.70.0150.00416.23
7.1.60.0050.01317.70
7.1.50.0050.01416.18
7.1.40.0040.00715.67
7.1.30.0030.00715.91
7.1.20.0000.01115.66
7.1.10.0060.00915.62
7.1.00.0050.04219.03
7.0.330.0040.01115.51
7.0.320.0100.00315.48
7.0.310.0060.00315.47
7.0.300.0090.00315.45
7.0.290.0000.01215.43
7.0.280.0070.00715.24
7.0.270.0040.00815.46
7.0.260.0070.00315.14
7.0.250.0130.00015.33
7.0.240.0070.00715.39
7.0.230.0070.00715.39
7.0.220.0030.01015.22
7.0.210.0030.01015.42
7.0.200.0060.00815.99
7.0.190.0030.00915.37
7.0.180.0000.01315.39
7.0.170.0030.00815.46
7.0.160.0030.01015.46
7.0.150.0030.00615.27
7.0.140.0030.04018.78
7.0.130.0000.01115.21
7.0.120.0090.00315.44
7.0.110.0000.01315.16
7.0.100.0060.00615.44
7.0.90.0100.00315.07
7.0.80.0000.01215.43
7.0.70.0060.00615.46
7.0.60.0020.03517.65
7.0.50.0120.03316.58
7.0.40.0110.02916.69
7.0.30.0340.03716.84
7.0.20.0200.03616.77
7.0.10.0030.03916.88
7.0.00.0080.04516.76
5.6.400.0070.00314.39
5.6.390.0000.01214.05
5.6.380.0030.00614.19
5.6.370.0080.00414.34
5.6.360.0070.00714.64
5.6.350.0100.00314.63
5.6.340.0060.00814.41
5.6.330.0080.00414.56
5.6.320.0040.01114.45
5.6.310.0080.00614.54
5.6.300.0030.00714.60
5.6.290.0060.00914.21
5.6.280.0060.04017.71
5.6.270.0000.01414.61
5.6.260.0110.01114.38
5.6.250.0110.00414.54
5.6.240.0030.01714.68
5.6.230.0060.00614.30
5.6.220.0070.01014.28
5.6.210.0030.02717.43
5.6.200.0070.02016.15
5.6.190.0060.04517.45
5.6.180.1850.02517.42
5.6.170.0110.04117.34
5.6.160.0020.04117.54
5.6.150.0090.02216.25
5.6.140.0080.03916.15
5.6.130.0000.02816.21
5.6.120.0070.04217.85
5.6.110.0070.04517.73
5.6.100.0080.04317.70
5.6.90.0080.04517.57
5.6.80.0070.03217.45
5.6.70.2310.02617.47
5.6.60.0030.01014.28
5.6.50.0000.01214.53
5.6.40.0030.00614.00
5.6.30.0070.00714.22
5.6.20.0040.01114.44
5.6.10.0040.01214.15
5.6.00.0070.00714.17
5.5.380.0070.00314.24
5.5.370.0030.01014.30
5.5.360.0040.00414.39
5.5.350.0090.03617.24
5.5.340.0000.03716.10
5.5.330.0050.02417.33
5.5.320.0230.02817.43
5.5.310.0160.02817.13
5.5.300.0140.03216.20
5.5.290.0060.04616.26
5.5.280.0080.03317.59
5.5.270.0090.04317.54
5.5.260.0090.02917.58
5.5.250.0070.02217.44
5.5.240.0120.04717.27
5.5.230.0030.01014.02
5.5.220.0070.00714.25
5.5.210.0070.00714.13
5.5.200.0100.00314.20
5.5.190.0000.01314.22
5.5.180.0120.00314.43
5.5.170.0070.00714.21
5.5.160.0000.00914.38
5.5.150.0070.00713.97
5.5.140.0080.00814.46
5.5.130.0030.01014.28
5.5.120.0070.00713.72
5.5.110.0080.00413.94
5.5.100.0040.00814.05
5.5.90.0100.00014.18
5.5.80.0030.01014.11
5.5.70.0070.00714.05
5.5.60.0030.01313.87
5.5.50.0090.00614.07
5.5.40.0060.00614.10
5.5.30.0070.00713.98
5.5.20.0040.00814.36
5.5.10.0070.00313.78
5.5.00.0030.01414.48
5.4.450.0970.02215.60
5.4.440.0870.02115.50
5.4.430.0970.02915.59
5.4.420.0830.02115.61
5.4.410.0970.02515.42
5.4.400.0660.02315.34
5.4.390.0020.02315.38
5.4.380.0030.02115.44
5.4.370.0400.02015.33
5.4.360.0850.02315.37
5.4.350.0950.02215.27
5.4.340.0820.02415.38
5.4.330.0000.01111.67
5.4.320.0990.02515.40
5.4.310.0820.02215.35
5.4.300.0900.02715.44
5.4.290.0870.02315.31
5.4.280.0800.02515.45
5.4.270.0730.02015.43
5.4.260.0080.03515.36
5.4.250.0020.03115.44
5.4.240.0350.02315.32
5.4.230.0830.02315.40
5.4.220.0900.02515.41
5.4.210.0800.02215.44
5.4.200.0780.01915.49
5.4.190.0770.02315.31
5.4.180.0940.02515.44
5.4.170.0800.02015.27
5.4.160.0870.02215.32
5.4.150.0780.02615.40
5.4.140.0570.02314.03
5.4.130.0800.02014.11
5.4.120.0940.02414.12
5.4.110.0930.02514.00
5.4.100.0900.02614.13
5.4.90.0880.02314.15
5.4.80.0800.01814.13
5.4.70.0980.02713.97
5.4.60.0930.02313.95
5.4.50.0800.02314.05
5.4.40.0980.02414.09
5.4.30.0840.01914.11
5.4.20.0880.02414.10
5.4.10.0930.02514.05
5.4.00.0970.02513.81
5.3.290.0920.02013.28
5.3.280.0700.02013.25
5.3.270.0060.02513.09
5.3.260.0030.02813.20
5.3.250.0380.02613.18
5.3.240.0880.02913.14
5.3.230.0910.02313.14
5.3.220.0790.01913.20
5.3.210.0810.01813.11
5.3.200.0900.02613.16
5.3.190.0750.02513.17
5.3.180.0810.02113.09
5.3.170.0900.02213.12
5.3.160.0720.02513.18
5.3.150.0720.02613.12
5.3.140.0870.02013.10
5.3.130.0090.02113.10
5.3.120.0020.02313.15
5.3.110.0300.02313.22
5.3.100.0820.01912.84
5.3.90.0920.02212.81
5.3.80.0970.01812.89
5.3.70.0820.02812.96
5.3.60.0950.02112.79
5.3.50.0840.02412.85
5.3.40.0940.02012.81
5.3.30.0880.02112.87
5.3.20.0950.02112.69
5.3.10.1000.02312.62
5.3.00.0770.02712.62
5.2.170.0000.06711.06
5.2.160.0070.03011.07
5.2.150.0200.04311.06
5.2.140.1370.02711.16
5.2.130.1370.02711.07
5.2.120.1330.04711.02
5.2.110.1470.03011.01
5.2.100.1570.03311.20
5.2.90.1500.04011.04
5.2.80.1270.03311.07
5.2.70.1600.03011.02
5.2.60.1430.03710.96
5.2.50.1370.02710.99
5.2.40.1330.03310.90
5.2.30.1230.03311.05
5.2.20.1200.04010.87
5.2.10.0470.02311.01
5.2.00.0130.05010.63
5.1.60.0030.0239.91
5.1.50.0070.02710.09
5.1.40.0830.03710.14
5.1.30.1270.02710.31
5.1.20.1100.02310.31
5.1.10.1070.03010.13
5.1.00.1100.0279.96
5.0.50.0730.0178.68
5.0.40.0730.0208.46
5.0.30.0570.0438.23
5.0.20.0670.0208.13
5.0.10.0670.0308.06
5.0.00.0570.0278.14
4.4.90.0500.0136.88
4.4.80.0500.0176.88
4.4.70.0600.0206.88
4.4.60.0570.0176.88
4.4.50.0570.0106.88
4.4.40.0570.0306.88
4.4.30.0570.0176.88
4.4.20.0600.0206.88
4.4.10.0470.0206.88
4.4.00.0500.0236.88
4.3.110.0400.0236.88
4.3.100.0000.0176.88
4.3.90.0000.0276.88
4.3.80.0030.0206.88
4.3.70.0000.0176.88
4.3.60.0030.0236.88
4.3.50.0000.0206.88
4.3.40.0070.0336.88
4.3.30.0030.0136.88
4.3.20.0130.0176.88
4.3.10.0270.0176.88
4.3.00.0230.0176.88

preferences:
51.27 ms | 400 KiB | 5 Q