3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static $a; public $b; public static function c() { return true; } public function d() { return true; } public function __construct() { var_dump($this::$b, $this::d()); } } $a = new A;

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.0110.00716.63
8.3.50.0110.00921.86
8.3.40.0000.01518.72
8.3.30.0040.01119.21
8.3.20.0040.00420.20
8.3.10.0000.00723.61
8.3.00.0040.00419.26
8.2.180.0070.00718.40
8.2.170.0160.00022.96
8.2.160.0120.00320.44
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00422.11
8.2.110.0110.00021.03
8.2.100.0040.00717.91
8.2.90.0050.00319.17
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0080.00017.93
8.2.50.0030.00518.07
8.2.40.0080.00018.09
8.2.30.0040.00418.07
8.2.20.0000.00717.55
8.2.10.0020.00517.99
8.2.00.0000.01017.55
8.1.280.0100.00325.92
8.1.270.0090.00023.79
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00621.30
8.1.230.0090.00317.42
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0030.00716.88
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0050.00318.37
8.1.160.0000.00721.95
8.1.150.0040.00418.40
8.1.140.0080.00017.36
8.1.130.0030.00317.76
8.1.120.0000.00717.36
8.1.110.0000.00917.39
8.1.100.0040.00417.37
8.1.90.0000.00817.30
8.1.80.0000.00717.34
8.1.70.0030.00317.27
8.1.60.0030.00517.52
8.1.50.0000.00817.33
8.1.40.0090.00017.46
8.1.30.0040.00417.52
8.1.20.0000.00717.57
8.1.10.0050.00217.46
8.1.00.0020.00517.43
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.31
8.0.270.0000.00717.25
8.0.260.0030.00317.07
8.0.250.0030.00316.96
8.0.240.0040.00416.95
8.0.230.0030.00316.85
8.0.220.0040.00416.78
8.0.210.0100.00016.85
8.0.200.0030.00316.89
8.0.190.0030.00517.02
8.0.180.0080.00016.79
8.0.170.0040.00416.95
8.0.160.0000.00717.02
8.0.150.0040.00416.86
8.0.140.0050.00216.86
8.0.130.0060.00013.36
8.0.120.0080.00016.88
8.0.110.0050.00316.86
8.0.100.0040.00416.71
8.0.90.0040.00416.94
8.0.80.0130.00316.86
8.0.70.0000.00716.87
8.0.60.0040.00416.74
8.0.50.0070.00016.95
8.0.30.0090.01317.12
8.0.20.0080.01017.40
8.0.10.0000.00716.92
8.0.00.0120.00516.78
7.4.330.0000.00615.00
7.4.320.0060.00016.47
7.4.300.0040.00416.45
7.4.290.0000.00716.46
7.4.280.0000.00716.34
7.4.270.0000.00816.36
7.4.260.0030.00316.45
7.4.250.0030.00316.31
7.4.240.0040.00316.47
7.4.230.0070.00016.62
7.4.220.0100.00716.38
7.4.210.0060.01116.48
7.4.200.0000.00716.43
7.4.190.0000.00716.57
7.4.160.0080.00816.65
7.4.150.0060.01217.40
7.4.140.0120.01017.86
7.4.130.0100.00816.44
7.4.120.0100.01016.45
7.4.110.0040.01516.55
7.4.100.0040.01216.55
7.4.90.0060.01116.37
7.4.80.0100.00719.39
7.4.70.0110.00616.39
7.4.60.0060.01016.52
7.4.50.0060.00316.17
7.4.40.0040.01222.77
7.4.30.0040.01216.48
7.4.00.0030.01015.21
7.3.330.0060.00013.23
7.3.320.0000.00513.23
7.3.310.0050.00216.21
7.3.300.0070.00016.20
7.3.290.0070.00716.32
7.3.280.0080.00916.37
7.3.270.0060.01017.40
7.3.260.0080.00816.32
7.3.250.0060.01116.36
7.3.240.0120.00816.32
7.3.230.0030.01316.39
7.3.210.0160.00816.34
7.3.200.0140.00719.39
7.3.190.0000.01616.57
7.3.180.0150.00016.46
7.3.170.0130.00316.52
7.3.160.0100.00716.46
7.3.120.0060.00914.60
7.3.00.0100.00316.60
7.2.330.0100.00616.57
7.2.320.0040.01416.52
7.2.310.0070.01016.62
7.2.300.0070.01316.58
7.2.290.0060.01016.61
7.2.130.0030.00916.88
7.2.120.0040.00716.79
7.2.110.0030.00716.71
7.2.100.0030.00916.82
7.2.90.0070.00316.96
7.2.80.0040.01116.64
7.2.70.0030.01016.93
7.2.60.0070.00616.76
7.2.50.0070.00316.90
7.2.40.0030.01016.58
7.2.30.0070.00716.68
7.2.20.0000.01116.58
7.2.10.0080.00416.79
7.2.00.0040.00816.93
7.1.250.0070.00715.72
7.1.240.0070.00715.55
7.1.230.0070.00715.76
7.1.220.0070.00715.52
7.1.210.0040.01115.72
7.1.200.0100.00415.74
7.1.190.0140.00015.74
7.1.180.0030.01015.70
7.1.170.0030.00715.61
7.1.160.0020.00515.81
7.1.150.0060.00315.72
7.1.140.0130.00315.83
7.1.130.0030.00715.85
7.1.120.0000.00915.87
7.1.110.0060.00615.62
7.1.100.0020.01016.84
7.1.90.0070.00415.29
7.1.80.0030.01015.68
7.1.70.0030.00916.39
7.1.60.0060.01317.60
7.1.50.0040.00916.16
7.1.40.0110.00315.52
7.1.30.0080.00015.63
7.1.20.0060.00915.71
7.1.10.0090.00615.43
7.1.00.0070.03819.04
7.0.330.0080.00015.21
7.0.320.0090.00315.34
7.0.310.0060.00915.38
7.0.300.0070.00315.49
7.0.290.0090.00315.57
7.0.280.0080.00415.12
7.0.270.0040.00415.37
7.0.260.0080.00415.38
7.0.250.0110.00415.16
7.0.240.0100.00315.45
7.0.230.0030.00715.52
7.0.220.0090.00315.36
7.0.210.0120.00315.49
7.0.200.0320.00314.84
7.0.190.0030.00715.37
7.0.180.0060.00915.40
7.0.170.0090.00315.18
7.0.160.0100.00615.41
7.0.150.0000.00915.18
7.0.140.0010.04218.75
7.0.130.0060.00315.59
7.0.120.0060.00615.40
7.0.110.0030.01115.25
7.0.100.0030.00615.48
7.0.90.0100.00015.27
7.0.80.0060.00315.27
7.0.70.0070.00715.43
7.0.60.0100.02217.73
7.0.50.0080.02116.62
7.0.40.0070.03216.71
7.0.30.0100.02516.83
7.0.20.0200.03516.77
7.0.10.0080.04316.72
7.0.00.0080.04316.75
5.6.380.0070.00714.15
5.6.370.0090.00613.98
5.6.360.0070.00414.04
5.6.350.0060.00314.31
5.6.340.0070.00614.48
5.6.330.0090.00614.03
5.6.320.0140.00314.26
5.6.310.0070.00414.16
5.6.300.0120.00214.28
5.6.290.0060.00814.32
5.6.280.0000.04417.81
5.6.270.0030.00914.07
5.6.260.0130.00314.40
5.6.250.0100.00614.20
5.6.240.0030.01514.29
5.6.230.0090.00614.13
5.6.220.0040.00814.37
5.6.210.0030.04817.41
5.6.200.0060.03016.12
5.6.190.0050.04517.29
5.6.180.0100.02817.41
5.6.170.0210.03117.40
5.6.160.0050.03517.28
5.6.150.0120.04316.21
5.6.140.0050.04616.21
5.6.130.0070.04016.27
5.6.120.0060.03017.55
5.6.110.0130.04117.51
5.6.100.0070.05017.57
5.6.90.0060.04417.63
5.6.80.0090.04117.18
5.6.70.1520.02117.19
5.6.60.0080.01213.99
5.6.50.0030.01014.16
5.6.40.0040.01214.20
5.6.30.0120.00414.10
5.6.20.0000.01713.96
5.6.10.0110.01114.32
5.6.00.0130.00713.99
5.5.380.0060.00211.18
5.5.370.0070.00711.20
5.5.360.0070.00311.18
5.5.350.0070.02415.75
5.5.340.0050.04114.56
5.5.330.0070.02315.79
5.5.320.0050.04815.76
5.5.310.0220.02615.78
5.5.300.0020.02414.63
5.5.290.0080.03014.61
5.5.280.0080.02116.00
5.5.270.0040.03116.02
5.5.260.0050.02516.01
5.5.250.0080.02015.98
5.5.240.0100.03115.62
5.5.230.0030.00611.18
5.5.220.0050.00311.18
5.5.210.0050.00511.18
5.5.200.0000.00811.18
5.5.190.0070.00711.18
5.5.180.0060.00611.18
5.5.170.0060.00611.18
5.5.160.0000.01311.18
5.5.150.0050.00811.18
5.5.140.0030.01011.18
5.5.130.0000.01511.18
5.5.120.0030.01011.18
5.5.110.0070.00411.18
5.5.100.0100.00011.18
5.5.90.0080.00011.18
5.5.80.0030.00911.18
5.5.70.0040.00711.18
5.5.60.0050.00511.18
5.5.50.0090.00311.18
5.5.40.0070.00711.18
5.5.30.0090.00011.18
5.5.20.0030.00611.18
5.5.10.0000.00811.18
5.5.00.0030.00711.18
5.4.450.0140.02815.39
5.4.440.0060.03215.40
5.4.430.0090.03615.44
5.4.420.0130.03315.19
5.4.410.0100.04015.26
5.4.400.0070.03115.16
5.4.390.0120.02715.22
5.4.380.0230.03014.99
5.4.370.0290.03914.98
5.4.360.0140.03514.96
5.4.350.0160.04014.88
5.4.340.0160.03115.01
5.4.330.0120.00311.18
5.4.320.0060.02411.84
5.4.310.0080.02611.84
5.4.300.0060.02311.84
5.4.290.0070.02111.83
5.4.280.0070.02911.77
5.4.270.0060.02211.77
5.4.260.0050.02111.77
5.4.250.0060.02911.77
5.4.240.0060.02211.77
5.4.230.0040.02311.77
5.4.220.0050.02111.77
5.4.210.0090.02311.77
5.4.200.0060.02411.77
5.4.190.0060.03011.77
5.4.180.0050.02811.77
5.4.170.0040.02411.77
5.4.160.0050.02511.77
5.4.150.0040.02311.77
5.4.140.0060.02511.61
5.4.130.0020.02711.61
5.4.120.0060.02511.58
5.4.110.0080.02211.58
5.4.100.0090.04311.58
5.4.90.0090.05011.58
5.4.80.0080.02811.58
5.4.70.0160.03011.58
5.4.60.0060.01911.58
5.4.50.0060.01911.58
5.4.40.0070.01811.57
5.4.30.0070.02111.57
5.4.20.0060.02011.57
5.4.10.0050.02211.57
5.4.00.0070.03611.31
5.3.290.0040.03011.99
5.3.280.0090.02911.94
5.3.270.0070.02411.95
5.3.260.0090.02311.95
5.3.250.0080.02511.95
5.3.240.0090.02311.95
5.3.230.0090.03411.94
5.3.220.0070.04111.93
5.3.210.0070.03311.93
5.3.200.0080.03611.93
5.3.190.0110.03811.93
5.3.180.0090.03011.92
5.3.170.0040.03111.92
5.3.160.0070.03211.92
5.3.150.0140.04211.92
5.3.140.0080.02811.92
5.3.130.0120.04411.92
5.3.120.0050.02311.92
5.3.110.0100.02111.92
5.3.100.0080.03011.65
5.3.90.0040.02611.63
5.3.80.0090.02011.63
5.3.70.0050.02311.62
5.3.60.0070.02511.62
5.3.50.0070.01911.59
5.3.40.0060.02011.59
5.3.30.0040.02111.57
5.3.20.0050.01911.46
5.3.10.0070.02011.44
5.3.00.0040.02311.44
5.2.170.0020.02010.18
5.2.160.0040.01610.19
5.2.150.0040.02010.18
5.2.140.0060.01810.18
5.2.130.0040.02310.16
5.2.120.0070.03010.16
5.2.110.0090.02110.16
5.2.100.0060.02410.16
5.2.90.0040.02810.16
5.2.80.0090.02210.16
5.2.70.0040.02110.16
5.2.60.0050.02610.13
5.2.50.0060.02610.12
5.2.40.0040.02510.11
5.2.30.0050.02510.10
5.2.20.0060.02510.09
5.2.10.0080.02110.05
5.2.00.0060.0249.98
5.1.60.0050.0219.62
5.1.50.0020.0229.62
5.1.40.0020.0199.61
5.1.30.0040.0219.78
5.1.20.0040.0239.80
5.1.10.0060.0199.66
5.1.00.0040.0239.66
5.0.50.0060.0158.90
5.0.40.0040.0118.83
5.0.30.0040.0188.73
5.0.20.0040.0118.72
5.0.10.0040.0128.71
5.0.00.0030.0178.70
4.4.90.0030.0117.98
4.4.80.0020.0117.97
4.4.70.0030.0097.96
4.4.60.0040.0127.97
4.4.50.0030.0137.97
4.4.40.0020.0207.94
4.4.30.0020.0147.97
4.4.20.0020.0108.01
4.4.10.0030.0108.01
4.4.00.0020.0157.97
4.3.110.0020.0107.92
4.3.100.0020.0097.92
4.3.90.0050.0077.90
4.3.80.0030.0157.88
4.3.70.0010.0107.90
4.3.60.0040.0117.90
4.3.50.0030.0097.90
4.3.40.0040.0117.85
4.3.30.0010.0107.23
4.3.20.0010.0117.22
4.3.10.0020.0107.20
4.3.00.0010.01310.06

preferences:
42.98 ms | 401 KiB | 5 Q