3v4l.org

run code in 300+ PHP versions simultaneously
<?php function outputofsomeprocess() { return range('A','E'); } class A{ public static $foo = array (); public static function doSomething(){ //... Do some process and instantiate static vairable $face self::$foo = outputofsomeprocess(); } } class B{ public function dosomethingelse(){ A::doSomething(); } } class C{ public function dosomethingelse(){ echo A::$foo[0]; } } $objB = new B(); $objB-> dosomethingelse(); $objC = new C(); $objC->dosomethingelse();

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.5.00.0150.00820.05
8.4.150.0010.00114.05
8.4.140.0120.00917.42
8.4.130.0150.00418.58
8.4.120.0120.00820.77
8.4.110.0100.01018.79
8.4.100.0140.00417.80
8.4.90.0130.00717.82
8.4.80.0110.00917.68
8.4.70.0100.01217.98
8.4.60.0120.00418.83
8.4.50.0100.00617.76
8.4.40.0070.01117.88
8.4.30.0100.01017.54
8.4.20.0130.00617.39
8.4.10.0040.00417.87
8.3.280.0150.00618.43
8.3.270.0090.00916.54
8.3.260.0120.00716.61
8.3.250.0130.00619.12
8.3.240.0080.01116.73
8.3.230.0080.01116.51
8.3.220.0090.00717.05
8.3.210.0090.00616.60
8.3.200.0110.00916.36
8.3.190.0070.00819.07
8.3.180.0100.00918.53
8.3.170.0140.00416.46
8.3.160.0140.00416.50
8.3.150.0120.00618.95
8.3.140.0050.00316.76
8.3.130.0080.00818.36
8.3.120.0090.00920.72
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0080.00826.77
8.3.80.0100.00018.06
8.3.70.0110.00718.43
8.3.60.0070.00716.75
8.3.50.0120.00721.27
8.3.40.0190.00418.84
8.3.30.0100.00719.09
8.3.20.0050.00320.39
8.3.10.0000.00823.66
8.3.00.0040.00417.71
8.2.290.0100.00820.68
8.2.280.0100.00818.11
8.2.270.0100.00716.48
8.2.260.0000.00820.84
8.2.250.0000.00816.47
8.2.240.0030.00619.08
8.2.230.0060.00322.58
8.2.220.0050.00537.54
8.2.210.0090.00026.77
8.2.200.0050.00516.38
8.2.190.0110.00316.58
8.2.180.0140.00316.36
8.2.170.0130.00319.06
8.2.160.0100.00322.96
8.2.150.0150.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0050.00321.07
8.2.110.0030.00619.31
8.2.100.0040.00817.75
8.2.90.0040.00419.34
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0040.00418.04
8.2.50.0080.00318.07
8.2.40.0050.00318.16
8.2.30.0060.00318.09
8.2.20.0000.00817.69
8.2.10.0030.00518.01
8.2.00.0070.00018.11
8.1.330.0130.00616.25
8.1.320.0110.00816.15
8.1.310.0050.00318.60
8.1.300.0040.00418.68
8.1.290.0070.00330.84
8.1.280.0130.00725.92
8.1.270.0100.01020.18
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0140.00722.72
8.1.230.0080.00417.48
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0030.00617.25
8.1.180.0050.00318.10
8.1.170.0030.00620.30
8.1.160.0040.00421.94
8.1.150.0070.00018.85
8.1.140.0040.00417.29
8.1.130.0030.00317.71
8.1.120.0000.00717.44
8.1.110.0040.00417.35
8.1.100.0030.00517.37
8.1.90.0000.00717.41
8.1.80.0030.00417.35
8.1.70.0030.00317.27
8.1.60.0050.00317.63
8.1.50.0040.00417.51
8.1.40.0040.00417.39
8.1.30.0040.00417.64
8.1.20.0050.00217.59
8.1.10.0000.00717.62
8.1.00.0000.00817.47
8.0.300.0030.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0030.00317.20
8.0.260.0000.00817.25
8.0.250.0070.00016.90
8.0.240.0000.00716.93
8.0.230.0030.00516.76
8.0.220.0070.00016.78
8.0.210.0040.00416.73
8.0.200.0000.00616.77
8.0.190.0070.00316.79
8.0.180.0040.00416.84
8.0.170.0060.00316.83
8.0.160.0040.00316.79
8.0.150.0000.00716.71
8.0.140.0040.00416.76
8.0.130.0000.00713.26
8.0.120.0040.00416.71
8.0.110.0000.00816.73
8.0.100.0000.00716.69
8.0.90.0070.00016.77
8.0.80.0000.02016.86
8.0.70.0040.00416.87
8.0.60.0000.00816.71
8.0.50.0000.00716.85
8.0.30.0130.01016.87
8.0.20.0080.01117.40
8.0.10.0040.00416.94
8.0.00.0080.01016.65
7.4.330.0050.00015.03
7.4.320.0000.00616.45
7.4.300.0000.00616.57
7.4.290.0000.00716.46
7.4.280.0030.00516.47
7.4.270.0000.00816.45
7.4.260.0000.00716.57
7.4.250.0000.00716.51
7.4.240.0070.00216.54
7.4.230.0030.00316.41
7.4.220.0040.01516.64
7.4.210.0050.01016.63
7.4.200.0030.00316.40
7.4.160.0120.00316.65
7.4.150.0160.00017.40
7.4.140.0110.00717.86
7.4.130.0120.00916.55
7.4.120.0100.01116.54
7.4.110.0090.00916.60
7.4.100.0110.00716.46
7.4.90.0120.00416.39
7.4.80.0100.01319.39
7.4.70.0080.00816.23
7.4.60.0170.00016.36
7.4.50.0040.00416.18
7.4.40.0060.00916.39
7.4.30.0060.00916.43
7.4.00.0090.00514.89
7.3.330.0030.00413.43
7.3.320.0080.00413.35
7.3.310.0000.00716.23
7.3.300.0070.00016.36
7.3.290.0000.00716.31
7.3.280.0120.00916.34
7.3.270.0100.01017.40
7.3.260.0030.02016.27
7.3.250.0090.01116.38
7.3.240.0140.00316.28
7.3.230.0040.01516.39
7.3.210.0030.01316.29
7.3.200.0130.01019.39
7.3.190.0090.00616.30
7.3.180.0100.00716.44
7.3.170.0060.01316.47
7.3.160.0100.01016.58
7.3.120.0030.01314.87
7.3.110.0070.01014.65
7.3.100.0000.01314.87
7.3.90.0000.01514.63
7.3.80.0030.00614.84
7.3.70.0030.01014.76
7.3.60.0000.01714.86
7.3.50.0100.00714.82
7.3.40.0100.00314.59
7.3.30.0040.01114.81
7.3.20.0080.00816.78
7.3.10.0040.01116.61
7.3.00.0060.00316.66
7.2.330.0090.00816.25
7.2.320.0060.01516.37
7.2.310.0170.01116.78
7.2.300.0060.01016.82
7.2.290.0070.01016.79
7.2.250.0060.01314.95
7.2.240.0100.01015.17
7.2.230.0100.00714.95
7.2.220.0100.00614.59
7.2.210.0030.01315.01
7.2.200.0060.01015.18
7.2.190.0000.01815.08
7.2.180.0000.01114.84
7.2.170.0090.00614.78
7.2.60.0100.00016.92
7.2.00.0060.00619.42
7.1.330.0090.00315.63
7.1.320.0070.00715.67
7.1.310.0030.00615.83
7.1.300.0090.00915.59
7.1.290.0080.00615.75
7.1.280.0060.00615.86
7.1.270.0030.01415.70
7.1.260.0070.00715.60
7.1.200.0070.00415.60
7.1.100.0080.00317.98
7.1.70.0000.00817.19
7.1.60.0100.01419.50
7.1.50.0130.01016.89
7.1.00.0030.07322.45
7.0.200.0060.00316.57
7.0.110.0030.05021.75
7.0.100.0030.07021.74
7.0.90.0100.07721.87
7.0.80.0000.08321.69
7.0.70.0100.08021.64
7.0.60.0070.07721.84
7.0.50.0030.08021.86
7.0.40.0030.08719.75
7.0.30.0070.08319.79
7.0.20.0070.08019.74
7.0.10.0070.08719.78
7.0.00.0130.07719.75
5.6.280.0000.07721.09
5.6.260.0030.08720.74
5.6.250.0000.07320.66
5.6.240.0000.06720.57
5.6.230.0030.08720.67
5.6.220.0000.07720.85
5.6.210.0030.08320.82
5.6.200.0070.08020.70
5.6.190.0030.08320.56
5.6.180.0000.08320.86
5.6.170.0070.08020.65
5.6.160.0070.08020.47
5.6.150.0070.08320.70
5.6.140.0130.07720.47
5.6.130.0100.07320.65
5.6.120.0030.08720.64
5.6.110.0100.08020.55
5.6.100.0070.08320.61
5.6.90.0030.05720.68
5.6.80.0100.06320.03
5.6.70.0000.08020.09
5.6.60.0030.07719.85
5.6.50.0030.07719.98
5.6.40.0030.05019.92
5.6.30.0070.07319.93
5.6.20.0070.07020.01
5.6.10.0070.07719.99
5.6.00.0070.08019.96
5.5.380.0030.08017.59
5.5.370.0130.07017.59
5.5.360.0100.07317.51
5.5.350.0070.07317.54
5.5.340.0000.08318.09
5.5.330.0000.05018.13
5.5.320.0100.08017.91
5.5.310.0000.08718.10
5.5.300.0100.07717.93
5.5.290.0070.07718.12
5.5.280.0070.07318.25
5.5.270.0030.08017.90
5.5.260.0000.08717.95
5.5.250.0000.08717.89
5.5.240.0030.07717.34
5.5.230.0030.04717.48
5.5.220.0000.05717.30
5.5.210.0070.07017.47
5.5.200.0030.07717.58
5.5.190.0070.07717.45
5.5.180.0030.08017.48
5.5.160.0030.07717.48
5.5.150.0000.07017.47
5.5.140.0030.07717.40
5.5.130.0030.08017.43
5.5.120.0030.05017.30
5.5.110.0070.06717.18
5.5.100.0000.06717.33
5.5.90.0070.07017.46
5.5.80.0000.07017.20
5.5.70.0030.07717.20
5.5.60.0070.07317.37
5.5.50.0070.07017.30
5.5.40.0070.07317.47
5.5.30.0030.07317.46
5.5.20.0000.08017.34
5.5.10.0070.07317.07
5.5.00.0030.08317.18
5.4.450.0100.04719.59
5.4.440.0000.05319.66
5.4.430.0100.04719.68
5.4.420.0000.08019.46
5.4.410.0000.09019.43
5.4.400.0070.07319.00
5.4.390.0030.04719.25
5.4.380.0000.07018.99
5.4.370.0030.08019.18
5.4.360.0000.08019.18
5.4.350.0030.05319.14
5.4.340.0100.07019.14
5.4.320.0030.08019.35
5.4.310.0030.08019.27
5.4.300.0100.07019.04
5.4.290.0000.06319.13
5.4.280.0000.08019.31
5.4.270.0100.07019.09
5.4.260.0000.04719.03
5.4.250.0030.04319.18
5.4.240.0070.07019.01
5.4.230.0000.07319.18
5.4.220.0030.05718.98
5.4.210.0070.07319.25
5.4.200.0070.07019.14
5.4.190.0130.03719.08
5.4.180.0070.07318.98
5.4.170.0070.07319.30
5.4.160.0000.08019.21
5.4.150.0170.06719.02
5.4.140.0030.07716.53
5.4.130.0000.07716.34
5.4.120.0030.07316.47
5.4.110.0200.05716.55
5.4.100.0030.07316.52
5.4.90.0030.07716.48
5.4.80.0030.07016.46
5.4.70.0070.07016.60
5.4.60.0030.08316.34
5.4.50.0000.06716.48
5.4.40.0030.07016.58
5.4.30.0000.07316.54
5.4.20.0030.07016.39
5.4.10.0070.07016.38
5.4.00.0070.06715.81
5.3.290.0030.07714.69
5.3.280.0070.07314.61
5.3.270.0030.08014.59
5.3.260.0000.05014.63
5.3.250.0070.06714.75
5.3.240.0030.07014.47
5.3.230.0070.07314.73
5.3.220.0130.06714.59
5.3.210.0070.07314.59
5.3.200.0070.07014.57
5.3.190.0030.08014.59
5.3.180.0070.06714.70
5.3.170.0030.06714.61
5.3.160.0030.07314.80
5.3.150.0070.07714.65
5.3.140.0030.07714.64
5.3.130.0000.07714.59
5.3.120.0070.07014.59
5.3.110.0030.07314.41
5.3.100.0030.07014.14
5.3.90.0030.07014.07
5.3.80.0070.07014.15
5.3.70.0000.06714.04
5.3.60.0070.06313.86
5.3.50.0000.07013.95
5.3.40.0000.07714.03
5.3.30.0000.07014.14
5.3.20.0200.05313.79
5.3.10.0030.07313.63
5.3.00.0000.06713.64
5.2.170.0030.06011.14
5.2.160.0030.05711.20
5.2.150.0000.06011.16
5.2.140.0070.05311.21
5.2.130.0030.05711.09
5.2.120.0000.06310.98
5.2.110.0000.06311.11
5.2.100.0030.05711.34
5.2.90.0000.06011.19
5.2.80.0030.05711.24
5.2.70.0000.07011.08
5.2.60.0000.07011.06
5.2.50.0000.05311.04
5.2.40.0030.06010.99
5.2.30.0000.06710.96
5.2.20.0030.04710.82
5.2.10.0030.05710.91
5.2.00.0130.02710.73
5.1.60.0000.05010.29
5.1.50.0100.04710.29
5.1.40.0000.04010.29
5.1.30.0030.05310.57
5.1.20.0030.05310.31
5.1.10.0030.05310.29
5.1.00.0030.05710.29
5.0.50.0030.04310.29
5.0.40.0030.04310.29
5.0.30.0000.05010.29
5.0.20.0030.02710.29
5.0.10.0000.04010.29
5.0.00.0030.06010.29
4.4.90.0000.03710.29
4.4.80.0000.03310.29
4.4.70.0030.03010.29
4.4.60.0070.03010.29
4.4.50.0070.03010.29
4.4.40.0000.05310.29
4.4.30.0030.03010.29
4.4.20.0070.03010.29
4.4.10.0030.01710.29
4.4.00.0070.04710.29
4.3.110.0000.03310.29
4.3.100.0000.03310.29
4.3.90.0030.02310.29
4.3.80.0070.05010.29
4.3.70.0000.03310.29
4.3.60.0000.03710.29
4.3.50.0000.03310.29
4.3.40.0000.05010.29
4.3.30.0070.03010.29
4.3.20.0030.03310.29
4.3.10.0030.03310.29
4.3.00.0000.03010.29

preferences:
181.89 ms | 403 KiB | 5 Q