3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static function sm() { echo "foo"; } } class bar extends foo { public static function sm() { echo "bar"; } } foo::sm(); bar::sm();

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.0180.00416.50
8.3.50.0120.00916.55
8.3.40.0070.01018.79
8.3.30.0090.00618.73
8.3.20.0080.00018.47
8.3.10.0050.00320.39
8.3.00.0060.00319.38
8.2.180.0140.00316.50
8.2.170.0110.00422.96
8.2.160.0070.00720.82
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00819.36
8.2.110.0040.00720.90
8.2.100.0040.00717.84
8.2.90.0050.00519.34
8.2.80.0060.00319.28
8.2.70.0060.00317.50
8.2.60.0040.00417.68
8.2.50.0080.00018.07
8.2.40.0040.00418.03
8.2.30.0040.00417.84
8.2.20.0050.00217.43
8.2.10.0050.00217.54
8.2.00.0050.00217.45
8.1.280.0070.00725.92
8.1.270.0080.00024.66
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0070.00422.42
8.1.230.0040.00820.89
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00616.88
8.1.190.0040.00417.39
8.1.180.0090.00018.10
8.1.170.0030.00518.64
8.1.160.0050.00218.63
8.1.150.0070.00018.46
8.1.140.0070.00317.36
8.1.130.0030.00517.76
8.1.120.0040.00417.35
8.1.110.0030.00317.34
8.1.100.0030.00317.34
8.1.90.0040.00417.26
8.1.80.0030.00417.32
8.1.70.0000.00617.33
8.1.60.0030.00517.54
8.1.50.0000.00717.29
8.1.40.0060.00317.46
8.1.30.0050.00317.40
8.1.20.0070.00317.44
8.1.10.0040.00417.33
8.1.00.0000.00817.40
8.0.300.0050.00319.98
8.0.290.0040.00416.75
8.0.280.0030.00318.48
8.0.270.0030.00317.25
8.0.260.0030.00316.81
8.0.250.0000.00716.91
8.0.240.0040.00416.94
8.0.230.0070.00016.90
8.0.220.0000.00816.75
8.0.210.0050.00216.71
8.0.200.0040.00416.84
8.0.190.0040.00416.86
8.0.180.0000.00716.74
8.0.170.0050.00316.82
8.0.160.0000.00716.79
8.0.150.0000.00816.71
8.0.140.0040.00816.62
8.0.130.0000.00513.15
8.0.120.0000.00816.71
8.0.110.0000.00716.65
8.0.100.0070.00016.86
8.0.90.0040.00416.59
8.0.80.0130.00316.70
8.0.70.0000.00916.82
8.0.60.0040.00416.59
8.0.50.0000.00716.59
8.0.30.0110.00717.32
8.0.20.0020.01816.98
8.0.10.0040.00416.91
8.0.00.0100.01416.79
7.4.330.0000.00512.86
7.4.320.0000.00816.37
7.4.300.0060.00016.52
7.4.290.0030.00316.52
7.4.280.0040.00416.40
7.4.270.0040.00416.54
7.4.260.0000.00613.18
7.4.250.0050.00216.54
7.4.240.0070.00016.57
7.4.230.0000.00716.53
7.4.220.0100.01016.46
7.4.210.0080.00716.52
7.4.200.0070.00016.60
7.4.190.0070.00016.59
7.4.160.0080.01116.26
7.4.150.0130.01316.41
7.4.140.0120.00616.51
7.4.130.0080.00916.47
7.4.120.0070.00916.53
7.4.110.0060.01216.43
7.4.100.0120.00616.40
7.4.90.0100.00716.49
7.4.80.0060.01216.38
7.4.70.0180.02316.46
7.4.60.0080.00916.41
7.4.50.0000.00816.07
7.4.40.0090.00316.30
7.4.30.0060.01016.33
7.4.00.0050.01114.89
7.3.330.0030.00313.18
7.3.320.0030.00313.30
7.3.310.0030.00316.13
7.3.300.0000.00616.23
7.3.290.0060.00916.17
7.3.280.0060.01216.24
7.3.270.0140.00616.47
7.3.260.0080.00816.39
7.3.250.0120.01016.37
7.3.240.0090.00816.28
7.3.230.0060.01116.24
7.3.210.0130.00316.28
7.3.200.0150.00919.39
7.3.190.0030.01516.14
7.3.180.0030.01316.04
7.3.170.0130.00416.41
7.3.160.0090.01016.29
7.3.120.0070.01114.79
7.3.110.0060.01114.73
7.3.100.0020.01214.87
7.3.90.0070.00514.70
7.3.80.0090.00714.76
7.3.70.0070.00514.49
7.3.60.0080.00514.69
7.3.50.0060.00514.63
7.3.40.0020.01214.68
7.3.30.0030.00914.75
7.3.20.0040.01016.41
7.3.10.0040.01316.31
7.3.00.0060.00816.52
7.2.330.0160.00016.45
7.2.320.0030.01516.64
7.2.310.0170.00316.71
7.2.300.0000.01616.61
7.2.290.0070.01116.62
7.2.250.0110.00714.87
7.2.240.0060.01015.11
7.2.230.0050.01014.88
7.2.220.0090.00314.75
7.2.210.0070.00814.85
7.2.200.0080.00814.83
7.2.190.0050.00814.61
7.2.180.0060.00815.02
7.2.170.0050.00814.88
7.2.160.0000.01214.93
7.2.150.0000.01316.64
7.2.140.0000.01316.78
7.2.130.0100.00716.76
7.2.120.0030.01316.46
7.2.110.0160.00016.62
7.2.100.0100.00716.64
7.2.90.0110.00716.59
7.2.80.0060.00616.73
7.2.70.0130.00316.90
7.2.60.0030.01316.84
7.2.50.0130.00316.92
7.2.40.0000.01616.81
7.2.30.0040.01416.83
7.2.20.0060.00916.81
7.2.10.0070.00716.85
7.2.00.0050.01017.97
7.1.330.0060.00715.47
7.1.320.0040.00615.70
7.1.310.0020.00915.71
7.1.300.0030.00815.77
7.1.290.0020.01315.62
7.1.280.0030.01315.38
7.1.270.0040.01115.52
7.1.260.0050.00815.73
7.1.250.0060.01015.63
7.1.100.0030.00518.15
7.1.70.0030.00716.98
7.1.60.0110.01419.40
7.1.50.0140.01016.52
7.1.00.0070.06322.27
7.0.200.0030.00516.59
7.0.140.0030.06721.99
7.0.120.0070.06022.18
7.0.60.0100.05019.84
7.0.50.0000.04317.72
7.0.40.0100.05720.27
7.0.30.0230.07720.23
7.0.20.0130.09320.30
7.0.10.0100.04720.23
7.0.00.0100.03720.05
5.6.280.0030.07320.89
5.6.210.0100.05720.50
5.6.200.0100.04318.30
5.6.190.0070.04020.77
5.6.180.0330.08020.46
5.6.170.0230.08720.51
5.6.160.0070.07020.44
5.6.150.0170.06318.20
5.6.140.0170.06018.23
5.6.130.0030.05718.24
5.6.120.0100.07320.89
5.6.110.0100.07321.01
5.6.100.0070.08321.11
5.6.90.0030.08320.97
5.6.80.0000.04320.29
5.6.70.0230.06720.37
5.5.350.0300.07720.53
5.5.340.0070.08318.05
5.5.330.0000.08020.21
5.5.320.0070.08720.30
5.5.310.0370.07020.21
5.5.300.0130.07317.98
5.5.290.0030.08018.02
5.5.280.0130.07720.81
5.5.270.0070.04020.76
5.5.260.0070.06320.98
5.5.250.0000.05020.55
5.5.240.0070.03720.16
5.4.450.0030.08319.41
5.4.440.0030.08319.47
5.4.430.0230.06319.18
5.4.420.0070.05019.40
5.4.410.0070.06719.08
5.4.400.0130.07319.21
5.4.390.0070.04719.00
5.4.380.0000.04318.98
5.4.370.0070.06319.00
5.4.360.0070.04719.08
5.4.350.0130.06018.99
5.4.340.0030.05018.85
5.4.320.0000.05719.20
5.4.310.0030.05019.24
5.4.300.0030.04318.84
5.4.290.0030.04019.08
5.4.280.0030.04019.20
5.4.270.0070.07719.20
5.4.260.0000.05319.11
5.4.250.0100.07019.14
5.4.240.0070.07718.87
5.4.230.0070.07319.23
5.4.220.0030.07318.84
5.4.210.0100.04019.11
5.4.200.0030.07719.15
5.4.190.0100.03719.14
5.4.180.0100.04318.84
5.4.170.0030.05018.84
5.4.160.0030.04018.84
5.4.150.0130.05719.21
5.4.140.0000.04316.52
5.4.130.0030.04016.38
5.4.120.0070.07316.46
5.4.110.0100.04016.72
5.4.100.0070.04316.42
5.4.90.0070.05716.55
5.4.80.0030.07316.56
5.4.70.0070.07316.34
5.4.60.0070.05316.36
5.4.50.0070.03716.44
5.4.40.0100.04016.36
5.4.30.0130.06716.27
5.4.20.0070.08016.25
5.4.10.0070.07716.36
5.4.00.0000.07015.95
5.3.290.0100.03314.66
5.3.280.0070.05714.64
5.3.270.0100.05714.61
5.3.260.0070.07314.52
5.3.250.0100.06014.54
5.3.240.0100.04014.63
5.3.230.0000.04314.60
5.3.220.0070.05714.72
5.3.210.0130.04314.56
5.3.200.0030.04314.62
5.3.190.0100.04014.59
5.3.180.0170.06314.59
5.3.170.0070.07714.71
5.3.160.0000.08314.56
5.3.150.0100.06714.63
5.3.140.0070.03314.60
5.3.130.0070.03714.54
5.3.120.0070.08014.46
5.3.110.0030.08014.59
5.3.100.0030.05014.03
5.3.90.0100.07014.18
5.3.80.0030.06013.99
5.3.70.0070.07014.07
5.3.60.0070.07714.00
5.3.50.0100.06714.09
5.3.40.0130.03713.95
5.3.30.0200.06013.92
5.3.20.0070.05713.69
5.3.10.0030.06013.66
5.3.00.0030.04313.56
5.2.170.0000.06311.07
5.2.160.0070.03711.29
5.2.150.0030.06311.30
5.2.140.0100.05711.07
5.2.130.0030.05311.10
5.2.120.0100.06011.10
5.2.110.0070.03711.06
5.2.100.0000.04011.18
5.2.90.0000.04011.16
5.2.80.0030.06711.25
5.2.70.0030.03711.13
5.2.60.0030.05311.02
5.2.50.0000.06311.08
5.2.40.0070.03710.99
5.2.30.0030.03010.98
5.2.20.0000.04310.88
5.2.10.0070.05710.91
5.2.00.0070.03310.60
5.1.60.0030.0339.97
5.1.50.0030.03710.14
5.1.40.0000.0539.95
5.1.30.0030.05710.30
5.1.20.0030.05710.31
5.1.10.0130.0339.99
5.1.00.0070.05310.12
5.0.50.0000.0308.76
5.0.40.0070.0408.76
5.0.30.0130.0438.76
5.0.20.0030.0438.76
5.0.10.0000.0208.76
5.0.00.0030.0678.76
4.4.90.0030.0308.76
4.4.80.0030.0238.76
4.4.70.0100.0278.76
4.4.60.0070.0338.76
4.4.50.0000.0378.76
4.4.40.0070.0338.76
4.4.30.0000.0408.76
4.4.20.0000.0308.76
4.4.10.0000.0378.76
4.4.00.0000.0538.76
4.3.110.0000.0208.76
4.3.100.0100.0308.76
4.3.90.0030.0308.76
4.3.80.0030.0538.76
4.3.70.0000.0178.76
4.3.60.0030.0338.76
4.3.50.0030.0378.76
4.3.40.0070.0438.76
4.3.30.0030.0378.76
4.3.20.0000.0278.76
4.3.10.0000.0338.76
4.3.00.0030.0338.76

preferences:
54.58 ms | 401 KiB | 5 Q