3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $my_static = 'foo'; public function staticValue() { return $this->$my_static; } }

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.0100.00618.13
8.3.50.0090.00721.21
8.3.40.0140.00318.54
8.3.30.0160.00618.57
8.3.20.0050.00318.48
8.3.10.0000.00820.23
8.3.00.0080.00019.23
8.2.180.0070.00716.38
8.2.170.0040.01122.96
8.2.160.0110.00422.06
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00619.72
8.2.110.0060.00321.00
8.2.100.0090.00317.55
8.2.90.0050.00218.98
8.2.80.0040.00417.97
8.2.70.0080.00317.25
8.2.60.0030.00517.68
8.2.50.0080.00018.97
8.2.40.0020.00518.09
8.2.30.0000.00719.77
8.2.20.0050.00217.45
8.2.10.0040.00417.64
8.2.00.0000.00817.64
8.1.280.0070.01425.92
8.1.270.0000.00823.99
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0100.00722.34
8.1.230.0090.00321.10
8.1.220.0030.00618.77
8.1.210.0040.00420.69
8.1.200.0030.00617.23
8.1.190.0070.00017.41
8.1.180.0000.00818.10
8.1.170.0050.00318.84
8.1.160.0080.00018.76
8.1.150.0030.00618.46
8.1.140.0030.00617.23
8.1.130.0030.00317.67
8.1.120.0000.00717.30
8.1.110.0040.00417.38
8.1.100.0030.00317.31
8.1.90.0070.00017.28
8.1.80.0050.00317.21
8.1.70.0000.00717.23
8.1.60.0000.00817.46
8.1.50.0040.00417.32
8.1.40.0040.00417.45
8.1.30.0000.00717.34
8.1.20.0000.00817.50
8.1.10.0070.00017.31
8.1.00.0040.00417.20
8.0.300.0040.00419.80
8.0.290.0080.00016.58
8.0.280.0070.00018.36
8.0.270.0000.00717.07
8.0.260.0030.00316.70
8.0.250.0070.00016.84
8.0.240.0000.01016.85
8.0.230.0030.00316.79
8.0.220.0080.00016.75
8.0.210.0030.00516.80
8.0.200.0030.00316.86
8.0.190.0000.00716.72
8.0.180.0000.01116.74
8.0.170.0050.00416.61
8.0.160.0030.00516.75
8.0.150.0040.00416.70
8.0.140.0000.00916.63
8.0.130.0000.00513.17
8.0.120.0000.00816.74
8.0.110.0040.00416.75
8.0.100.0070.00016.82
8.0.90.0030.00416.55
8.0.80.0130.00716.80
8.0.70.0040.00416.66
8.0.60.0080.00016.64
8.0.50.0030.00516.63
8.0.30.0100.00816.66
8.0.20.0050.01317.40
8.0.10.0040.00416.89
8.0.00.0070.01516.50
7.4.330.0060.00014.57
7.4.320.0050.00216.46
7.4.300.0000.00616.38
7.4.290.0030.00616.27
7.4.280.0040.00316.51
7.4.270.0000.00716.29
7.4.260.0030.00313.14
7.4.250.0040.00416.40
7.4.240.0030.00416.39
7.4.230.0070.00016.16
7.4.220.0100.00716.42
7.4.210.0060.00916.45
7.4.200.0030.00316.48
7.4.190.0000.00716.36
7.4.160.0130.00816.22
7.4.150.0090.00917.40
7.4.140.0100.00717.09
7.4.130.0110.01116.48
7.4.120.0110.00516.32
7.4.110.0150.00616.28
7.4.100.0110.00716.46
7.4.90.0090.00916.22
7.4.80.0150.00919.03
7.4.70.0100.00716.27
7.4.60.0070.01016.38
7.4.50.0030.00616.15
7.4.40.0070.01022.27
7.4.30.0090.00616.44
7.4.00.0060.00914.90
7.3.330.0000.00713.12
7.3.320.0000.00512.93
7.3.310.0000.00716.06
7.3.300.0040.00416.19
7.3.290.0100.00316.14
7.3.280.0070.01016.15
7.3.270.0140.00317.40
7.3.260.0130.00918.24
7.3.250.0100.00816.32
7.3.240.0070.01116.17
7.3.230.0070.01016.39
7.3.210.0080.00816.34
7.3.200.0120.00919.39
7.3.190.0120.00616.19
7.3.180.0070.01416.20
7.3.170.0060.01016.32
7.3.160.0120.00316.17
7.3.120.0080.00814.95
7.2.330.0040.01516.53
7.2.320.0100.00616.58
7.2.310.0100.01016.43
7.2.300.0060.01516.28
7.2.290.0060.01016.55
7.1.70.0040.00416.68
7.1.60.0110.01519.40
7.1.50.0070.00416.96
7.1.00.0000.05322.30
7.0.200.0680.01014.34
7.0.140.0070.07022.00
7.0.60.0070.08020.00
7.0.50.0170.06017.85
7.0.40.0070.08017.80
7.0.30.0130.05017.84
7.0.20.0200.06717.72
7.0.10.0070.04717.82
7.0.00.0070.08317.75
5.6.280.0030.07321.12
5.6.210.0100.06020.67
5.6.200.0030.06018.29
5.6.190.0100.06018.16
5.6.180.0130.07718.15
5.6.170.0030.07018.22
5.6.160.0070.08018.18
5.6.150.0100.05318.17
5.6.140.0100.05018.23
5.6.130.0030.08018.17
5.6.120.0030.04318.15
5.6.110.0070.07718.18
5.6.100.0100.07718.18
5.6.90.0070.08318.13
5.6.80.0030.08317.50
5.6.70.0070.07717.66
5.6.60.0130.06317.55
5.6.50.0000.05717.63
5.6.40.0100.07317.55
5.6.30.0070.07717.51
5.6.20.0100.06017.50
5.6.10.0100.03717.59
5.6.00.0070.06317.56
5.5.350.0070.05720.39
5.5.340.0130.04718.06
5.5.330.0100.06717.95
5.5.320.0130.06717.98
5.5.310.0000.06018.09
5.5.300.0100.04317.98
5.5.290.0100.04718.02
5.5.280.0100.07718.07
5.5.270.0100.06718.07
5.5.260.0070.07317.98
5.5.250.0070.07317.79
5.5.240.0070.07317.46
5.5.230.0030.05017.46
5.5.220.0000.05317.33
5.5.210.0070.08017.45
5.5.200.0100.07317.40
5.5.190.0170.04317.30
5.5.180.0100.07017.34
5.5.160.0030.08017.44
5.5.150.0130.07317.39
5.5.140.0100.04317.29
5.5.130.0130.07017.27
5.5.120.0070.05017.33
5.5.110.0100.07717.39
5.5.100.0070.07017.23
5.5.90.0200.06317.33
5.5.80.0100.07017.34
5.5.70.0070.07017.17
5.5.60.0070.05017.27
5.5.50.0000.06017.21
5.5.40.0000.05017.16
5.5.30.0100.06317.27
5.5.20.0070.06317.26
5.5.10.0030.04017.21
5.5.00.0070.06717.19
5.4.450.0070.05719.35
5.4.440.0000.09019.31
5.4.430.0200.05719.20
5.4.420.0070.05319.59
5.4.410.0030.06319.32
5.4.400.0070.07019.04
5.4.390.0130.07019.12
5.4.380.0070.04719.05
5.4.370.0130.06719.06
5.4.360.0200.06318.89
5.4.350.0200.05719.10
5.4.340.0100.07019.03
5.4.320.0100.07719.04
5.4.310.0000.06019.01
5.4.300.0030.04018.95
5.4.290.0100.04718.98
5.4.280.0100.03719.02
5.4.270.0070.07719.04
5.4.260.0070.07018.96
5.4.250.0030.07019.13
5.4.240.0100.07019.13
5.4.230.0000.05019.02
5.4.220.0100.06719.00
5.4.210.0000.05719.03
5.4.200.0170.07019.01
5.4.190.0130.06319.08
5.4.180.0070.04319.13
5.4.170.0030.06718.96
5.4.160.0070.08019.04
5.4.150.0000.04319.03
5.4.140.0070.03716.38
5.4.130.0030.04716.32
5.4.120.0100.03316.30
5.4.110.0070.05316.30
5.4.100.0070.07716.38
5.4.90.0170.06716.48
5.4.80.0130.06716.46
5.4.70.0030.04316.37
5.4.60.0100.07016.36
5.4.50.0130.02716.34
5.4.40.0100.06716.61
5.4.30.0030.07316.57
5.4.20.0070.06316.45
5.4.10.0000.05016.40
5.4.00.0000.08015.97
5.3.290.0030.05314.69
5.3.280.0070.07714.62
5.3.270.0100.07314.59
5.3.260.0030.08014.63
5.3.250.0070.07714.67
5.3.240.0000.06014.45
5.3.230.0030.04014.66
5.3.220.0070.03314.77
5.3.210.0000.08014.78
5.3.200.0000.07714.56
5.3.190.0100.06314.61
5.3.180.0070.05714.58
5.3.170.0100.07014.54
5.3.160.0100.06314.59
5.3.150.0130.04014.62
5.3.140.0130.07314.52
5.3.130.0030.08314.57
5.3.120.0070.05714.64
5.3.110.0100.07714.76
5.3.100.0030.07714.07
5.3.90.0070.04314.06
5.3.80.0130.06714.05
5.3.70.0070.06713.89
5.3.60.0000.04714.09
5.3.50.0000.04313.93
5.3.40.0030.04713.97
5.3.30.0030.07313.89
5.3.20.0100.07013.71
5.3.10.0100.06313.68
5.3.00.0100.06013.51
5.2.170.0070.06011.15
5.2.160.0070.03711.21
5.2.150.0000.04010.99
5.2.140.0130.05311.13
5.2.130.0070.04010.95
5.2.120.0100.05711.11
5.2.110.0000.07011.16
5.2.100.0130.05011.16
5.2.90.0070.04011.16
5.2.80.0030.03710.99
5.2.70.0000.04711.13
5.2.60.0030.04011.05
5.2.50.0070.04010.98
5.2.40.0100.05310.95
5.2.30.0070.05311.02
5.2.20.0100.05710.91
5.2.10.0030.03310.71
5.2.00.0030.06310.71
5.1.60.0070.0379.95
5.1.50.0000.03010.05
5.1.40.0070.04710.18
5.1.30.0030.05710.42
5.1.20.0030.03710.40
5.1.10.0070.0309.90
5.1.00.0030.02310.11
5.0.50.0000.0238.62
5.0.40.0000.0238.36
5.0.30.0030.0278.29
5.0.20.0000.0208.23
5.0.10.0000.0208.19
5.0.00.0000.0308.12
4.4.90.0000.0237.82
4.4.80.0000.0207.82
4.4.70.0000.0237.82
4.4.60.0000.0377.82
4.4.50.0000.0337.82
4.4.40.0030.0407.82
4.4.30.0030.0137.82
4.4.20.0070.0277.82
4.4.10.0000.0177.82
4.4.00.0030.0237.82
4.3.110.0030.0137.82
4.3.100.0030.0137.82
4.3.90.0000.0137.82
4.3.80.0030.0237.82
4.3.70.0030.0107.82
4.3.60.0000.0137.82
4.3.50.0000.0137.82
4.3.40.0000.0237.82
4.3.30.0030.0137.82
4.3.20.0000.0177.82
4.3.10.0000.0137.82
4.3.00.0000.0137.82

preferences:
54.19 ms | 400 KiB | 5 Q