3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public static $foo = 'bar'; public function getStatic(){ return self::$foo; } } class b { public $classname = 'a'; } $b = new b(); echo $b->classname::$foo; echo ($b->classname)->$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.60.0040.01118.43
8.3.50.0150.00721.09
8.3.40.0060.01218.88
8.3.30.0090.00918.81
8.3.20.0030.00620.33
8.3.10.0000.00823.70
8.3.00.0000.00819.56
8.2.180.0120.00318.56
8.2.170.0040.01122.96
8.2.160.0070.00720.27
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.01426.16
8.2.120.0030.00619.95
8.2.110.0070.00322.11
8.2.100.0120.00019.61
8.2.90.0050.00318.96
8.2.80.0040.00417.97
8.2.70.0050.00317.38
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0000.00819.15
8.2.30.0070.00019.85
8.2.20.0050.00317.80
8.2.10.0040.00418.04
8.2.00.0040.00418.04
8.1.280.0110.00425.92
8.1.270.0090.00920.00
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00422.59
8.1.230.0040.00817.42
8.1.220.0060.00317.74
8.1.210.0050.00518.77
8.1.200.0030.00617.13
8.1.190.0030.00617.35
8.1.180.0050.00318.10
8.1.170.0050.00318.58
8.1.160.0000.00721.88
8.1.150.0090.00018.76
8.1.140.0000.00817.32
8.1.130.0050.00317.57
8.1.120.0040.00417.46
8.1.110.0040.00417.32
8.1.100.0080.00017.45
8.1.90.0000.00817.48
8.1.80.0080.00017.45
8.1.70.0040.00417.41
8.1.60.0000.00817.48
8.1.50.0000.00817.52
8.1.40.0000.00817.55
8.1.30.0000.01017.70
8.1.20.0060.00317.58
8.1.10.0040.00417.63
8.1.00.0070.00017.57
8.0.300.0080.00018.77
8.0.290.0040.00416.88
8.0.280.0030.00318.44
8.0.270.0030.00317.25
8.0.260.0030.00317.25
8.0.250.0040.00317.00
8.0.240.0060.00017.11
8.0.230.0040.00416.88
8.0.220.0030.00316.84
8.0.210.0070.00016.94
8.0.200.0080.00017.02
8.0.190.0080.00316.89
8.0.180.0040.00416.93
8.0.170.0000.00816.93
8.0.160.0000.00816.85
8.0.150.0000.00816.94
8.0.140.0000.00816.80
8.0.130.0050.00013.35
8.0.120.0080.00016.93
8.0.110.0060.00316.84
8.0.100.0050.00316.89
8.0.90.0040.00416.80
8.0.80.0080.00816.94
8.0.70.0070.00016.97
8.0.60.0070.00016.77
8.0.50.0050.00216.93
8.0.30.0070.01217.24
8.0.20.0110.00617.40
8.0.10.0000.00816.96
8.0.00.0090.00716.68
7.4.330.0050.00015.09
7.4.320.0030.00316.43
7.4.300.0000.00616.54
7.4.290.0030.00316.36
7.4.280.0050.00316.51
7.4.270.0000.00616.38
7.4.260.0060.00016.41
7.4.250.0040.00416.38
7.4.240.0000.00716.55
7.4.230.0000.00716.32
7.4.220.0090.00916.33
7.4.210.0090.00916.30
7.4.200.0000.00716.64
7.4.160.0120.00416.51
7.4.150.0120.00617.40
7.4.140.0080.01217.86
7.4.130.0030.01316.46
7.4.120.0050.01216.45
7.4.110.0100.01316.31
7.4.100.0070.01416.49
7.4.90.0160.00616.43
7.4.80.0100.01419.39
7.4.70.0000.01716.43
7.4.60.0090.00616.42
7.4.50.0080.00016.43
7.4.40.0030.01316.59
7.4.30.0070.01616.41
7.4.00.0080.00815.05
7.3.330.0030.00313.19
7.3.320.0050.00013.38
7.3.310.0070.00016.17
7.3.300.0000.00616.40
7.3.290.0110.00716.28
7.3.280.0090.01016.35
7.3.270.0120.00417.40
7.3.260.0090.00916.43
7.3.250.0100.00816.46
7.3.240.0130.00416.32
7.3.230.0070.01016.39
7.3.210.0080.00916.34
7.3.200.0080.00816.65
7.3.190.0120.00916.34
7.3.180.0030.01316.48
7.3.170.0060.01016.34
7.3.160.0090.01216.39
7.3.120.0030.01214.75
7.3.110.0060.01014.64
7.3.100.0080.00814.67
7.3.90.0050.01214.65
7.3.80.0030.00914.98
7.3.70.0070.00514.72
7.3.60.0020.00914.69
7.3.50.0070.00414.63
7.3.40.0080.00614.50
7.3.30.0090.00414.81
7.3.20.0080.00716.74
7.3.10.0040.01016.56
7.3.00.0080.00616.48
7.2.330.0100.01016.33
7.2.320.0130.01016.41
7.2.310.0130.01016.66
7.2.300.0070.01016.29
7.2.290.0060.01316.45
7.2.250.0060.00715.18
7.2.240.0110.00615.00
7.2.230.0040.00914.95
7.2.220.0060.01015.06
7.2.210.0060.00715.00
7.2.200.0070.00614.95
7.2.190.0080.00615.03
7.2.180.0050.00915.05
7.2.170.0080.00615.01
7.2.160.0040.01014.89
7.2.150.0040.00717.04
7.2.140.0000.01416.95
7.2.130.0090.00916.84
7.2.120.0070.00616.73
7.2.110.0080.00817.04
7.2.100.0080.01116.91
7.2.90.0090.00616.76
7.2.80.0080.00416.65
7.2.70.0070.00716.95
7.2.60.0030.01216.91
7.2.50.0110.00916.83
7.2.40.0100.00516.59
7.2.30.0030.01016.86
7.2.20.0090.00816.79
7.2.10.0090.00816.71
7.2.00.0090.00717.86
7.1.330.0080.00715.67
7.1.320.0060.00615.58
7.1.310.0070.00515.48
7.1.300.0040.00715.40
7.1.290.0050.00515.49
7.1.280.0040.00915.67
7.1.270.0050.00815.74
7.1.260.0080.00615.65
7.1.250.0050.00815.43
7.1.200.0000.01115.36
7.1.70.0000.00816.92
7.1.60.0040.01217.11
7.1.50.0060.00616.95
7.1.00.0000.08022.40
7.0.200.0120.00916.84
7.0.60.0070.06020.07
7.0.50.0070.07717.86
7.0.40.0100.08020.04
7.0.30.0430.03720.15
7.0.20.0270.07320.16
7.0.10.0000.04320.08
7.0.00.0030.07320.33
5.6.280.0070.03021.13
5.6.210.0230.08020.55
5.6.200.0000.05718.19
5.6.190.0070.04020.61
5.6.180.0170.04720.64
5.6.170.0270.05020.55
5.6.160.0030.08720.57
5.6.150.0000.04318.14
5.6.140.0070.07318.19
5.6.130.0000.07018.12
5.6.120.0100.06320.96
5.6.110.0100.08021.14
5.6.100.0030.04020.96
5.6.90.0170.07721.08
5.6.80.0030.08020.38
5.6.70.0270.06720.37
5.5.350.0300.07720.36
5.5.340.0000.04318.02
5.5.330.0070.08020.40
5.5.320.0030.08320.20
5.5.310.0300.07720.42
5.5.300.0030.04718.07
5.5.290.0130.07018.10
5.5.280.0000.08720.88
5.5.270.0070.04320.76
5.5.260.0100.07720.76
5.5.250.0200.07720.61
5.5.240.0200.07720.23
5.4.450.0270.07319.46
5.4.440.0100.08719.61
5.4.430.0100.06019.57
5.4.420.0230.07719.07
5.4.410.0330.06319.26
5.4.400.0170.05319.19
5.4.390.0200.05018.78
5.4.380.0100.06718.78
5.4.370.0170.05318.92
5.4.360.0370.04318.80
5.4.350.0200.05019.09
5.4.340.0130.06319.16
5.4.320.0200.05019.06
5.4.310.0370.04019.23
5.4.300.0230.04718.89
5.4.290.0270.04319.23
5.4.280.0270.06019.30
5.4.270.0170.05018.82
5.4.260.0170.04719.15
5.4.250.0100.05719.12
5.4.240.0130.06018.74
5.4.230.0070.06719.15
5.4.220.0300.05719.15
5.4.210.0170.05319.16
5.4.200.0130.05718.71
5.4.190.0270.06719.09
5.4.180.0330.06018.96
5.4.170.0230.06019.14
5.4.160.0330.04319.05
5.4.150.0170.05319.04
5.4.140.0130.05316.36
5.4.130.0130.05016.34
5.4.120.0230.04316.48
5.4.110.0200.05016.29
5.4.100.0130.05016.26
5.4.90.0130.05016.67
5.4.80.0170.04716.21
5.4.70.0200.07016.39
5.4.60.0330.04716.17
5.4.50.0000.04316.43
5.4.40.0070.04016.51
5.4.30.0030.06716.53
5.4.20.0000.07316.34

preferences:
34.16 ms | 401 KiB | 5 Q