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 (new b())->$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.0090.00618.31
8.3.50.0090.01021.10
8.3.40.0140.00418.71
8.3.30.0000.01418.67
8.3.20.0090.00620.21
8.3.10.0000.00823.51
8.3.00.0000.00919.56
8.2.180.0070.00718.16
8.2.170.0140.00322.96
8.2.160.0070.00720.33
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.01126.16
8.2.120.0080.00017.72
8.2.110.0090.00022.31
8.2.100.0080.00419.48
8.2.90.0000.00719.07
8.2.80.0000.00817.97
8.2.70.0030.00517.63
8.2.60.0080.00017.93
8.2.50.0060.00318.07
8.2.40.0040.00419.16
8.2.30.0050.00319.85
8.2.20.0040.00417.72
8.2.10.0040.00418.05
8.2.00.0050.00318.03
8.1.280.0070.01125.92
8.1.270.0090.00020.27
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00322.67
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0100.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.13
8.1.180.0060.00318.10
8.1.170.0030.00518.39
8.1.160.0000.00722.04
8.1.150.0000.00718.88
8.1.140.0000.00817.49
8.1.130.0040.00417.74
8.1.120.0030.00317.36
8.1.110.0070.00017.42
8.1.100.0070.00017.40
8.1.90.0030.00317.36
8.1.80.0050.00317.42
8.1.70.0000.00717.46
8.1.60.0030.00517.43
8.1.50.0000.00917.41
8.1.40.0060.00317.44
8.1.30.0030.00617.62
8.1.20.0040.00417.56
8.1.10.0020.00517.44
8.1.00.0000.00717.33
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.46
8.0.270.0050.00317.20
8.0.260.0030.00317.19
8.0.250.0000.00716.99
8.0.240.0000.00716.90
8.0.230.0000.00716.98
8.0.220.0030.00316.96
8.0.210.0050.00216.94
8.0.200.0090.00016.89
8.0.190.0040.00717.05
8.0.180.0090.00316.86
8.0.170.0060.00316.85
8.0.160.0000.00916.82
8.0.150.0000.00816.97
8.0.140.0030.00416.78
8.0.130.0050.00013.36
8.0.120.0090.00016.91
8.0.110.0050.00316.97
8.0.100.0070.00016.90
8.0.90.0000.00816.96
8.0.80.0100.00516.91
8.0.70.0070.00016.97
8.0.60.0000.00716.75
8.0.50.0000.00816.84
8.0.30.0100.01117.22
8.0.20.0090.00917.40
8.0.10.0080.00017.03
8.0.00.0080.01016.79
7.4.330.0000.00515.09
7.4.320.0000.00616.43
7.4.300.0000.00616.41
7.4.290.0030.00316.42
7.4.280.0080.00016.37
7.4.270.0030.00316.48
7.4.260.0070.00016.38
7.4.250.0000.00716.52
7.4.240.0020.00616.43
7.4.230.0020.00516.27
7.4.220.0090.00616.61
7.4.210.0130.00016.50
7.4.200.0030.00316.50
7.4.160.0110.00416.50
7.4.150.0070.01017.40
7.4.140.0080.01517.86
7.4.130.0110.00616.52
7.4.120.0110.00816.43
7.4.110.0080.01616.59
7.4.100.0100.00716.43
7.4.90.0060.01216.54
7.4.80.0100.00919.39
7.4.70.0110.01116.50
7.4.60.0030.01316.46
7.4.50.0030.00516.23
7.4.40.0110.00416.41
7.4.30.0180.00516.50
7.4.00.0030.01315.04
7.3.330.0060.00013.32
7.3.320.0060.00013.18
7.3.310.0060.00016.36
7.3.300.0040.00416.35
7.3.290.0040.01416.32
7.3.280.0110.00516.36
7.3.270.0100.00617.40
7.3.260.0120.00616.34
7.3.250.0120.00716.40
7.3.240.0070.01016.48
7.3.230.0140.00316.63
7.3.210.0070.01316.32
7.3.200.0100.00716.38
7.3.190.0090.00916.54
7.3.180.0060.00916.63
7.3.170.0080.00816.33
7.3.160.0130.00716.31
7.3.10.0100.00616.39
7.3.00.0120.00616.48
7.2.330.0070.01416.48
7.2.320.0130.00616.29
7.2.310.0060.01316.66
7.2.300.0110.00516.39
7.2.290.0170.00616.71
7.2.130.0120.00916.73
7.2.120.0110.00816.83
7.2.110.0100.00716.52
7.2.100.0130.00716.65
7.2.90.0070.00916.69
7.2.80.0100.00716.70
7.2.70.0130.00416.54
7.2.60.0050.01016.50
7.2.50.0100.00616.60
7.2.40.0090.00616.72
7.2.30.0060.00716.77
7.2.20.0110.00716.44
7.2.10.0090.00716.49
7.2.00.0120.00617.39
7.1.250.0080.00815.55
7.1.200.0040.00415.40
7.1.100.0130.00617.86
7.1.70.0000.00817.05
7.1.60.0100.01319.12
7.1.50.0180.00934.61
7.1.00.0100.07022.48
7.0.200.0100.00316.77
7.0.60.0100.06020.02
7.0.50.0070.07017.95
7.0.40.0030.08320.12
7.0.30.0270.07720.08
7.0.20.0230.04320.23
7.0.10.0030.04720.42
7.0.00.0070.06320.24
5.6.280.0030.07321.04
5.6.210.0070.03720.48
5.6.200.0070.08718.24
5.6.190.0000.05020.63
5.6.180.0170.05020.57
5.6.170.0330.07020.71
5.6.160.0130.05020.54
5.6.150.0030.04018.25
5.6.140.0100.06018.18
5.6.130.0000.04318.23
5.6.120.0130.03321.00
5.6.110.0130.07021.11
5.6.100.0100.06721.14
5.6.90.0130.08021.02
5.6.80.0130.07020.36
5.6.70.0230.06320.38
5.5.350.0230.06320.44
5.5.340.0100.03317.95
5.5.330.0100.04020.27
5.5.320.0070.03720.35
5.5.310.0270.04020.34
5.5.300.0070.06318.04
5.5.290.0030.04718.05
5.5.280.0130.07320.66
5.5.270.0030.07320.88
5.5.260.0130.08020.73
5.5.250.0070.05720.71
5.5.240.0130.07720.04
5.4.450.0600.04319.63
5.4.440.0470.05719.41
5.4.430.0470.05319.39
5.4.420.0570.05719.10
5.4.410.0530.05019.26
5.4.400.0530.05319.08
5.4.390.0570.05719.25
5.4.380.0670.04718.97
5.4.370.0700.04719.20
5.4.360.0600.05318.91
5.4.350.0470.05319.15
5.4.340.0400.05719.13
5.4.320.0600.05319.30
5.4.310.0530.06018.94
5.4.300.0630.04718.89
5.4.290.0600.05019.25
5.4.280.0700.04319.12
5.4.270.0500.05018.74
5.4.260.0670.04318.91
5.4.250.0570.05318.75
5.4.240.0500.06019.15
5.4.230.0600.05018.88
5.4.220.0570.05719.27
5.4.210.0530.06318.77
5.4.200.0630.05018.88
5.4.190.0570.05719.15
5.4.180.0470.06319.23
5.4.170.0600.05318.91
5.4.160.0670.04318.75
5.4.150.0600.05019.11
5.4.140.0570.05016.44
5.4.130.0400.05316.37
5.4.120.0600.04716.62
5.4.110.0630.04716.62
5.4.100.0530.04716.57
5.4.90.0470.04716.64
5.4.80.0570.04716.45
5.4.70.0230.04016.57
5.4.60.0330.06716.58
5.4.50.0030.05716.38
5.4.40.0000.06316.33
5.4.30.0030.05016.42
5.4.20.0030.07316.53

preferences:
48.9 ms | 401 KiB | 5 Q