3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { protected static $foo = array(); public static function foo(){ var_dump(self::$foo); } public static function bar(){ self::$foo[] = 'foo'; } } class b extends a{ public static function foo(){ self::$foo[] = 'bar'; } } a::foo(); a::bar(); a::foo(); b::foo(); a::foo();

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.0080.00818.71
8.3.30.0110.01119.21
8.3.20.0110.00320.09
8.3.10.0040.00422.05
8.3.00.0040.00420.75
8.2.170.0080.00822.96
8.2.160.0210.00021.06
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0030.01326.16
8.2.120.0000.00719.95
8.2.110.0070.00319.38
8.2.100.0060.00617.62
8.2.90.0000.00819.17
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0070.00018.01
8.2.20.0000.00717.66
8.2.10.0030.00517.80
8.2.00.0030.00517.58
8.1.270.0030.00622.02
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00321.42
8.1.230.0110.00017.52
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0070.00317.22
8.1.180.0000.00818.71
8.1.170.0060.00318.50
8.1.160.0070.00022.10
8.1.150.0040.00718.58
8.1.140.0000.00917.40
8.1.130.0030.00317.71
8.1.120.0000.00717.48
8.1.110.0100.00017.27
8.1.100.0050.00317.38
8.1.90.0030.00517.38
8.1.80.0030.00517.46
8.1.70.0030.00317.31
8.1.60.0000.00717.63
8.1.50.0080.00017.50
8.1.40.0030.00617.41
8.1.30.0030.00617.63
8.1.20.0000.00817.58
8.1.10.0040.00417.49
8.1.00.0050.00317.54
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0060.00318.32
8.0.270.0040.00416.88
8.0.260.0030.00318.34
8.0.250.0070.00016.85
8.0.240.0000.00716.80
8.0.230.0040.00416.96
8.0.220.0000.00716.87
8.0.210.0000.00716.88
8.0.200.0000.00616.94
8.0.190.0030.00316.91
8.0.180.0040.00416.75
8.0.170.0040.00416.89
8.0.160.0040.00416.87
8.0.150.0000.00816.69
8.0.140.0030.00516.67
8.0.130.0050.00013.18
8.0.120.0080.00016.71
8.0.110.0000.00716.76
8.0.100.0030.00416.87
8.0.90.0040.00416.79
8.0.80.0120.00416.82
8.0.70.0040.00416.88
8.0.60.0000.00816.75
8.0.50.0000.00716.65
8.0.30.0110.01216.99
8.0.20.0120.00617.40
8.0.10.0000.00816.82
8.0.00.0090.01216.78
7.4.330.0000.00515.00
7.4.320.0000.00716.47
7.4.300.0060.00016.45
7.4.290.0040.00416.50
7.4.280.0000.00716.47
7.4.270.0000.00716.31
7.4.260.0030.00416.52
7.4.250.0030.00616.52
7.4.240.0030.00516.37
7.4.230.0000.00816.55
7.4.220.0090.00916.62
7.4.210.0060.00916.54
7.4.200.0040.00416.66
7.4.190.0000.00716.60
7.4.160.0060.01016.52
7.4.150.0120.00617.40
7.4.140.0140.00817.86
7.4.130.0100.01016.60
7.4.120.0080.01016.53
7.4.110.0060.01216.46
7.4.100.0180.00716.39
7.4.90.0030.01516.43
7.4.80.0030.01319.39
7.4.70.0110.00716.65
7.4.60.0040.01216.58
7.4.50.0000.00816.32
7.4.40.0000.01522.77
7.4.30.0130.00416.46
7.4.00.0040.01414.98
7.3.330.0000.00513.15
7.3.320.0000.00513.21
7.3.310.0030.00316.42
7.3.300.0000.00716.23
7.3.290.0070.00716.31
7.3.280.0080.00816.30
7.3.270.0240.00017.40
7.3.260.0100.00716.44
7.3.250.0100.01016.53
7.3.240.0080.00816.30
7.3.230.0110.01116.53
7.3.210.0100.00616.45
7.3.200.0090.00819.39
7.3.190.0130.01016.23
7.3.180.0160.00016.54
7.3.170.0130.00316.40
7.3.160.0040.01216.22
7.3.120.0040.01114.74
7.2.330.0060.01216.63
7.2.320.0030.01316.36
7.2.310.0090.00916.71
7.2.300.0070.01016.39
7.2.290.0130.00316.46
7.2.110.0190.00016.57
7.2.100.0230.00416.64
7.2.90.0220.00416.53
7.2.80.0190.00716.32
7.2.70.0230.00416.55
7.2.60.0150.00616.73
7.2.50.0150.00316.41
7.2.40.0100.01316.59
7.2.30.0120.00616.86
7.2.20.0150.00316.74
7.2.10.0190.00416.84
7.2.00.0090.00718.12
7.1.230.0810.00415.53
7.1.220.0100.00615.47
7.1.210.0190.00615.49
7.1.200.0130.00415.65
7.1.190.0250.00315.55
7.1.180.0190.00015.43
7.1.170.0070.01415.55
7.1.160.0270.00715.41
7.1.150.0230.00015.73
7.1.140.0220.00615.47
7.1.130.0200.00715.68
7.1.120.0170.00915.67
7.1.110.0050.00915.56
7.1.100.0130.00715.75
7.1.90.0270.00015.63
7.1.80.0230.00915.82
7.1.70.0070.00916.38
7.1.60.0130.01417.84
7.1.50.0120.00816.24
7.1.40.0250.00415.99
7.1.30.0220.00915.84
7.1.20.0270.01315.85
7.1.10.0250.00415.71
7.1.00.0230.03819.08
7.0.310.0160.00715.38
7.0.300.0170.00715.31
7.0.290.0190.00015.19
7.0.280.0220.00315.13
7.0.270.0270.00015.41
7.0.260.0170.00815.29
7.0.250.0190.00715.35
7.0.240.0210.00315.27
7.0.230.0660.00015.48
7.0.220.0120.00415.20
7.0.210.0140.00815.16
7.0.200.0100.00616.03
7.0.190.0400.00615.34
7.0.180.0120.01215.43
7.0.170.0330.00015.50
7.0.160.0150.00815.40
7.0.150.0170.00715.25
7.0.140.0090.04018.74
7.0.130.0180.01115.06
7.0.120.0420.00315.26
7.0.110.0230.00715.45
7.0.100.0170.00715.07
7.0.90.0120.00815.42
7.0.80.0170.00315.33
7.0.70.0260.00315.16
7.0.60.0140.03017.69
7.0.50.0180.04316.70
7.0.40.0090.04216.89
7.0.30.0170.04516.77
7.0.20.0130.02516.89
7.0.10.0130.03616.75
7.0.00.0070.04716.79
5.6.380.0090.00914.52
5.6.370.0140.00614.57
5.6.360.0130.00414.19
5.6.350.0080.00414.28
5.6.340.0070.01014.28
5.6.330.0110.00514.36
5.6.320.0090.00613.88
5.6.310.0110.00314.01
5.6.300.0140.00414.14
5.6.290.0090.00414.29
5.6.280.0070.03917.64
5.6.270.0130.00014.25
5.6.260.0120.00414.09
5.6.250.0090.00814.24
5.6.240.0100.00714.03
5.6.230.0130.00414.57
5.6.220.0070.01314.17
5.6.210.0080.04317.56
5.6.200.0110.04016.23
5.6.190.0050.02617.52
5.6.180.0240.02917.47
5.6.170.0140.03217.40
5.6.160.0080.02517.33
5.6.150.0070.04516.36
5.6.140.0060.03116.29
5.6.130.0040.02516.18
5.6.120.0060.02517.63
5.6.110.0160.03717.66
5.6.100.0110.02017.69
5.6.90.0140.03817.61
5.6.80.0070.03317.46
5.6.70.0120.00414.46
5.6.60.0130.00314.27
5.6.50.0180.00014.44
5.6.40.0170.00014.16
5.6.30.0130.01014.37
5.6.20.0070.00714.29
5.6.10.0180.00014.41
5.6.00.0140.00313.91
5.5.380.0070.00712.79
5.5.370.0120.00312.79
5.5.360.0030.00712.79
5.5.350.0090.02516.62
5.5.340.0040.02615.39
5.5.330.0100.03816.49
5.5.320.0040.04516.56
5.5.310.0220.02316.57
5.5.300.0120.03015.40
5.5.290.0080.02415.37
5.5.280.0090.03116.72
5.5.270.0110.02416.81
5.5.260.0090.04216.78
5.5.250.0090.04116.72
5.5.240.0000.02216.48
5.5.230.0030.01212.79
5.5.220.0090.00612.79
5.5.210.0090.00512.79
5.5.200.0080.00412.79
5.5.190.0070.00712.79
5.5.180.0060.00612.79
5.5.170.0100.00714.38
5.5.160.0070.00712.79
5.5.150.0050.00512.79
5.5.140.0060.00612.79
5.5.130.0060.00612.79
5.5.120.0100.00312.79
5.5.110.0090.00212.79
5.5.100.0090.00612.79
5.5.90.0070.00712.79
5.5.80.0000.01212.79
5.5.70.0050.00912.79
5.5.60.0090.00612.79
5.5.50.0100.00312.79
5.5.40.0130.00312.79
5.5.30.0030.00612.79
5.5.20.0080.00812.79
5.5.10.0100.00312.79
5.5.00.0100.00212.79
5.4.450.0220.02715.99
5.4.440.0180.04015.99
5.4.430.0110.03916.11
5.4.420.0070.03016.00
5.4.410.0090.02816.11
5.4.400.0460.00215.75
5.4.390.0470.00215.69
5.4.380.0150.03015.77
5.4.370.0180.03315.81
5.4.360.0260.02415.69
5.4.350.0140.03515.77
5.4.340.0210.03015.77
5.4.330.0040.00812.79
5.4.320.0100.02012.65
5.4.310.0060.02312.64
5.4.300.0080.02312.65
5.4.290.0060.02412.64
5.4.280.0050.02412.59
5.4.270.0050.02612.59
5.4.260.0070.03215.94
5.4.250.0060.04015.94
5.4.240.0070.02915.87
5.4.230.0090.02715.77
5.4.220.0130.03415.72
5.4.210.0050.02915.87
5.4.200.0040.03315.88
5.4.190.0060.02815.77
5.4.180.0150.02715.81
5.4.170.0050.03215.76
5.4.160.0110.02715.90
5.4.150.0120.02815.78
5.4.140.0110.03114.62
5.4.130.0180.02514.57
5.4.120.0130.02714.67
5.4.110.0080.02614.68
5.4.100.0110.02814.65
5.4.90.0120.02414.66
5.4.80.0070.02514.59
5.4.70.0090.02614.62
5.4.60.0090.02314.62
5.4.50.0110.02314.60
5.4.40.0040.02814.68
5.4.30.0130.02414.62
5.4.20.0050.02814.57
5.4.10.0100.03714.58
5.4.00.0040.02914.35
5.3.290.0090.02212.79
5.3.280.0080.02713.69
5.3.270.0070.03613.73
5.3.260.0080.02713.79
5.3.250.0040.03213.77
5.3.240.0070.03113.78
5.3.230.0040.03713.73
5.3.220.0060.02913.71
5.3.210.0070.03113.68
5.3.200.0100.02613.75
5.3.190.0060.03213.77
5.3.180.0080.03813.72
5.3.170.0100.02813.77
5.3.160.0120.02913.71
5.3.150.0080.03013.76
5.3.140.0100.02613.68
5.3.130.0080.02813.62
5.3.120.0100.03013.67
5.3.110.0100.03313.71
5.3.100.0070.02713.46
5.3.90.0130.02213.40
5.3.80.0110.02313.44
5.3.70.0070.02713.40
5.3.60.0070.00312.79
5.3.50.0090.00312.79
5.3.40.0060.00312.79
5.3.30.0060.00312.79
5.3.20.0080.00512.79
5.3.10.0030.00612.79
5.3.00.0060.00612.79

preferences:
52.16 ms | 404 KiB | 6 Q