3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar() { $static = !(isset($this) && get_class($this) == __CLASS__); if ($static) { print "static\n"; } else { print "not static\n"; } } } $foo = new Foo(); $foo->bar(); Foo::bar();

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.0160.00618.28
8.3.50.0120.00522.09
8.3.40.0070.00718.54
8.3.30.0100.00318.87
8.3.20.0040.00420.25
8.3.10.0050.00221.92
8.3.00.0040.00422.44
8.2.180.0040.01116.63
8.2.170.0110.00422.96
8.2.160.0100.00720.80
8.2.150.0180.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00519.23
8.2.110.0090.00022.16
8.2.100.0080.00417.78
8.2.90.0000.00818.04
8.2.80.0000.00817.97
8.2.70.0030.00717.46
8.2.60.0040.00418.03
8.2.50.0030.00618.07
8.2.40.0000.00718.09
8.2.30.0040.00417.99
8.2.20.0030.00517.71
8.2.10.0030.00617.72
8.2.00.0060.00317.80
8.1.280.0110.00725.92
8.1.270.0000.00722.01
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0050.00520.81
8.1.230.0110.00020.97
8.1.220.0050.00317.74
8.1.210.0060.00318.88
8.1.200.0040.00417.23
8.1.190.0000.00817.53
8.1.180.0000.00818.10
8.1.170.0110.00018.34
8.1.160.0040.00422.07
8.1.150.0080.00018.59
8.1.140.0040.00417.37
8.1.130.0000.00717.70
8.1.120.0040.00417.35
8.1.110.0000.00717.44
8.1.100.0080.00017.41
8.1.90.0040.00417.36
8.1.80.0000.00717.45
8.1.70.0030.00317.34
8.1.60.0040.00417.48
8.1.50.0000.00817.49
8.1.40.0040.00417.39
8.1.30.0070.00017.66
8.1.20.0060.00317.55
8.1.10.0000.00717.45
8.1.00.0000.00817.52
8.0.300.0070.00020.06
8.0.290.0040.00417.04
8.0.280.0030.00318.50
8.0.270.0030.00317.26
8.0.260.0040.00416.73
8.0.250.0030.00416.82
8.0.240.0030.00516.91
8.0.230.0040.00417.04
8.0.220.0000.00616.86
8.0.210.0040.00416.84
8.0.200.0030.00316.98
8.0.190.0030.00316.88
8.0.180.0030.00316.91
8.0.170.0040.00416.87
8.0.160.0000.00716.75
8.0.150.0000.00716.73
8.0.140.0040.00416.91
8.0.130.0000.00613.30
8.0.120.0040.00416.92
8.0.110.0070.00016.86
8.0.100.0000.00716.68
8.0.90.0060.00316.83
8.0.80.0140.00316.80
8.0.70.0030.00516.88
8.0.60.0030.00516.76
8.0.50.0070.00016.86
8.0.30.0170.00917.07
8.0.20.0120.00917.40
8.0.10.0040.00417.03
8.0.00.0060.01016.87
7.4.330.0030.00215.07
7.4.320.0060.00016.41
7.4.300.0000.00716.42
7.4.290.0060.00016.49
7.4.280.0030.00316.48
7.4.270.0080.00016.61
7.4.260.0030.00316.50
7.4.250.0030.00516.47
7.4.240.0080.00016.58
7.4.230.0040.00416.48
7.4.220.0180.00016.55
7.4.210.0080.00816.46
7.4.200.0030.00316.68
7.4.190.0000.00816.56
7.4.160.0080.00816.62
7.4.150.0060.01217.40
7.4.140.0120.00917.86
7.4.130.0120.00616.50
7.4.120.0080.00916.37
7.4.110.0150.00616.43
7.4.100.0100.00716.39
7.4.90.0140.00916.48
7.4.80.0070.01019.39
7.4.70.0070.01016.42
7.4.60.0000.02016.63
7.4.50.0020.00216.46
7.4.40.0080.00622.77
7.4.30.0040.01816.44
7.4.00.0000.01715.02
7.3.330.0030.00313.03
7.3.320.0050.00013.04
7.3.310.0000.00716.24
7.3.300.0070.00016.23
7.3.290.0090.00616.24
7.3.280.0100.01016.22
7.3.270.0080.01217.40
7.3.260.0100.01316.63
7.3.250.0080.01216.23
7.3.240.0130.00316.40
7.3.230.0090.01416.39
7.3.210.0070.01016.25
7.3.200.0060.01119.39
7.3.190.0060.01216.13
7.3.180.0110.00416.20
7.3.170.0150.00616.45
7.3.160.0030.01316.19
7.3.120.0040.01114.59
7.3.00.0040.01116.73
7.2.330.0070.01116.54
7.2.320.0170.00716.75
7.2.310.0110.01116.60
7.2.300.0140.00716.72
7.2.290.0070.01116.82
7.2.130.0110.00416.93
7.2.120.0070.00716.76
7.2.110.0040.00816.78
7.2.100.0060.01016.54
7.2.90.0060.00916.88
7.2.80.0040.01117.07
7.2.70.0070.00316.74
7.2.60.0040.01116.85
7.2.50.0100.00317.03
7.2.40.0060.00616.74
7.2.30.0070.00316.93
7.2.20.0130.00316.86
7.2.10.0100.00716.63
7.2.00.0030.00918.22
7.1.250.0040.00415.64
7.1.240.0030.01115.52
7.1.230.0070.00715.57
7.1.220.0080.00315.64
7.1.210.0060.00815.78
7.1.200.0000.00815.41
7.1.190.0070.00715.67
7.1.180.0120.00415.79
7.1.170.0070.00415.63
7.1.160.0070.00715.86
7.1.150.0110.00415.63
7.1.140.0000.01115.84
7.1.130.0070.00715.60
7.1.120.0030.00915.75
7.1.110.0100.00315.55
7.1.100.0160.00415.99
7.1.90.0030.01315.63
7.1.80.0110.00415.54
7.1.70.0080.00616.28
7.1.60.0050.01417.81
7.1.50.0070.01016.34
7.1.40.0060.00615.57
7.1.30.0070.00715.76
7.1.20.0060.00915.56
7.1.10.0060.00615.69
7.1.00.0030.04419.02
7.0.330.0090.00315.11
7.0.320.0030.01015.09
7.0.310.0040.00415.40
7.0.300.0060.00615.26
7.0.290.0070.00715.44
7.0.280.0080.00615.46
7.0.270.0060.00315.29
7.0.260.0030.01015.21
7.0.250.0040.00415.40
7.0.240.0100.00315.45
7.0.230.0040.01115.19
7.0.220.0060.00315.36
7.0.210.0060.00615.40
7.0.200.0080.00716.05
7.0.190.0030.01015.19
7.0.180.0040.00715.52
7.0.170.0080.00615.18
7.0.160.0040.00815.54
7.0.150.0030.00715.32
7.0.140.0000.04418.57
7.0.130.0070.00715.23
7.0.120.0060.00315.09
7.0.110.0030.00815.49
7.0.100.0040.00715.20
7.0.90.0000.01415.41
7.0.80.0060.00315.13
7.0.70.0030.00715.18
7.0.60.0110.02617.66
7.0.50.0050.02316.69
7.0.40.0080.03016.81
7.0.30.0170.02316.77
7.0.20.0110.04416.79
7.0.10.0070.02716.75
7.0.00.0130.04016.83
5.6.380.0040.01114.02
5.6.370.0080.00014.01
5.6.360.0030.01014.18
5.6.350.0060.00614.55
5.6.340.0070.00714.18
5.6.330.0070.00714.67
5.6.320.0120.00314.49
5.6.310.0110.00414.51
5.6.300.0060.00914.40
5.6.290.0000.00814.25
5.6.280.0020.04217.64
5.6.270.0030.01314.04
5.6.260.0100.00314.29
5.6.250.0030.01014.08
5.6.240.0030.00714.08
5.6.230.0000.01714.17
5.6.220.0030.00914.43
5.6.210.0070.02117.50
5.6.200.0070.04316.31
5.6.190.0030.04517.53
5.6.180.0230.02117.16
5.6.170.0170.04417.48
5.6.160.0090.04417.42
5.6.150.0050.04016.13
5.6.140.0130.01616.32
5.6.130.0030.02816.27
5.6.120.0070.03117.70
5.6.110.0050.04817.83
5.6.100.0050.02617.59
5.6.90.0110.03717.42
5.6.80.0030.02517.43
5.6.70.0030.01214.07
5.6.60.0100.00314.25
5.6.50.0100.00714.23
5.6.40.0060.00614.13
5.6.30.0070.01014.09
5.6.20.0060.00614.25
5.6.10.0040.00814.14
5.6.00.0120.00314.21
5.5.380.0090.00311.18
5.5.370.0060.00611.41
5.5.360.0070.00711.18
5.5.350.0120.04115.82
5.5.340.0050.02514.56
5.5.330.0090.03515.88
5.5.320.0210.02015.80
5.5.310.0210.03815.71
5.5.300.0050.03814.58
5.5.290.0030.02514.67
5.5.280.0070.04415.97
5.5.270.0070.04715.96
5.5.260.0070.04216.11
5.5.250.0070.04015.92
5.5.240.0060.01715.67
5.5.230.0030.00711.30
5.5.220.0000.00811.18
5.5.210.0110.00011.18
5.5.200.0030.00511.18
5.5.190.0070.00311.27
5.5.180.0060.00611.28
5.5.170.0040.00411.18
5.5.160.0000.01311.18
5.5.150.0040.00711.18
5.5.140.0060.00311.18
5.5.130.0000.01011.18
5.5.120.0080.00311.18
5.5.110.0070.00311.18
5.5.100.0060.00611.24
5.5.90.0030.00311.18
5.5.80.0040.00411.18
5.5.70.0060.00611.18
5.5.60.0030.00311.18
5.5.50.0060.00011.18
5.5.40.0000.01011.23
5.5.30.0000.00711.21
5.5.20.0040.00411.35
5.5.10.0090.00311.18
5.5.00.0070.00411.18
5.4.450.0370.03215.30
5.4.440.0230.03215.38
5.4.430.0000.03615.26
5.4.420.0060.03115.29
5.4.410.0100.03014.94
5.4.400.0050.03014.95
5.4.390.0080.02714.96
5.4.380.0100.03014.87
5.4.370.0080.02614.88
5.4.360.0080.02914.96
5.4.350.0100.02914.96
5.4.340.0100.02914.90
5.4.330.0000.01111.18
5.4.320.0070.02611.84
5.4.310.0060.02111.84
5.4.300.0040.02011.85
5.4.290.0050.02611.84
5.4.280.0020.02411.79
5.4.270.0060.02211.77
5.4.260.0020.02211.77
5.4.250.0040.02111.77
5.4.240.0070.01911.77
5.4.230.0070.01911.77
5.4.220.0080.01911.77
5.4.210.0020.02311.77
5.4.200.0010.02511.77
5.4.190.0040.02211.77
5.4.180.0070.01911.78
5.4.170.0050.02211.77
5.4.160.0030.02411.77
5.4.150.0040.02211.77
5.4.140.0080.01911.60
5.4.130.0040.02411.60
5.4.120.0030.02211.58
5.4.110.0090.01611.57
5.4.100.0070.01811.58
5.4.90.0060.02011.58
5.4.80.0030.02311.59
5.4.70.0050.02011.58
5.4.60.0040.02011.57
5.4.50.0040.02311.58
5.4.40.0050.02211.57
5.4.30.0040.02211.57
5.4.20.0050.01911.57
5.4.10.0050.02011.57
5.4.00.0040.02111.31
5.3.290.0030.02711.99
5.3.280.0040.02011.94
5.3.270.0020.02611.95
5.3.260.0040.02311.95
5.3.250.0020.02511.95
5.3.240.0060.02111.95
5.3.230.0060.02111.94
5.3.220.0040.02311.93
5.3.210.0030.02311.93
5.3.200.0040.02211.93
5.3.190.0080.01911.92
5.3.180.0020.02211.92
5.3.170.0040.02211.92
5.3.160.0010.02411.92
5.3.150.0050.01911.92
5.3.140.0080.01911.92
5.3.130.0040.02011.92
5.3.120.0060.01911.92
5.3.110.0050.02311.92
5.3.100.0040.02311.65
5.3.90.0050.02011.63
5.3.80.0040.02211.63
5.3.70.0050.01811.63
5.3.60.0020.02511.62
5.3.50.0020.02511.59
5.3.40.0030.02111.59
5.3.30.0030.02211.57
5.3.20.0070.01811.45
5.3.10.0070.01811.43
5.3.00.0070.01711.43
5.2.170.0020.01710.18
5.2.160.0050.01610.18
5.2.150.0040.01910.18
5.2.140.0040.01610.18
5.2.130.0050.01510.15
5.2.120.0020.01710.16
5.2.110.0040.01610.16
5.2.100.0040.01710.16
5.2.90.0020.01910.16
5.2.80.0030.01610.16
5.2.70.0060.01510.15
5.2.60.0030.01710.13
5.2.50.0060.01810.12
5.2.40.0020.01710.11
5.2.30.0050.01610.09
5.2.20.0050.01610.09
5.2.10.0040.01410.05
5.2.00.0020.0209.97
5.1.60.0020.0169.61
5.1.50.0030.0179.61
5.1.40.0060.0139.61
5.1.30.0060.0149.78
5.1.20.0060.0139.79
5.1.10.0040.0159.65
5.1.00.0050.0149.65
5.0.50.0010.0148.89
5.0.40.0050.0098.82
5.0.30.0020.0188.73
5.0.20.0030.0128.71
5.0.10.0020.0138.70
5.0.00.0040.0168.70
4.4.90.0020.0147.98
4.4.80.0030.0097.96
4.4.70.0040.0097.97
4.4.60.0030.0097.97
4.4.50.0030.0117.97
4.4.40.0020.0157.94
4.4.30.0020.0117.97
4.4.20.0020.0118.01
4.4.10.0030.0088.01
4.4.00.0020.0157.97
4.3.110.0010.0117.92
4.3.100.0030.0097.92
4.3.90.0050.0077.90
4.3.80.0020.0167.88
4.3.70.0010.0117.90
4.3.60.0020.0107.90
4.3.50.0030.0107.90
4.3.40.0010.0167.85
4.3.30.0020.0107.23
4.3.20.0010.0107.22
4.3.10.0020.0107.20
4.3.00.0100.0128.89

preferences:
57.66 ms | 401 KiB | 5 Q