3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function __construct() { echo 'Foo'; } static function foo() { return new self(); } } class Bar extends Foo { function __construct() { echo 'Bar'; } } $bar = Foo::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.0100.01018.18
8.3.50.0140.00317.35
8.3.40.0180.00418.71
8.3.30.0170.00318.59
8.3.20.0150.00018.54
8.3.10.0160.00320.54
8.3.00.0090.00017.38
8.2.180.0070.00716.50
8.2.170.0170.00322.96
8.2.160.0070.00722.13
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00419.77
8.2.110.0030.00720.89
8.2.100.0080.00417.72
8.2.90.0050.00319.05
8.2.80.0000.00817.79
8.2.70.0040.00417.50
8.2.60.0060.00318.04
8.2.50.0070.00018.07
8.2.40.0000.00819.95
8.2.30.0040.00418.00
8.2.20.0070.00017.65
8.2.10.0030.00817.72
8.2.00.0070.00417.60
8.1.280.0070.01025.92
8.1.270.0050.00224.66
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00320.75
8.1.230.0070.00320.88
8.1.220.0000.01017.74
8.1.210.0030.00518.77
8.1.200.0060.00317.10
8.1.190.0030.00517.18
8.1.180.0030.00618.10
8.1.170.0050.00218.77
8.1.160.0040.00418.82
8.1.150.0040.00418.57
8.1.140.0040.00417.30
8.1.130.0000.00817.81
8.1.120.0000.00717.28
8.1.110.0000.00717.33
8.1.100.0000.00817.27
8.1.90.0040.00417.38
8.1.80.0040.00417.41
8.1.70.0000.00717.28
8.1.60.0040.00417.60
8.1.50.0030.00617.34
8.1.40.0050.00317.47
8.1.30.0050.00217.68
8.1.20.0000.00817.61
8.1.10.0080.00017.52
8.1.00.0030.00617.41
8.0.300.0040.00420.02
8.0.290.0070.00016.75
8.0.280.0030.00318.32
8.0.270.0050.00517.23
8.0.260.0040.00416.80
8.0.250.0070.00016.88
8.0.240.0060.00316.90
8.0.230.0050.00316.79
8.0.220.0080.00016.69
8.0.210.0070.00316.80
8.0.200.0000.00616.87
8.0.190.0000.00716.79
8.0.180.0020.00516.73
8.0.170.0030.00616.82
8.0.160.0050.00316.72
8.0.150.0000.00716.77
8.0.140.0070.00016.75
8.0.130.0060.00313.28
8.0.120.0040.00416.77
8.0.110.0030.00516.73
8.0.100.0040.00416.68
8.0.90.0000.00716.77
8.0.80.0060.00916.82
8.0.70.0050.00316.89
8.0.60.0070.00016.71
8.0.50.0000.00716.72
8.0.30.0100.01016.93
8.0.20.0090.01116.92
8.0.10.0070.00016.83
8.0.00.0100.00716.82
7.4.330.0020.00212.92
7.4.320.0000.00616.45
7.4.300.0000.00616.57
7.4.290.0060.00016.60
7.4.280.0070.00316.51
7.4.270.0030.00316.64
7.4.260.0000.00613.33
7.4.250.0080.00016.48
7.4.240.0000.00716.40
7.4.230.0030.00316.60
7.4.220.0090.00616.47
7.4.210.0040.01116.52
7.4.200.0000.00816.41
7.4.190.0030.00316.69
7.4.160.0040.01816.59
7.4.150.0170.00716.61
7.4.140.0070.01016.48
7.4.130.0050.01316.49
7.4.120.0080.01016.47
7.4.110.0140.00816.47
7.4.100.0060.01216.59
7.4.90.0060.01216.63
7.4.80.0100.00716.55
7.4.70.0130.00616.52
7.4.60.0030.01316.67
7.4.50.0000.00816.45
7.4.40.0000.01116.27
7.4.30.0030.01416.34
7.4.00.0070.00614.96
7.3.330.0000.00613.18
7.3.320.0030.00313.19
7.3.310.0040.00416.27
7.3.300.0000.00616.27
7.3.290.0040.01116.25
7.3.280.0080.00816.25
7.3.270.0130.00616.21
7.3.260.0080.01416.53
7.3.250.0090.01116.10
7.3.240.0060.00916.20
7.3.230.0040.01416.30
7.3.210.0120.00616.55
7.3.200.0110.01119.39
7.3.190.0090.00916.09
7.3.180.0060.01016.16
7.3.170.0150.00616.26
7.3.160.0060.01116.15
7.3.120.0100.00714.74
7.3.110.0080.00814.59
7.3.100.0060.00914.68
7.3.90.0060.01114.92
7.3.80.0080.00414.75
7.3.70.0050.01214.80
7.3.60.0010.01014.81
7.3.50.0070.00714.55
7.3.40.0100.00314.54
7.3.30.0040.01014.72
7.3.20.0070.00716.43
7.3.10.0080.00816.42
7.3.00.0020.01016.50
7.2.330.0060.01116.70
7.2.320.0070.01016.45
7.2.310.0090.00916.55
7.2.300.0100.01016.38
7.2.290.0120.00916.69
7.2.250.0030.01414.93
7.2.240.0040.01014.95
7.2.230.0080.00715.11
7.2.220.0060.01014.68
7.2.210.0060.01015.01
7.2.200.0070.00914.69
7.2.190.0060.01014.88
7.2.180.0070.01014.92
7.2.170.0070.01014.95
7.2.160.0140.00014.69
7.2.150.0110.00416.71
7.2.140.0040.00816.86
7.2.130.0030.01516.86
7.2.120.0110.00316.58
7.2.110.0060.00616.68
7.2.100.0070.01016.71
7.2.90.0080.00816.61
7.2.80.0000.01316.61
7.2.70.0070.01016.70
7.2.60.0100.00716.50
7.2.50.0080.00416.90
7.2.40.0000.01616.97
7.2.30.0030.00716.98
7.2.20.0160.00016.64
7.2.10.0000.01516.81
7.2.00.0080.00318.04
7.1.330.0030.00815.60
7.1.320.0030.01015.46
7.1.310.0090.00715.54
7.1.300.0090.00715.62
7.1.290.0050.01015.60
7.1.280.0030.00815.39
7.1.270.0020.01115.70
7.1.260.0050.00715.62
7.1.250.0070.00715.42
7.1.100.0110.00017.95
7.1.70.0070.00417.16
7.1.60.0110.01419.40
7.1.50.0070.01116.80
7.1.00.0000.07322.37
7.0.200.0000.00716.40
7.0.140.0030.07322.00
7.0.120.0070.07022.20
7.0.60.0130.07719.91
7.0.50.0030.08717.96
7.0.40.0030.04320.39
7.0.30.0170.04020.24
7.0.20.0230.04020.20
7.0.10.0270.07320.07
7.0.00.0130.07720.24
5.6.280.0100.06320.84
5.6.210.0000.06320.56
5.6.200.0070.07718.25
5.6.190.0000.04720.41
5.6.180.0270.06320.46
5.6.170.0300.07320.58
5.6.160.0030.04020.50
5.6.150.0030.04018.21
5.6.140.0030.04318.21
5.6.130.0000.06718.18
5.6.120.0170.05321.01
5.6.110.0300.06721.04
5.6.100.0070.06321.14
5.6.90.0100.08321.10
5.6.80.0100.07720.41
5.6.70.0170.07720.40
5.5.350.0330.06720.41
5.5.340.0070.06717.97
5.5.330.0170.07020.36
5.5.320.0070.08020.41
5.5.310.0370.06720.30
5.5.300.0070.08317.95
5.5.290.0070.08317.94
5.5.280.0000.04720.80
5.5.270.0130.08020.96
5.5.260.0130.07720.87
5.5.250.0070.08720.58
5.5.240.0100.03720.28
5.4.450.0000.05319.25
5.4.440.0000.04319.43
5.4.430.0100.07019.40
5.4.420.0130.07319.52
5.4.410.0130.03719.14
5.4.400.0100.04019.15
5.4.390.0100.07318.85
5.4.380.0070.05319.12
5.4.370.0100.03719.16
5.4.360.0070.04019.20
5.4.350.0070.04719.12
5.4.340.0030.07719.24
5.4.320.0030.08319.15
5.4.310.0130.05318.85
5.4.300.0030.04019.24
5.4.290.0030.04018.85
5.4.280.0070.03718.96
5.4.270.0070.04319.00
5.4.260.0030.04018.85
5.4.250.0030.04319.01
5.4.240.0030.07319.23
5.4.230.0030.07718.84
5.4.220.0070.08019.11
5.4.210.0030.07318.86
5.4.200.0100.07319.15
5.4.190.0030.08019.23
5.4.180.0100.07019.23
5.4.170.0030.05019.25
5.4.160.0030.03719.13
5.4.150.0070.07719.13
5.4.140.0030.07316.38
5.4.130.0030.07716.48
5.4.120.0070.04716.38
5.4.110.0030.03716.32
5.4.100.0070.06716.35
5.4.90.0070.03316.48
5.4.80.0070.04316.34
5.4.70.0100.06016.37
5.4.60.0100.04316.46
5.4.50.0100.07016.40
5.4.40.0030.07716.67
5.4.30.0100.03716.27
5.4.20.0070.03316.36
5.4.10.0100.06716.52
5.4.00.0070.04315.91
5.3.290.0100.05314.72
5.3.280.0030.05014.63
5.3.270.0100.06714.64
5.3.260.0100.03314.61
5.3.250.0070.04314.65
5.3.240.0170.06314.68
5.3.230.0130.06714.63
5.3.220.0000.04014.73
5.3.210.0030.07714.61
5.3.200.0030.06014.57
5.3.190.0170.06714.59
5.3.180.0030.04014.58
5.3.170.0000.04014.72
5.3.160.0100.03314.57
5.3.150.0030.03714.58
5.3.140.0200.06314.61
5.3.130.0130.04014.58
5.3.120.0100.07314.60
5.3.110.0070.06714.70
5.3.100.0070.03714.04
5.3.90.0030.07013.91
5.3.80.0130.06314.10
5.3.70.0030.04313.91
5.3.60.0100.03714.05
5.3.50.0000.04314.00
5.3.40.0070.07313.98
5.3.30.0030.03713.95
5.3.20.0070.07313.71
5.3.10.0000.04313.68
5.3.00.0030.03713.71
5.2.170.0070.06311.16
5.2.160.0030.05311.22
5.2.150.0070.04011.16
5.2.140.0100.06011.19
5.2.130.0070.06011.10
5.2.120.0030.03011.00
5.2.110.0100.05011.07
5.2.100.0030.04711.11
5.2.90.0030.04710.99
5.2.80.0000.03711.16
5.2.70.0030.03311.14
5.2.60.0130.02711.11
5.2.50.0030.05310.95
5.2.40.0000.06310.93
5.2.30.0030.04311.13
5.2.20.0070.06011.11
5.2.10.0100.03310.86
5.2.00.0030.04010.75
5.1.60.0070.02010.06
5.1.50.0000.03710.02
5.1.40.0030.0539.98
5.1.30.0030.02710.38
5.1.20.0100.02010.24
5.1.10.0070.02310.05
5.1.00.0070.02010.09
5.0.50.0000.0208.77
5.0.40.0030.0178.77
5.0.30.0000.0308.77
5.0.20.0000.0478.77
5.0.10.0000.0208.77
5.0.00.0000.0338.77
4.4.90.0000.0178.77
4.4.80.0000.0378.77
4.4.70.0070.0208.77
4.4.60.0000.0238.77
4.4.50.0000.0238.77
4.4.40.0000.0238.77
4.4.30.0000.0178.77
4.4.20.0000.0208.77
4.4.10.0030.0138.77
4.4.00.0030.0538.77
4.3.110.0000.0178.77
4.3.100.0000.0378.77
4.3.90.0030.0208.77
4.3.80.0030.0438.77
4.3.70.0000.0278.77
4.3.60.0000.0308.77
4.3.50.0030.0238.77
4.3.40.0070.0438.77
4.3.30.0000.0308.77
4.3.20.0070.0338.77
4.3.10.0030.0178.77
4.3.00.0030.0178.77

preferences:
51.91 ms | 400 KiB | 5 Q