3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class PluginClientFactory { private static $factory; public static function setFactory(callable $factory) { static::$factory = $factory; } public function createClient($client, array $plugins = [], array $options = []) { if (static::$factory) { return static::$factory($client, $plugins, $options); } return new PluginClient($client, $plugins, $options); } } PluginClientFactory::setFactory(function () {}); $factory = new PluginClientFactory(); $factory->createClient('client');

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.140.0130.00817.83
8.4.130.0040.00518.76
8.4.120.0070.01020.88
8.4.110.0120.00918.66
8.4.100.0130.00818.87
8.4.90.0110.00920.43
8.4.80.0040.00519.14
8.4.70.0050.00319.14
8.4.60.0110.01018.49
8.4.50.0140.00620.45
8.4.40.0030.00723.90
8.4.30.0130.00719.81
8.4.20.0120.00917.52
8.4.10.0070.00417.87
8.3.270.0170.01016.76
8.3.260.0050.00416.66
8.3.250.0090.00917.36
8.3.240.0090.01017.05
8.3.230.0050.00316.99
8.3.220.0120.00719.17
8.3.210.0120.00716.96
8.3.200.0040.00516.68
8.3.190.0150.00417.28
8.3.180.0130.00718.98
8.3.170.0090.00916.96
8.3.160.0140.00417.25
8.3.150.0160.00018.92
8.3.140.0090.00620.80
8.3.130.0040.00418.70
8.3.120.0030.00718.53
8.3.110.0060.00316.63
8.3.100.0070.00718.56
8.3.90.0070.01316.63
8.3.80.0030.00616.63
8.3.70.0040.01118.55
8.3.60.0090.00616.88
8.3.50.0140.00917.39
8.3.40.0110.00418.79
8.3.30.0120.00318.84
8.3.20.0070.00020.36
8.3.10.0050.00321.71
8.3.00.0080.00019.38
8.2.290.0110.00720.59
8.2.280.0100.00918.40
8.2.270.0100.01016.82
8.2.260.0070.00716.49
8.2.250.0070.01118.46
8.2.240.0070.01117.33
8.2.230.0030.00620.94
8.2.220.0040.00424.06
8.2.210.0040.00426.77
8.2.200.0080.00016.88
8.2.190.0120.00617.00
8.2.180.0160.00616.88
8.2.170.0110.00322.96
8.2.160.0130.00020.39
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00321.13
8.2.120.0020.00526.35
8.2.110.0040.00420.37
8.2.100.0040.00817.90
8.2.90.0080.00019.11
8.2.80.0050.00317.97
8.2.70.0040.00717.63
8.2.60.0060.00318.03
8.2.50.0000.00918.10
8.2.40.0050.00220.47
8.2.30.0090.00021.01
8.2.20.0040.00418.08
8.2.10.0040.00418.00
8.2.00.0040.00418.12
8.1.330.0130.00622.12
8.1.320.0100.00918.10
8.1.310.0040.00416.24
8.1.300.0140.00418.51
8.1.290.0090.00030.84
8.1.280.0150.00025.92
8.1.270.0040.00422.05
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00623.83
8.1.230.0040.00817.77
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0060.00317.13
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00820.45
8.1.160.0000.01018.94
8.1.150.0040.00420.68
8.1.140.0030.00519.57
8.1.130.0000.00718.89
8.1.120.0040.00417.44
8.1.110.0040.00417.48
8.1.100.0040.00417.44
8.1.90.0040.00417.44
8.1.80.0030.00317.52
8.1.70.0000.00717.36
8.1.60.0040.00417.48
8.1.50.0040.00417.40
8.1.40.0040.00417.52
8.1.30.0040.00417.67
8.1.20.0040.00417.68
8.1.10.0000.00817.50
8.1.00.0000.00717.50
8.0.300.0070.00018.77
8.0.290.0080.00016.75
8.0.280.0000.00718.33
8.0.270.0070.00017.16
8.0.260.0070.00016.89
8.0.250.0000.00716.99
8.0.240.0000.00716.88
8.0.230.0040.00416.98
8.0.220.0030.00316.80
8.0.210.0000.00716.77
8.0.200.0000.00716.96
8.0.190.0090.00016.94
8.0.180.0030.00716.90
8.0.170.0070.00016.88
8.0.160.0040.00417.00
8.0.150.0030.00617.01
8.0.140.0040.00416.92
8.0.130.0000.00613.43
8.0.120.0070.00016.94
8.0.110.0000.00716.87
8.0.100.0020.00516.91
8.0.90.0050.00316.95
8.0.80.0090.00916.94
8.0.70.0040.00416.85
8.0.60.0000.00816.91
8.0.50.0050.00216.74
8.0.30.0090.00916.96
8.0.20.0120.00717.40
8.0.10.0070.00017.15
8.0.00.0090.00916.89
7.4.330.0030.00315.55
7.4.320.0000.00616.66
7.4.300.0030.00316.61
7.4.290.0060.00616.61
7.4.280.0030.00716.49
7.4.270.0000.00816.62
7.4.260.0000.00613.24
7.4.250.0030.00616.60
7.4.240.0070.00016.62
7.4.230.0000.00816.54
7.4.220.0130.00616.70
7.4.210.0060.00816.53
7.4.200.0060.00316.56
7.4.160.0080.00716.50
7.4.150.0100.01017.40
7.4.140.0120.00617.86
7.4.130.0090.01316.60
7.4.120.0100.01016.48
7.4.110.0090.00916.55
7.4.100.0110.01116.74
7.4.90.0100.00716.54
7.4.80.0120.01019.39
7.4.70.0030.01416.54
7.4.60.0130.00616.41
7.4.50.0090.00516.37
7.4.40.0360.01916.38
7.4.30.0070.01016.49
7.4.10.0110.00315.06
7.4.00.0040.01215.08
7.3.330.0050.00013.39
7.3.320.0000.00613.40
7.3.310.0050.00216.40
7.3.300.0030.00316.39
7.3.290.0030.00316.29
7.3.280.0090.00716.41
7.3.270.0100.00617.40
7.3.260.0140.00516.66
7.3.250.0110.00816.49
7.3.240.0080.01016.44
7.3.230.0120.01216.52
7.3.210.0140.00316.50
7.3.200.0100.01316.31
7.3.190.0070.01016.50
7.3.180.0040.01216.50
7.3.170.0100.00616.59
7.3.160.0080.00816.48
7.3.130.0090.00914.84
7.3.120.0030.01214.88
7.3.110.0110.00714.60
7.3.100.0100.00315.03
7.3.90.0070.00714.92
7.3.80.0000.01414.95
7.3.70.0070.00714.93
7.3.60.0100.00715.00
7.3.50.0000.01014.48
7.3.40.0000.00914.54
7.3.30.0000.01614.78
7.3.20.0040.00716.93
7.3.10.0030.01016.67
7.3.00.0060.00316.70
7.2.330.0130.00316.80
7.2.320.0090.00916.71
7.2.310.0070.01016.69
7.2.300.0090.00916.73
7.2.290.0100.00716.73
7.2.260.0110.00714.86
7.2.250.0100.00314.97
7.2.240.0070.00714.77
7.2.230.0060.00914.96
7.2.220.0110.00315.10
7.2.210.0070.00714.80
7.2.200.0060.00914.96
7.2.190.0070.00714.91
7.2.180.0070.00715.19
7.2.170.0070.00715.14
7.2.160.0030.01415.05
7.2.150.0060.00916.91
7.2.140.0090.00616.97
7.2.130.0150.00316.81
7.2.120.0120.00316.86
7.2.110.0030.00616.91
7.2.100.0060.00316.95
7.2.90.0040.01116.64
7.2.80.0070.00716.83
7.2.70.0030.01016.89
7.2.60.0040.00816.79
7.2.50.0030.01016.98
7.2.40.0030.00716.92
7.2.30.0000.01517.09
7.2.20.0000.00916.93
7.2.10.0100.00316.79
7.2.00.0060.00618.04
7.1.330.0070.00715.87
7.1.320.0120.00615.48
7.1.310.0030.00915.68
7.1.300.0090.00615.44
7.1.290.0070.00315.66
7.1.280.0070.00715.49
7.1.270.0060.00915.88
7.1.260.0030.01015.57
7.1.250.0090.00615.75
7.1.240.0110.00415.76
7.1.230.0110.00315.40
7.1.220.0000.01415.63
7.1.210.0030.00615.59
7.1.200.0100.00315.77
7.1.190.0110.00415.86
7.1.180.0030.00915.77
7.1.170.0080.00615.48
7.1.160.0030.00715.75
7.1.150.0080.00415.62
7.1.140.0030.00915.55
7.1.130.0090.00315.85
7.1.120.0050.00515.74
7.1.110.0090.00315.80
7.1.100.0030.00816.98
7.1.90.0030.00615.90
7.1.80.0060.00615.82
7.1.70.0150.00815.50
7.1.60.0160.00724.49
7.1.50.0140.00924.38
7.1.40.0100.01224.16
7.1.30.0130.01424.22
7.1.20.0130.00824.22
7.1.10.0110.00815.14
7.1.00.0080.00815.23
7.0.330.0100.00315.29
7.0.320.0080.00815.04
7.0.310.0090.00315.54
7.0.300.0040.01115.30
7.0.290.0060.00615.36
7.0.280.0000.00815.36
7.0.270.0040.00715.32
7.0.260.0070.00715.32
7.0.250.0030.00515.31
7.0.240.0030.01015.35
7.0.230.0060.00615.55
7.0.220.0060.00615.38
7.0.210.0060.01015.27
7.0.200.0140.00615.12
7.0.190.0100.00715.14
7.0.180.0040.01215.03
7.0.170.0070.00914.95
7.0.160.0100.00814.75
7.0.150.0100.01015.05
7.0.140.0100.00514.92
7.0.130.0070.00915.05
7.0.120.0080.00914.90
7.0.110.0080.00914.87
7.0.100.0110.00514.93
7.0.90.0090.00814.94
7.0.80.0110.00615.01
7.0.70.0110.00414.87
7.0.60.0080.00614.90
7.0.50.0110.00515.04
7.0.40.0060.00914.08
7.0.30.0160.00314.08
7.0.20.0090.00813.99
7.0.10.0110.00314.16
7.0.00.0040.00914.08
5.6.400.0030.00714.23
5.6.390.0100.00714.63
5.6.380.0030.01414.42
5.6.370.0070.00714.34
5.6.360.0060.00614.33
5.6.350.0100.00014.64
5.6.340.0060.00314.71
5.6.330.0070.00314.15
5.6.320.0030.01414.51
5.6.310.0030.01014.26
5.6.300.0070.01014.76
5.6.290.0120.00614.49
5.6.280.0100.00614.18
5.6.270.0000.00914.48
5.6.260.0110.00014.23
5.6.250.0060.00314.44
5.6.240.0000.01414.68
5.6.230.0040.00714.46
5.6.220.0060.00714.59
5.6.210.0060.00914.51
5.6.200.0000.01014.23
5.6.190.0140.00014.44
5.6.180.0110.00314.50
5.6.170.0070.00714.31
5.6.160.0100.00314.23
5.6.150.0030.01614.50
5.6.140.0030.01614.23
5.6.130.0030.00714.21
5.6.120.0090.00614.45
5.6.110.0080.00414.58
5.6.100.0030.00614.25
5.6.90.0070.00714.45
5.6.80.0090.00614.11
5.6.70.0110.00614.07
5.6.60.0130.00314.34
5.6.50.0070.00413.96
5.6.40.0000.01314.38
5.6.30.0030.00714.21
5.6.20.0000.00914.14
5.6.10.0060.00614.39
5.6.00.0090.00314.23

preferences:
36.02 ms | 403 KiB | 5 Q