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;

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.0030.01218.18
8.3.50.0140.00716.28
8.3.40.0110.00718.67
8.3.30.0150.00618.67
8.3.20.0170.00020.21
8.3.10.0080.00023.53
8.3.00.0030.00619.56
8.2.180.0110.00418.29
8.2.170.0100.00722.96
8.2.160.0030.01020.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.75
8.2.110.0190.00422.15
8.2.100.0030.00919.36
8.2.90.0040.00419.07
8.2.80.0080.00017.97
8.2.70.0050.00317.50
8.2.60.0060.00318.04
8.2.50.0060.00318.07
8.2.40.0000.00819.46
8.2.30.0000.00719.95
8.2.20.0080.00017.69
8.2.10.0020.00518.03
8.2.00.0000.00717.98
8.1.280.0100.00725.92
8.1.270.0080.00020.38
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.01422.73
8.1.230.0050.00519.03
8.1.220.0040.00417.80
8.1.210.0070.00318.77
8.1.200.0040.00417.23
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0000.00818.58
8.1.160.0000.00722.00
8.1.150.0040.00418.75
8.1.140.0060.00317.38
8.1.130.0030.00317.51
8.1.120.0000.00717.39
8.1.110.0050.00317.29
8.1.100.0000.00717.36
8.1.90.0040.00417.41
8.1.80.0070.00317.30
8.1.70.0040.00417.41
8.1.60.0000.00817.56
8.1.50.0050.00317.44
8.1.40.0070.00017.45
8.1.30.0030.00617.49
8.1.20.0040.00417.56
8.1.10.0050.00317.62
8.1.00.0040.00417.41
8.0.300.0040.00418.84
8.0.290.0050.00216.63
8.0.280.0000.00718.40
8.0.270.0000.00717.27
8.0.260.0060.00017.26
8.0.250.0030.00516.83
8.0.240.0030.00316.95
8.0.230.0030.00316.89
8.0.220.0030.00316.74
8.0.210.0000.00716.71
8.0.200.0030.00516.88
8.0.190.0080.00316.90
8.0.180.0080.00016.69
8.0.170.0000.00816.70
8.0.160.0030.00516.73
8.0.150.0070.00016.70
8.0.140.0030.00316.78
8.0.130.0000.00513.32
8.0.120.0030.00616.75
8.0.110.0040.00416.83
8.0.100.0000.00716.69
8.0.90.0000.00716.63
8.0.80.0040.01216.88
8.0.70.0040.00416.59
8.0.60.0040.00416.85
8.0.50.0070.00016.72
8.0.30.0090.00917.02
8.0.20.0030.01517.40
8.0.10.0000.00716.95
8.0.00.0080.01116.80
7.4.330.0000.00515.08
7.4.320.0000.00616.45
7.4.300.0030.00316.54
7.4.290.0030.00316.45
7.4.280.0030.00616.57
7.4.270.0000.00716.40
7.4.260.0030.00316.37
7.4.250.0080.00016.48
7.4.240.0040.00416.41
7.4.230.0030.00316.34
7.4.220.0060.00916.61
7.4.210.0070.00716.49
7.4.200.0030.00316.61
7.4.160.0090.00616.54
7.4.150.0110.00617.40
7.4.140.0120.00617.86
7.4.130.0120.00716.58
7.4.120.0100.01016.39
7.4.110.0130.00916.45
7.4.100.0160.00616.51
7.4.90.0070.01016.30
7.4.80.0120.00619.39
7.4.70.0110.00616.53
7.4.60.0090.00616.39
7.4.50.0040.00416.27
7.4.40.0060.00916.35
7.4.30.0100.01016.53
7.4.00.0070.00714.54
7.3.330.0020.00213.25
7.3.320.0000.00513.11
7.3.310.0000.00616.09
7.3.300.0050.00216.11
7.3.290.0060.01116.19
7.3.280.0100.00616.24
7.3.270.0080.00817.40
7.3.260.0110.00716.50
7.3.250.0100.00616.18
7.3.240.0150.00316.35
7.3.230.0140.00316.39
7.3.210.0060.01116.50
7.3.200.0050.01016.09
7.3.190.0100.01316.46
7.3.180.0090.00916.42
7.3.170.0130.00316.34
7.3.160.0160.00316.31
7.2.330.0140.00416.50
7.2.320.0160.00616.77
7.2.310.0090.00916.64
7.2.300.0070.01016.63
7.2.290.0160.00616.77
7.2.110.0200.00816.60
7.2.60.0070.00716.87
7.2.00.0000.01019.32
7.1.200.0040.00815.75
7.1.100.0150.00617.91
7.1.70.0040.01117.03
7.1.60.0130.01019.12
7.1.50.0190.00034.33
7.1.00.0030.07722.40
7.0.200.0120.00316.77
7.0.60.0030.04320.07
7.0.50.0000.04317.85
7.0.40.0070.07719.96
7.0.30.0330.06020.16
7.0.20.0300.07320.19
7.0.10.0000.07320.19
7.0.00.0100.04020.23
5.6.280.0100.06020.82
5.6.210.0130.05020.48
5.6.200.0100.07718.16
5.6.190.0070.04020.68
5.6.180.0230.07020.33
5.6.170.0270.07320.46
5.6.160.0070.07020.51
5.6.150.0030.08718.18
5.6.140.0070.05018.28
5.6.130.0030.04318.14
5.6.120.0200.07021.13
5.6.110.0170.07021.12
5.6.100.0070.05021.11
5.6.90.0070.05020.95
5.6.80.0100.06020.39
5.6.70.0200.07720.42
5.5.350.0370.07320.44
5.5.340.0170.07017.94
5.5.330.0100.04720.13
5.5.320.0030.04020.51
5.5.310.0400.06720.37
5.5.300.0100.03317.99
5.5.290.0070.06718.07
5.5.280.0130.07720.80
5.5.270.0000.08320.87
5.5.260.0130.05320.73
5.5.250.0030.08720.70
5.5.240.0200.07720.32
5.4.450.0470.05719.08
5.4.440.0630.04019.42
5.4.430.0570.06319.48
5.4.420.0630.05019.39
5.4.410.0500.05319.11
5.4.400.0400.05719.16
5.4.390.0570.05019.29
5.4.380.0430.06018.89
5.4.370.0530.04719.15
5.4.360.0530.05019.15
5.4.350.0570.05019.00
5.4.340.0630.05318.75
5.4.320.0500.05319.18
5.4.310.0530.04718.75
5.4.300.0630.04718.75
5.4.290.0600.04019.15
5.4.280.0670.04718.96
5.4.270.0870.05318.75
5.4.260.0600.04318.78
5.4.250.0470.05318.88
5.4.240.0700.04019.15
5.4.230.0630.04719.24
5.4.220.0630.05018.96
5.4.210.0600.05019.18
5.4.200.0630.04719.16
5.4.190.0600.05019.30
5.4.180.0470.05719.11
5.4.170.0530.04719.05
5.4.160.0530.05319.07
5.4.150.0830.05019.13
5.4.140.0100.06316.46
5.4.130.0100.05016.59
5.4.120.0530.04016.60
5.4.110.0430.05716.67
5.4.100.0300.05016.66
5.4.90.0100.04716.23
5.4.80.0070.05716.60
5.4.70.0130.05016.44
5.4.60.0370.06016.52
5.4.50.0000.03716.52
5.4.40.0000.04716.49
5.4.30.0070.06716.52
5.4.20.0000.07016.55

preferences:
59.21 ms | 400 KiB | 5 Q