3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooBar { private function __construct() { } public static function newBaz() { return new Baz(); } } class Baz extends FooBar {} var_dump(get_class(FooBar::newBaz())); //var_dump(get_class(new Baz()));

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.4.10.0040.00417.62
8.3.140.0110.00716.66
8.3.130.0030.00618.30
8.3.120.0060.00318.92
8.3.110.0140.00020.94
8.3.100.0060.00324.06
8.3.90.0040.01126.77
8.3.80.0060.00317.97
8.3.70.0060.01618.18
8.3.60.0120.00616.63
8.3.50.0110.00721.12
8.3.40.0140.00418.67
8.3.30.0030.01118.93
8.3.20.0070.00020.16
8.3.10.0040.00421.63
8.3.00.0000.00919.08
8.2.250.0040.01216.37
8.2.240.0040.00419.10
8.2.230.0060.00322.58
8.2.220.0090.00537.54
8.2.210.0040.01126.77
8.2.200.0080.00016.38
8.2.190.0170.00018.29
8.2.180.0060.01216.32
8.2.170.0120.00918.88
8.2.160.0100.00722.96
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00421.00
8.2.110.0160.00020.35
8.2.100.0060.00619.36
8.2.90.0030.00619.10
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00817.91
8.2.50.0040.00418.07
8.2.40.0060.00319.82
8.2.30.0070.00017.80
8.2.20.0060.00317.59
8.2.10.0040.00417.81
8.2.00.0050.00217.98
8.1.300.0160.00018.18
8.1.290.0060.00330.84
8.1.280.0090.00925.92
8.1.270.0090.01220.22
8.1.260.0130.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00018.89
8.1.230.0120.00017.54
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0040.00417.11
8.1.190.0050.00317.00
8.1.180.0040.00418.10
8.1.170.0040.00420.30
8.1.160.0000.00721.86
8.1.150.0020.00518.62
8.1.140.0060.00317.23
8.1.130.0050.00317.79
8.1.120.0000.00717.22
8.1.110.0020.00517.37
8.1.100.0040.00417.17
8.1.90.0040.00417.36
8.1.80.0000.00817.29
8.1.70.0030.00317.23
8.1.60.0030.00617.48
8.1.50.0000.00817.41
8.1.40.0040.00417.49
8.1.30.0040.00417.62
8.1.20.0040.00417.49
8.1.10.0070.00017.49
8.1.00.0050.00217.28
8.0.300.0000.00818.77
8.0.290.0070.00016.58
8.0.280.0000.00718.33
8.0.270.0000.00717.09
8.0.260.0030.00317.11
8.0.250.0030.00316.77
8.0.240.0030.00316.94
8.0.230.0030.00316.85
8.0.220.0040.00416.74
8.0.210.0080.00016.77
8.0.200.0000.00716.92
8.0.190.0040.00416.88
8.0.180.0040.00416.86
8.0.170.0020.00516.75
8.0.160.0080.00016.81
8.0.150.0000.00716.69
8.0.140.0040.00416.72
8.0.130.0030.00313.12
8.0.120.0040.00416.63
8.0.110.0030.00416.72
8.0.100.0040.00416.70
8.0.90.0030.00516.54
8.0.80.0030.01516.77
8.0.70.0030.00516.61
8.0.60.0040.00416.71
8.0.50.0040.00416.79
8.0.30.0140.01117.06
8.0.20.0060.01217.40
8.0.10.0030.00516.74
8.0.00.0090.01116.71
7.4.330.0000.00615.03
7.4.320.0030.00316.35
7.4.300.0030.00316.49
7.4.290.0080.00016.44
7.4.280.0050.00316.55
7.4.270.0000.00716.35
7.4.260.0040.00416.40
7.4.250.0040.00416.49
7.4.240.0030.00416.32
7.4.230.0000.00716.27
7.4.220.0070.01416.41
7.4.210.0060.00816.58
7.4.200.0030.00316.42
7.4.160.0100.00716.44
7.4.150.0160.00917.40
7.4.140.0090.00917.86
7.4.130.0120.00816.49
7.4.120.0100.00816.51
7.4.110.0140.01016.41
7.4.100.0080.01116.39
7.4.90.0120.00616.29
7.4.80.0120.01219.39
7.4.70.0090.00916.50
7.4.60.0100.00616.66
7.4.50.0000.00916.06
7.4.40.0070.01016.47
7.4.30.0070.01016.29
7.4.00.0020.01514.87
7.3.330.0000.00613.19
7.3.320.0050.01113.08
7.3.310.0030.00316.25
7.3.300.0000.00616.27
7.3.290.0030.00316.34
7.3.280.0060.01016.20
7.3.270.0090.00917.40
7.3.260.0100.00716.46
7.3.250.0110.00716.30
7.3.240.0090.00816.25
7.3.230.0100.01016.46
7.3.210.0070.01016.18
7.3.200.0090.00619.39
7.3.190.0100.00616.50
7.3.180.0120.00416.45
7.3.170.0030.01316.27
7.3.160.0080.00816.36
7.3.120.0040.01414.50
7.3.110.0070.01014.65
7.3.100.0030.01114.50
7.3.90.0000.00914.76
7.3.80.0090.00314.52
7.3.70.0030.00714.68
7.3.60.0030.00614.83
7.3.50.0030.00914.77
7.3.40.0030.01314.68
7.3.30.0100.00714.58
7.3.20.0030.01016.59
7.3.10.0020.00816.34
7.3.00.0040.00716.65
7.2.330.0000.01716.50
7.2.320.0120.00916.23
7.2.310.0070.01016.59
7.2.300.0050.01216.59
7.2.290.0110.00616.33
7.2.250.0130.00615.18
7.2.240.0090.00914.69
7.2.230.0070.00714.82
7.2.220.0070.00414.93
7.2.210.0030.01314.64
7.2.200.0000.01414.81
7.2.190.0070.00714.94
7.2.180.0030.01014.98
7.2.170.0040.00714.89
7.2.130.0000.00916.48
7.2.120.0060.00616.72
7.2.110.0100.00316.74
7.2.100.0090.00316.51
7.2.90.0070.00416.86
7.2.80.0070.00716.44
7.2.70.0000.01316.90
7.2.60.0000.01216.36
7.2.50.0070.01116.73
7.2.40.0030.01016.68
7.2.30.0120.00616.90
7.2.20.0080.01416.61
7.2.10.0040.00916.82
7.2.00.0080.00917.58
7.1.330.0080.00415.80
7.1.320.0040.01415.61
7.1.310.0080.00015.91
7.1.300.0080.00415.67
7.1.290.0110.00315.66
7.1.280.0070.00715.54
7.1.270.0070.00715.61
7.1.260.0060.00615.50
7.1.250.0060.00615.56
7.1.200.0070.00715.46
7.1.100.0060.00617.68
7.1.70.0000.00817.20
7.1.60.0060.01919.50
7.1.50.0100.01616.86
7.1.00.0030.07722.57
7.0.200.0000.00816.54
7.0.60.0100.05319.79
7.0.50.0030.04017.86
7.0.40.0100.04320.41
7.0.30.0270.08020.34
7.0.20.0100.07020.30
7.0.10.0100.07720.24
7.0.00.0100.04720.24
5.6.280.0100.06720.82
5.6.210.0070.08020.70
5.6.200.0100.07318.18
5.6.190.0070.08020.47
5.6.180.0400.07720.77
5.6.170.0100.05320.45
5.6.160.0070.03720.55
5.6.150.0070.08018.18
5.6.140.0000.06718.15
5.6.130.0100.07718.14
5.6.120.0030.04721.06
5.6.110.0100.07321.02
5.6.100.0130.07021.01
5.6.90.0070.07720.99
5.6.80.0130.07020.48
5.6.70.3030.03020.36
5.5.350.0230.07720.33
5.5.340.0100.04717.96
5.5.330.0070.03720.42
5.5.320.3270.04320.26
5.5.310.0200.06720.36
5.5.300.0000.05017.98
5.5.290.0070.07018.03
5.5.280.0070.04720.87
5.5.270.0130.08020.67
5.5.260.0030.08720.87
5.5.250.0100.08020.66
5.5.240.2900.04320.12
5.4.450.0070.04019.19
5.4.440.0430.02319.56
5.4.430.0030.03719.45
5.4.420.0070.06019.21
5.4.410.0100.05718.89
5.4.400.0200.04718.89
5.4.390.0170.05718.51
5.4.380.0270.04718.69
5.4.370.0070.07018.73
5.4.360.0100.05318.84
5.4.350.0130.05718.82
5.4.340.0170.06718.74
5.4.320.0270.05018.79
5.4.310.0100.07018.70
5.4.300.0070.05718.52
5.4.290.0130.05018.74
5.4.280.0100.05318.59
5.4.270.0130.05718.77
5.4.260.0170.04718.50
5.4.250.0100.05318.58
5.4.240.0170.04718.75
5.4.230.0170.06718.77
5.4.220.0200.04718.55
5.4.210.0130.07318.67
5.4.200.0270.05716.50
5.4.190.0200.06718.75
5.4.180.0030.06018.79
5.4.170.0130.05018.64
5.4.160.0130.05018.44
5.4.150.0070.05718.75
5.4.140.0170.05016.34
5.4.130.0130.04316.25
5.4.120.0200.04016.14
5.4.110.0100.04716.25
5.4.100.0130.05016.17
5.4.90.0170.04316.48
5.4.80.0130.04716.25
5.4.70.0100.05016.33
5.4.60.0130.05016.41
5.4.50.0170.04716.42
5.4.40.0170.04316.40
5.4.30.0100.05016.20
5.4.20.0100.05016.29
5.4.10.0230.03716.24
5.4.00.0170.04015.69
5.3.290.0030.06014.83
5.3.280.0070.05714.73
5.3.270.0130.05014.83
5.3.260.0030.06014.61
5.3.250.0100.05314.81
5.3.240.0100.05314.63
5.3.230.0170.04714.58
5.3.220.0130.07014.60
5.3.210.0170.05014.58
5.3.200.0070.05314.55
5.3.190.0070.05314.75
5.3.180.0100.05014.66
5.3.170.0170.06714.59
5.3.160.0100.06014.78
5.3.150.0030.06014.62
5.3.140.0130.05014.54
5.3.130.0070.05714.58
5.3.120.0130.05014.73
5.3.110.0070.05714.75
5.3.100.0100.05014.26
5.3.90.0100.05014.02
5.3.80.0100.05014.13
5.3.70.0100.05014.09
5.3.60.0130.04714.10
5.3.50.0070.07013.95
5.3.40.0230.05713.94
5.3.30.0070.05313.91
5.3.20.0130.04313.69
5.3.10.0070.05013.77
5.3.00.0130.04713.66
5.2.170.0070.04711.25
5.2.160.0130.03711.14
5.2.150.0070.04711.16
5.2.140.0070.04711.28
5.2.130.0070.04311.33
5.2.120.0130.03311.24
5.2.110.0100.04011.08
5.2.100.0130.03311.20
5.2.90.0170.03311.21
5.2.80.0170.04011.20
5.2.70.0130.03711.20
5.2.60.0000.05011.18
5.2.50.0030.05011.14
5.2.40.0000.06011.10
5.2.30.0170.03711.05
5.2.20.0100.03710.94
5.2.10.0100.03710.91
5.2.00.0130.04010.71
5.1.60.0200.03310.04
5.1.50.0030.0379.98
5.1.40.0100.03010.09
5.1.30.0100.03310.38
5.1.20.0130.03010.38
5.1.10.0070.03710.11
5.1.00.0030.04010.11
5.0.50.0100.0278.59
5.0.40.0100.0338.44
5.0.30.0070.0508.36
5.0.20.0070.0378.20
5.0.10.0000.0338.36
5.0.00.0070.0438.17
4.4.90.0000.0335.88
4.4.80.0100.0205.90
4.4.70.0070.0205.98
4.4.60.0070.0205.91
4.4.50.0070.0205.94
4.4.40.0000.0405.95
4.4.30.0000.0275.88
4.4.20.0070.0205.97
4.4.10.0030.0236.02
4.4.00.0030.0376.02
4.3.110.0000.0335.84
4.3.100.0100.0175.81
4.3.90.0000.0275.79
4.3.80.0030.0335.84
4.3.70.0030.0205.77
4.3.60.0030.0205.87
4.3.50.0070.0205.81
4.3.40.0070.0305.86
4.3.30.0070.0234.64
4.3.20.0030.0204.53
4.3.10.0000.0234.52
4.3.00.0030.01315.58

preferences:
73.13 ms | 403 KiB | 5 Q