3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public static function foo() { echo __CLASS__; } } class Foo extends Bar { public static function bar() { return self::foo(); } } Foo::bar();

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.01018.30
8.3.50.0120.00822.06
8.3.40.0060.00918.67
8.3.30.0070.00718.93
8.3.20.0040.00420.16
8.3.10.0060.00822.05
8.3.00.0040.00420.63
8.2.180.0070.01116.63
8.2.170.0110.00422.96
8.2.160.0070.00719.21
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00726.16
8.2.120.0030.00519.36
8.2.110.0060.00322.20
8.2.100.0080.00417.57
8.2.90.0050.00317.78
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0030.00518.09
8.2.30.0040.00417.98
8.2.20.0040.00417.51
8.2.10.0030.00617.55
8.2.00.0050.00317.42
8.1.280.0070.01025.92
8.1.270.0080.00022.19
8.1.260.0000.01426.35
8.1.250.0040.00428.09
8.1.240.0070.01422.42
8.1.230.0070.00420.97
8.1.220.0000.00717.74
8.1.210.0080.00018.91
8.1.200.0030.00617.10
8.1.190.0060.00317.16
8.1.180.0040.00418.54
8.1.170.0030.00518.53
8.1.160.0000.00821.86
8.1.150.0000.00818.50
8.1.140.0030.00717.23
8.1.130.0040.00417.70
8.1.120.0070.00017.28
8.1.110.0040.00417.18
8.1.100.0030.00317.32
8.1.90.0040.00317.29
8.1.80.0050.00217.15
8.1.70.0050.00317.21
8.1.60.0000.00817.43
8.1.50.0070.00017.44
8.1.40.0000.00717.43
8.1.30.0040.00417.61
8.1.20.0040.00417.54
8.1.10.0050.00217.41
8.1.00.0050.00317.41
8.0.300.0040.00419.83
8.0.290.0070.00017.18
8.0.280.0000.00818.36
8.0.270.0050.00317.25
8.0.260.0040.00416.80
8.0.250.0030.00316.76
8.0.240.0000.00716.90
8.0.230.0000.00716.79
8.0.220.0000.00616.82
8.0.210.0000.00716.71
8.0.200.0050.00316.88
8.0.190.0090.00016.92
8.0.180.0000.00716.82
8.0.170.0030.00316.84
8.0.160.0040.00416.68
8.0.150.0040.00516.76
8.0.140.0050.00316.72
8.0.130.0060.00013.24
8.0.120.0040.00416.83
8.0.110.0030.00516.64
8.0.100.0000.00716.73
8.0.90.0040.00416.68
8.0.80.0000.01416.73
8.0.70.0000.00716.64
8.0.60.0040.00416.82
8.0.50.0040.00416.73
8.0.30.0170.00317.00
8.0.20.0080.01117.40
8.0.10.0040.00416.79
8.0.00.0170.02116.75
7.4.330.0020.00215.07
7.4.320.0030.00316.57
7.4.300.0000.00616.52
7.4.290.0060.00016.50
7.4.280.0030.00516.57
7.4.270.0050.00316.41
7.4.260.0070.00316.37
7.4.250.0030.00616.31
7.4.240.0000.00716.59
7.4.230.0030.00316.56
7.4.220.0090.00816.50
7.4.210.0070.01016.44
7.4.200.0030.00316.61
7.4.190.0000.00716.41
7.4.160.0080.00816.43
7.4.150.0130.00317.40
7.4.140.0100.01217.86
7.4.130.0100.01016.45
7.4.120.0090.00916.43
7.4.110.0130.00316.48
7.4.100.0070.01016.52
7.4.90.0110.00816.46
7.4.80.0130.00919.39
7.4.70.0100.01116.33
7.4.60.0070.01016.25
7.4.50.0030.00316.23
7.4.40.0030.01322.77
7.4.30.0130.01016.50
7.4.00.0050.01314.77
7.3.330.0020.00213.23
7.3.320.0050.00013.23
7.3.310.0000.00716.28
7.3.300.0030.00316.24
7.3.290.0000.01416.25
7.3.280.0080.01016.21
7.3.270.0100.00717.40
7.3.260.0140.00316.20
7.3.250.0040.01616.20
7.3.240.0070.01416.25
7.3.230.0080.00816.39
7.3.210.0080.00816.24
7.3.200.0100.00716.35
7.3.190.0100.01016.13
7.3.180.0090.00616.17
7.3.170.0090.01216.27
7.3.160.0090.00616.25
7.3.120.0120.00514.83
7.3.110.0040.01414.86
7.3.100.0040.00815.00
7.3.90.0040.00714.95
7.3.80.0030.01415.02
7.3.70.0060.00314.74
7.3.60.0100.00714.70
7.3.50.0000.01414.82
7.3.40.0000.01314.39
7.3.30.0000.01414.46
7.3.20.0120.00316.49
7.3.10.0060.00915.99
7.3.00.0030.00816.54
7.2.330.0110.00816.62
7.2.320.0090.00916.62
7.2.310.0030.01316.47
7.2.300.0090.00916.55
7.2.290.0060.01216.26
7.2.250.0070.00714.84
7.2.240.0070.01415.20
7.2.230.0060.00915.01
7.2.220.0110.00314.86
7.2.210.0070.00715.00
7.2.200.0000.01114.81
7.2.190.0040.01514.96
7.2.180.0070.01114.95
7.2.170.0060.00314.91
7.2.130.0140.00316.15
7.2.120.0120.00616.95
7.2.110.0150.00315.79
7.2.100.0060.00616.38
7.2.90.0130.00416.00
7.2.80.0240.00716.55
7.2.70.0180.00616.52
7.2.60.0160.00616.59
7.2.50.0120.01216.59
7.2.40.0160.01016.38
7.2.30.0130.00616.66
7.2.20.0180.00816.46
7.2.10.0100.01016.45
7.2.00.0170.00918.00
7.1.330.0120.00315.44
7.1.320.0000.00915.43
7.1.310.0070.00715.77
7.1.300.0060.01215.34
7.1.290.0030.00815.61
7.1.280.0030.01315.64
7.1.270.0040.01115.70
7.1.260.0040.00415.68
7.1.250.0090.00615.20
7.1.100.0160.00618.04
7.1.70.0000.00816.98
7.1.60.0100.01319.82
7.1.50.0070.01116.96
7.1.00.0030.07722.36
7.0.200.0040.00416.75
7.0.140.0000.07022.07
7.0.60.0000.04320.05
7.0.50.0070.07717.88
7.0.40.0070.04020.24
7.0.30.0130.05020.16
7.0.20.0230.05320.16
7.0.10.0130.08020.21
7.0.00.0000.05720.07
5.6.280.0100.06320.87
5.6.210.0100.08320.51
5.6.200.0130.03318.22
5.6.190.0130.07720.55
5.6.180.0270.08320.47
5.6.170.0270.03020.45
5.6.160.0030.04020.45
5.6.150.0070.06018.19
5.6.140.0100.04018.18
5.6.130.0070.08018.14
5.6.120.0000.06020.96
5.6.110.0070.08321.00
5.6.100.0170.08321.01
5.6.90.0130.07721.07
5.6.80.0070.08720.38
5.5.350.0100.07720.53
5.5.340.0030.07017.98
5.5.330.0100.08020.19
5.5.320.0370.05720.42
5.5.310.0230.07320.38
5.5.300.0130.04718.03
5.5.290.0070.08017.98
5.5.280.0030.04320.68
5.5.270.0030.07020.87
5.5.260.0070.03720.77
5.5.250.0100.06020.61
5.5.240.0300.04020.14
5.4.450.0000.08719.42
5.4.440.0030.04019.40
5.4.430.0000.08319.19
5.4.420.0000.08019.54
5.4.410.0000.06719.51
5.4.400.0000.04719.25
5.4.390.0100.07018.85
5.4.380.0000.07319.22
5.4.370.0070.06319.25
5.4.360.0000.05319.31
5.4.350.0000.08019.13
5.4.340.0000.08319.15
5.4.320.0030.06018.86
5.4.310.0000.06318.85
5.4.300.0030.05718.87
5.4.290.0030.07719.24
5.4.280.0100.07318.84
5.4.270.0030.05719.08
5.4.260.0030.06018.99
5.4.250.0070.07319.17
5.4.240.0030.07318.86
5.4.230.0000.07019.08
5.4.220.0000.06019.19
5.4.210.0000.08019.07
5.4.200.0100.05319.13
5.4.190.0030.06718.86
5.4.180.0000.07018.82
5.4.170.0030.04318.86
5.4.160.0070.06719.21
5.4.150.0000.07019.20
5.4.140.0000.05016.46
5.4.130.0070.05016.56
5.4.120.0070.04716.38
5.4.110.0070.06716.48
5.4.100.0030.07016.24
5.4.90.0030.04316.64
5.4.80.0000.04316.21
5.4.70.0030.05016.39
5.4.60.0070.03716.24
5.4.50.0000.07716.42
5.4.40.0100.07016.54
5.4.30.0030.07716.23
5.4.20.0030.05316.34
5.4.10.0030.07716.53
5.4.00.0030.05715.80
5.3.290.0030.07714.59
5.3.280.0070.05714.59
5.3.270.0070.07714.83
5.3.260.0070.07714.68
5.3.250.0030.08014.60
5.3.240.0070.07014.51
5.3.230.0100.07014.67
5.3.220.0000.05314.48
5.3.210.0000.07014.79
5.3.200.0070.04714.49
5.3.190.0030.08014.48
5.3.180.0070.06714.53
5.3.170.0030.05314.68
5.3.160.0030.06014.53
5.3.150.0030.07314.64
5.3.140.0030.07714.56
5.3.130.0030.05314.59
5.3.120.0070.05314.79
5.3.110.0070.07314.44
5.3.100.0000.04014.04
5.3.90.0030.04713.92
5.3.80.0030.07314.03
5.3.70.0070.07313.95
5.3.60.0000.06313.93
5.3.50.0070.06713.82
5.3.40.0000.07713.93
5.3.30.0030.04313.89
5.3.20.0030.04013.61
5.3.10.0070.06713.58
5.3.00.0030.07013.86
5.2.170.0030.04712.44
5.2.160.0000.04012.44
5.2.150.0030.03012.44
5.2.140.0000.03312.44
5.2.130.0070.03312.44
5.2.120.0030.03712.44
5.2.110.0000.03712.44
5.2.100.0070.06012.44
5.2.90.0030.05712.44
5.2.80.0030.05012.44
5.2.70.0000.06712.44
5.2.60.0000.03712.44
5.2.50.0000.04712.44
5.2.40.0000.03712.44
5.2.30.0070.03012.44
5.2.20.0000.06012.44
5.2.10.0030.04712.44
5.2.00.0030.03012.44
5.1.60.0000.02712.44
5.1.50.0130.02312.44
5.1.40.0000.04312.44
5.1.30.0070.03012.44
5.1.20.0130.04712.44
5.1.10.0000.05712.44
5.1.00.0030.04712.44
5.0.50.0100.04012.44
5.0.40.0000.04312.44
5.0.30.0030.03712.44
5.0.20.0030.02712.44
5.0.10.0070.03012.44
5.0.00.0070.03312.44
4.4.90.0000.03012.44
4.4.80.0070.03012.44
4.4.70.0030.02712.44
4.4.60.0030.02312.44
4.4.50.0000.04012.44
4.4.40.0000.03712.44
4.4.30.0000.03712.44
4.4.20.0030.03312.44
4.4.10.0000.03312.44
4.4.00.0070.04312.44
4.3.110.0100.02712.44
4.3.100.0130.00712.44
4.3.90.0070.03012.44
4.3.80.0030.02712.44
4.3.70.0000.01712.44
4.3.60.0030.01712.44
4.3.50.0030.03012.44
4.3.40.0000.04012.44
4.3.30.0000.03712.44
4.3.20.0000.03312.44
4.3.10.0000.02712.44
4.3.00.0000.03012.44

preferences:
48.24 ms | 401 KiB | 5 Q