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::bar(); 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.0070.00718.85
8.3.30.0070.00719.14
8.3.20.0030.00520.16
8.3.10.0070.00022.09
8.3.00.0090.00320.68
8.2.170.0130.01019.08
8.2.160.0070.01022.96
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0050.00319.36
8.2.110.0090.00022.09
8.2.100.0030.01019.50
8.2.90.0040.00419.15
8.2.80.0000.00817.97
8.2.70.0090.00017.60
8.2.60.0080.00018.16
8.2.50.0000.00818.07
8.2.40.0040.00418.28
8.2.30.0050.00217.95
8.2.20.0030.00517.57
8.2.10.0040.00417.62
8.2.00.0000.00717.57
8.1.270.0000.00822.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.91
8.1.230.0040.00719.15
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.48
8.1.190.0040.00417.51
8.1.180.0050.00318.67
8.1.170.0040.00418.50
8.1.160.0050.00222.14
8.1.150.0090.00018.59
8.1.140.0060.00317.41
8.1.130.0030.00317.79
8.1.120.0050.00317.41
8.1.110.0060.00317.40
8.1.100.0000.00817.42
8.1.90.0070.00017.32
8.1.80.0040.00417.46
8.1.70.0070.00017.38
8.1.60.0050.00317.59
8.1.50.0000.00817.58
8.1.40.0050.00317.60
8.1.30.0030.00617.68
8.1.20.0030.00517.56
8.1.10.0020.00517.68
8.1.00.0060.00317.49
8.0.300.0040.00418.77
8.0.290.0030.00617.05
8.0.280.0030.00318.40
8.0.270.0030.00517.21
8.0.260.0040.00416.68
8.0.250.0050.00216.90
8.0.240.0040.00416.86
8.0.230.0000.00716.90
8.0.220.0040.00416.75
8.0.210.0030.00316.70
8.0.200.0000.00616.89
8.0.190.0030.00316.95
8.0.180.0070.00016.91
8.0.170.0080.00016.75
8.0.160.0040.00416.71
8.0.150.0040.00416.75
8.0.140.0040.00416.68
8.0.130.0050.00013.27
8.0.120.0030.00516.81
8.0.110.0050.00216.84
8.0.100.0070.00016.70
8.0.90.0000.00716.80
8.0.80.0100.00616.83
8.0.70.0030.00516.85
8.0.60.0000.00916.88
8.0.50.0000.00716.72
8.0.30.0110.01016.98
8.0.20.0110.00817.40
8.0.10.0000.00716.91
8.0.00.0110.00716.64
7.4.330.0050.00015.05
7.4.320.0060.00016.40
7.4.300.0030.00316.53
7.4.290.0000.00916.55
7.4.280.0030.00316.43
7.4.270.0030.00616.55
7.4.260.0000.00716.53
7.4.250.0050.00316.49
7.4.240.0040.00416.46
7.4.230.0000.00716.61
7.4.220.0090.00916.61
7.4.210.0140.00216.53
7.4.200.0050.00216.52
7.4.190.0030.00316.69
7.4.160.0060.01016.41
7.4.150.0110.00817.40
7.4.140.0120.01017.86
7.4.130.0120.00716.44
7.4.120.0080.01016.46
7.4.110.0110.00716.35
7.4.100.0180.00316.23
7.4.90.0100.00716.47
7.4.80.0040.01519.39
7.4.70.0040.01416.51
7.4.60.0100.00716.35
7.4.50.0080.00016.45
7.4.40.0050.01022.77
7.4.30.0100.01016.71
7.4.00.0090.00614.84
7.3.330.0020.00213.23
7.3.320.0000.00513.31
7.3.310.0020.00516.28
7.3.300.0000.00716.25
7.3.290.0110.00816.37
7.3.280.0090.01116.25
7.3.270.0080.00817.40
7.3.260.0030.01416.21
7.3.250.0060.01116.40
7.3.240.0190.00316.47
7.3.230.0100.01316.45
7.3.210.0070.01316.44
7.3.200.0080.00919.39
7.3.190.0100.00716.26
7.3.180.0080.00816.33
7.3.170.0180.00416.50
7.3.160.0090.00616.43
7.3.120.0030.01014.53
7.3.10.0000.01516.48
7.3.00.0040.01116.49
7.2.330.0130.00316.32
7.2.320.0060.01216.66
7.2.310.0120.01316.73
7.2.300.0070.01316.65
7.2.290.0080.00816.63
7.2.130.0060.01116.72
7.2.120.0030.01016.55
7.2.110.0000.01216.77
7.2.100.0100.00716.57
7.2.90.0060.01016.75
7.2.80.0100.00316.36
7.2.70.0000.01516.54
7.2.60.0000.01516.68
7.2.50.0000.00916.52
7.2.40.0060.00916.85
7.2.30.0060.00916.67
7.2.20.0030.00616.93
7.2.10.0070.00716.90
7.2.00.0060.00916.68
7.1.250.0030.00715.62
7.1.240.0000.01015.65
7.1.230.0090.00315.53
7.1.220.0040.00815.63
7.1.210.0040.00815.46
7.1.200.0020.01115.63
7.1.190.0030.01315.24
7.1.180.0140.00015.71
7.1.170.0040.00715.66
7.1.160.0000.01515.62
7.1.150.0030.01215.70
7.1.140.0080.00015.70
7.1.130.0000.01415.45
7.1.120.0040.01115.57
7.1.110.0070.00715.70
7.1.100.0040.00415.57
7.1.90.0100.00615.61
7.1.80.0100.00715.58
7.1.70.0090.00216.43
7.1.60.0120.00416.45
7.1.50.0070.01016.12
7.1.40.0080.00815.27
7.1.30.0090.00615.64
7.1.20.0030.00715.83
7.1.10.0110.00715.41
7.1.00.0110.03519.09
7.0.330.0120.00015.05
7.0.320.0040.01115.36
7.0.310.0100.00315.11
7.0.300.0000.01415.01
7.0.290.0100.00615.11
7.0.280.0000.01415.36
7.0.270.0030.00915.31
7.0.260.0060.00315.35
7.0.250.0040.01215.46
7.0.240.0070.00715.31
7.0.230.0030.01015.44
7.0.220.0030.00515.48
7.0.210.0040.01115.14
7.0.200.0030.01016.04
7.0.190.0120.00415.04
7.0.180.0030.01315.17
7.0.170.0090.00615.50
7.0.160.0030.00915.18
7.0.150.0220.00015.27
7.0.140.0020.04018.60
7.0.130.0070.00715.31
7.0.120.0000.00815.31
7.0.110.0100.00715.41
7.0.100.0030.00715.09
7.0.90.0030.01315.27
7.0.80.0030.01015.34
7.0.70.0030.00814.98
7.0.60.0110.02517.55
7.0.50.0130.03816.63
7.0.40.0050.04116.80
7.0.30.0180.04716.74
7.0.20.0130.03416.66
7.0.10.0110.02216.60
7.0.00.0060.04316.86
5.6.380.0030.00614.12
5.6.370.0070.00313.96
5.6.360.0000.00914.12
5.6.350.0030.00614.18
5.6.340.0140.00014.62
5.6.330.0040.00413.83
5.6.320.0000.01314.39
5.6.310.0040.00714.11
5.6.300.0100.00314.20
5.6.290.0000.00814.37
5.6.280.0090.03717.53
5.6.270.0140.00314.37
5.6.260.0040.00714.53
5.6.250.0060.00914.34
5.6.240.0030.01014.55
5.6.230.0030.01314.44
5.6.220.0060.00614.15
5.6.210.0030.03217.40
5.6.200.0050.04516.29
5.6.190.0080.02217.43
5.6.180.0250.03417.38
5.6.170.0200.02517.42
5.6.160.0100.03317.29
5.6.150.0080.04316.26
5.6.140.0100.03916.22
5.6.130.0020.03516.26
5.6.120.0030.03417.61
5.6.110.0050.04917.54
5.6.100.0080.04617.56
5.6.90.0100.03817.57
5.6.80.0150.03517.22
5.6.70.0100.00614.24
5.6.60.0070.01014.30
5.6.50.0030.01714.22
5.6.40.0090.00314.04
5.6.30.0000.01414.05
5.6.20.0050.00314.17
5.6.10.0040.00814.06
5.6.00.0110.00714.01
5.5.380.0070.00411.18
5.5.370.0070.00010.99
5.5.360.0070.00311.32
5.5.350.0130.04315.71
5.5.340.0100.03314.43
5.5.330.0030.02615.76
5.5.320.0150.02415.91
5.5.310.0170.03715.63
5.5.300.0100.03814.48
5.5.290.0090.04014.69
5.5.280.0050.02215.81
5.5.270.0080.02716.07
5.5.260.0120.04315.97
5.5.250.0110.03815.93
5.5.240.0030.04515.60
5.5.230.0040.00910.78
5.5.220.0100.00310.93
5.5.210.0060.00610.93
5.5.200.0040.00411.23
5.5.190.0040.00711.08
5.5.180.0000.00910.80
5.5.170.0030.00911.18
5.5.160.0000.01111.14
5.5.150.0030.00910.99
5.5.140.0060.00011.23
5.5.130.0040.00811.12
5.5.120.0000.00611.05
5.5.110.0060.00611.02
5.5.100.0040.00711.17
5.5.90.0100.00011.09
5.5.80.0000.00811.07
5.5.70.0040.00710.93
5.5.60.0060.00010.88
5.5.50.0000.00910.87
5.5.40.0000.01011.13
5.5.30.0070.00011.26
5.5.20.0000.01310.93
5.5.10.0040.00710.93
5.5.00.0030.00310.86
5.4.450.0300.03314.99
5.4.440.0350.03415.00
5.4.430.0030.03615.05
5.4.420.0000.03915.24
5.4.410.0050.02915.10
5.4.400.0070.03114.87
5.4.390.0080.03114.81
5.4.380.0130.02314.84
5.4.370.0200.02814.58
5.4.360.0120.03114.84
5.4.350.0200.02714.81
5.4.340.0220.02314.64
5.4.330.0060.00310.64
5.4.320.0100.01811.67
5.4.310.0090.01811.53
5.4.300.0050.02211.62
5.4.290.0040.02811.61
5.4.280.0030.02311.56
5.4.270.0060.02111.54
5.4.260.0070.04114.90
5.4.250.0070.02814.75
5.4.240.0070.03715.07
5.4.230.0030.03014.77
5.4.220.0080.03014.92
5.4.210.0050.02814.63
5.4.200.0050.03114.75
5.4.190.0050.03014.70
5.4.180.0100.03314.90
5.4.170.0080.04015.12
5.4.160.0080.02815.14
5.4.150.0000.03414.88
5.4.140.0030.03713.65
5.4.130.0080.02613.74
5.4.120.0050.02713.92
5.4.110.0050.03113.78
5.4.100.0070.02813.76
5.4.90.0070.02513.85
5.4.80.0090.02513.82
5.4.70.0070.03713.75
5.4.60.0100.02313.76
5.4.50.0050.02813.56
5.4.40.0050.03513.82
5.4.30.0110.02213.77
5.4.20.0080.03513.64
5.4.10.0100.02313.72
5.4.00.0050.02913.37
5.3.290.0060.02411.58
5.3.280.0070.03112.46
5.3.270.0100.02612.44
5.3.260.0050.03212.65
5.3.250.0050.02812.56
5.3.240.0070.02812.52
5.3.230.0050.02812.57
5.3.220.0100.03512.66
5.3.210.0080.02712.63
5.3.200.0080.02812.61
5.3.190.0050.03212.46
5.3.180.0070.03212.72
5.3.170.0060.03212.71
5.3.160.0030.03112.56
5.3.150.0080.03012.45
5.3.140.0130.02012.67
5.3.130.0080.04012.60
5.3.120.0070.02712.57
5.3.110.0070.03712.52
5.3.100.0030.03312.40
5.3.90.0080.02612.34
5.3.80.0030.03212.26
5.3.70.0080.02412.29
5.3.60.0090.02212.37
5.3.50.0070.03712.33
5.3.40.0070.02612.34
5.3.30.0050.02812.07
5.3.20.0020.03512.22
5.3.10.0100.02312.02
5.3.00.0050.02812.11
5.2.170.0030.03510.47
5.2.160.0050.02210.41
5.2.150.0030.02810.38
5.2.140.0030.02510.40
5.2.130.0030.02310.19
5.2.120.0070.02510.28
5.2.110.0080.02510.31
5.2.100.0080.02610.36
5.2.90.0020.02710.32
5.2.80.0020.03010.41
5.2.70.0040.02210.26
5.2.60.0070.02210.18
5.2.50.0010.02610.18
5.2.40.0070.02610.21
5.2.30.0070.03310.11
5.2.20.0030.02310.07
5.2.10.0030.02310.05
5.2.00.0020.0309.96
5.1.60.0050.0179.67
5.1.50.0050.0189.67
5.1.40.0080.0189.66
5.1.30.0010.0239.84
5.1.20.0050.0219.73
5.1.10.0080.0159.77
5.1.00.0050.0209.72
5.0.50.0020.0228.89
5.0.40.0020.0158.82
5.0.30.0000.0258.80
5.0.20.0050.0158.72
5.0.10.0020.0178.68
5.0.00.0060.0218.72
4.4.90.0020.0128.06
4.4.80.0040.0108.06
4.4.70.0040.0138.06
4.4.60.0020.0148.06
4.4.50.0020.0158.06
4.4.40.0030.0188.06
4.4.30.0070.0088.06
4.4.20.0050.0128.06
4.4.10.0000.0148.06
4.4.00.0050.0238.06
4.3.110.0030.0158.06
4.3.100.0020.0158.06
4.3.90.0050.0118.06
4.3.80.0020.0188.06
4.3.70.0000.0158.06
4.3.60.0020.0158.06
4.3.50.0030.0178.06
4.3.40.0050.0168.06
4.3.30.0000.0148.06
4.3.20.0060.0088.06
4.3.10.0070.0138.06
4.3.00.0000.0158.04

preferences:
45.79 ms | 400 KiB | 5 Q