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() { } } $a = new A; var_dump($a::$a, $a::c());

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.0120.00618.85
8.3.30.0100.00318.69
8.3.20.0110.00720.22
8.3.10.0040.00423.66
8.3.00.0040.00419.26
8.2.170.0100.00622.96
8.2.160.0130.00720.43
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.03
8.2.110.0060.00319.39
8.2.100.0090.00317.91
8.2.90.0080.00019.08
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0000.00817.92
8.2.50.0060.00318.07
8.2.40.0040.00418.19
8.2.30.0000.00718.05
8.2.20.0050.00217.49
8.2.10.0040.00417.86
8.2.00.0030.00617.54
8.1.270.0050.00323.82
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00421.95
8.1.230.0070.00420.54
8.1.220.0000.00817.74
8.1.210.0180.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00717.52
8.1.180.0060.00318.10
8.1.170.0000.00818.58
8.1.160.0040.00421.98
8.1.150.0070.00018.48
8.1.140.0030.00517.41
8.1.130.0000.00717.86
8.1.120.0040.00417.30
8.1.110.0040.00317.40
8.1.100.0040.00417.41
8.1.90.0040.00417.37
8.1.80.0000.00717.27
8.1.70.0040.00417.27
8.1.60.0080.00017.55
8.1.50.0000.00717.50
8.1.40.0040.00417.52
8.1.30.0040.00417.56
8.1.20.0030.00617.63
8.1.10.0000.00817.59
8.1.00.0000.00817.39
8.0.300.0040.00418.77
8.0.290.0030.00516.58
8.0.280.0030.00318.38
8.0.270.0080.00017.17
8.0.260.0030.00317.18
8.0.250.0030.00516.92
8.0.240.0000.00716.83
8.0.230.0000.00716.89
8.0.220.0050.00316.69
8.0.210.0030.00616.78
8.0.200.0060.00016.91
8.0.190.0070.00016.84
8.0.180.0050.00316.82
8.0.170.0000.00816.84
8.0.160.0050.00316.82
8.0.150.0070.00016.72
8.0.140.0000.00716.77
8.0.130.0000.00613.24
8.0.120.0080.00016.82
8.0.110.0050.00316.82
8.0.100.0040.00416.84
8.0.90.0040.00416.79
8.0.80.0090.00616.73
8.0.70.0000.00816.76
8.0.60.0000.00716.86
8.0.50.0080.00016.81
8.0.30.0110.00817.13
8.0.20.0160.00717.40
8.0.10.0040.00416.77
8.0.00.0180.01016.79
7.4.330.0000.00515.00
7.4.320.0030.00316.43
7.4.300.0030.00316.61
7.4.290.0000.00716.38
7.4.280.0080.00016.63
7.4.270.0040.00416.58
7.4.260.0030.00316.47
7.4.250.0050.00216.55
7.4.240.0040.00416.52
7.4.230.0000.00716.54
7.4.220.0110.00716.63
7.4.210.0070.00716.59
7.4.200.0030.00316.69
7.4.190.0070.00016.56
7.4.160.0080.00816.32
7.4.150.0130.00317.40
7.4.140.0090.01117.86
7.4.130.0050.01116.40
7.4.120.0150.00316.55
7.4.110.0170.00716.59
7.4.100.0030.01416.54
7.4.90.0100.00716.66
7.4.80.0000.01719.39
7.4.70.0060.01016.42
7.4.60.0130.00316.63
7.4.50.0000.00616.38
7.4.40.0030.01322.77
7.4.30.0060.00916.53
7.4.00.0030.01015.17
7.3.330.0000.00513.35
7.3.320.0030.00313.08
7.3.310.0080.00016.17
7.3.300.0000.00716.36
7.3.290.0030.01216.38
7.3.280.0100.00516.34
7.3.270.0070.01017.40
7.3.260.0050.01116.48
7.3.250.0130.00816.47
7.3.240.0130.01316.54
7.3.230.0040.01216.39
7.3.210.0030.01416.24
7.3.200.0140.00419.39
7.3.190.0090.00916.58
7.3.180.0030.01316.30
7.3.170.0080.00816.27
7.3.160.0130.00716.29
7.3.120.0070.01114.74
7.3.10.0170.00016.69
7.3.00.0060.00316.64
7.2.330.0060.01216.73
7.2.320.0030.01316.53
7.2.310.0160.00016.38
7.2.300.0000.01816.35
7.2.290.0130.00316.75
7.2.130.0120.00016.82
7.2.120.0120.00316.67
7.2.110.0120.00816.76
7.2.100.0070.00716.87
7.2.90.0000.01416.65
7.2.80.0000.01316.91
7.2.70.0000.01316.92
7.2.60.0020.01416.89
7.2.50.0040.00717.00
7.2.40.0060.01216.95
7.2.30.0000.01316.79
7.2.20.0060.01116.62
7.2.10.0070.00716.55
7.2.00.0050.00617.99
7.1.250.0070.00715.76
7.1.200.0070.00415.61
7.1.100.0050.00818.27
7.1.70.0000.00817.06
7.1.60.0130.01019.33
7.1.50.0230.01734.74
7.1.00.0100.07022.40
7.0.200.0120.00616.60
7.0.140.0000.07722.00
7.0.60.0100.07719.95
7.0.50.0070.08017.83
7.0.40.0100.09020.25
7.0.30.0470.07020.11
7.0.20.0230.05320.07
7.0.10.0170.07720.22
7.0.00.0100.08320.16
5.6.280.0100.06720.91
5.6.210.0100.07320.56
5.6.200.0030.04318.22
5.6.190.0230.06720.61
5.6.180.0170.06020.50
5.6.170.0330.04320.55
5.6.160.0000.05020.55
5.6.150.0100.08018.29
5.6.140.0170.07018.27
5.6.130.0030.04318.18
5.6.120.0100.05021.00
5.6.110.0070.06320.86
5.6.100.0000.06020.89
5.6.90.0130.07720.98
5.6.80.0070.08720.43
5.6.70.4270.03720.39
5.5.350.0200.07320.33
5.5.340.0030.03717.99
5.5.330.0070.04320.41
5.5.320.0070.06320.51
5.5.310.0370.04720.33
5.5.300.0030.08318.08
5.5.290.0100.06318.07
5.5.280.0000.05020.68
5.5.270.0000.08720.73
5.5.260.0130.08020.77
5.5.250.0100.07020.55
5.5.240.0100.07320.34
5.4.450.0230.04319.38
5.4.440.0170.05319.58
5.4.430.0100.05719.47
5.4.420.0100.05319.18
5.4.410.0170.05019.48
5.4.400.0130.04719.41
5.4.390.0100.05319.37
5.4.380.0200.06018.76
5.4.370.0330.05718.63
5.4.360.0200.05718.76
5.4.350.0130.06718.56
5.4.340.0170.06718.79
5.4.320.0080.03712.50
5.4.310.0070.03912.50
5.4.300.0090.03712.50
5.4.290.0090.03812.50
5.4.280.0040.03812.37
5.4.270.0030.03912.37
5.4.260.0040.03812.37
5.4.250.0070.03612.37
5.4.240.0040.03912.37
5.4.230.0070.03612.36
5.4.220.0050.03712.36
5.4.210.0050.03712.36
5.4.200.0050.04012.36
5.4.190.0070.04012.36
5.4.180.0060.04012.36
5.4.170.0020.04212.37
5.4.160.0060.03712.36
5.4.150.0060.03712.36
5.4.140.0040.04212.04
5.4.130.0100.03512.03
5.4.120.0060.03911.99
5.4.110.0080.03611.99
5.4.100.0070.03711.98
5.4.90.0090.05211.98
5.4.80.0160.05311.98
5.4.70.0090.04711.98
5.4.60.0090.04811.98
5.4.50.0100.03811.98
5.4.40.0130.04411.97
5.4.30.0070.04811.96
5.4.20.0050.04011.97
5.4.10.0040.03811.97
5.4.00.0090.04911.46
5.3.290.0090.04712.80
5.3.280.0090.04012.71
5.3.270.0090.04412.73
5.3.260.0110.04512.72
5.3.250.0090.03912.71
5.3.240.0090.05012.72
5.3.230.0090.05612.71
5.3.220.0080.04012.68
5.3.210.0100.04712.68
5.3.200.0110.05712.68
5.3.190.0130.05012.68
5.3.180.0080.04412.67
5.3.170.0090.03512.67
5.3.160.0070.04312.68
5.3.150.0090.03712.67
5.3.140.0070.03912.66
5.3.130.0150.08012.66
5.3.120.0100.04812.66
5.3.110.0160.07812.66
5.3.100.0170.07412.12
5.3.90.0200.07012.08
5.3.80.0170.07412.07
5.3.70.0080.04612.07
5.3.60.0060.04112.06
5.3.50.0120.05212.01
5.3.40.0100.03912.01
5.3.30.0080.03811.95
5.3.20.0090.03711.75
5.3.10.0060.04311.70
5.3.00.0260.04811.70
5.2.170.0030.0409.19
5.2.160.0070.0469.20
5.2.150.0120.0349.20
5.2.140.0070.0469.19
5.2.130.0050.0359.15
5.2.120.0060.0309.15
5.2.110.0090.0369.16
5.2.100.0100.0439.16
5.2.90.0080.0509.14
5.2.80.0140.0569.14
5.2.70.0170.0519.14
5.2.60.0050.0379.10
5.2.50.0090.0559.07
5.2.40.0180.0669.04
5.2.30.0150.0529.02
5.2.20.0170.0799.01
5.2.10.0140.0478.93
5.2.00.0190.0658.78
5.1.60.0140.0518.07
5.1.50.0170.0668.07
5.1.40.0080.0328.05
5.1.30.0080.0358.40
5.1.20.0060.0478.43
5.1.10.0130.0388.14
5.1.00.0030.0408.14
5.0.50.0050.0456.62
5.0.40.0050.0326.48
5.0.30.0090.0496.29
5.0.20.0030.0296.26
5.0.10.0090.0316.24
5.0.00.0070.0336.23
4.4.90.0040.0184.78
4.4.80.0030.0164.76
4.4.70.0020.0184.75
4.4.60.0050.0154.75
4.4.50.0010.0214.77
4.4.40.0070.0344.71
4.4.30.0050.0194.76
4.4.20.0050.0324.84
4.4.10.0030.0234.85
4.4.00.0050.0344.76
4.3.110.0020.0244.67
4.3.100.0050.0174.67
4.3.90.0030.0164.63
4.3.80.0070.0644.59
4.3.70.0030.0164.63
4.3.60.0060.0204.63
4.3.50.0140.0514.63
4.3.40.0100.0324.54
4.3.30.0030.0243.28
4.3.20.0110.0313.26
4.3.10.0060.0483.22
4.3.00.0000.0278.92

preferences:
32.85 ms | 400 KiB | 5 Q