3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { } class UserProvider { public static function getServices() { return ['user']; } public static function user() { return new User(); } } $services = array_map(function($factoryName) { return [UserProvider::class, $factoryName](); }, UserProvider::getServices()); var_dump($services);

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.130.0040.00416.36
8.3.120.0060.01218.85
8.3.110.0100.00720.94
8.3.100.0000.00924.06
8.3.90.0080.00026.77
8.3.80.0000.01018.18
8.3.70.0060.00916.50
8.3.60.0070.01418.30
8.3.50.0140.00321.08
8.3.40.0090.00618.55
8.3.30.0110.00418.71
8.3.20.0040.00418.60
8.3.10.0080.00020.02
8.3.00.0040.00417.77
8.2.250.0000.00816.79
8.2.240.0080.00016.92
8.2.230.0040.00422.58
8.2.220.0130.00637.54
8.2.210.0040.00426.77
8.2.200.0040.00416.38
8.2.190.0120.00416.60
8.2.180.0030.01618.16
8.2.170.0100.00722.96
8.2.160.0120.00419.20
8.2.150.0050.00224.18
8.2.140.0050.00324.66
8.2.130.0040.00420.90
8.2.120.0040.00426.35
8.2.110.0070.00420.77
8.2.100.0040.00717.93
8.2.90.0000.00819.07
8.2.80.0000.00817.97
8.2.70.0000.00817.25
8.2.60.0040.00418.04
8.2.50.0080.00018.10
8.2.40.0080.00022.39
8.2.30.0040.00420.51
8.2.20.0040.00417.68
8.2.10.0040.00418.09
8.2.00.0070.00318.07
8.1.300.0110.00718.62
8.1.290.0060.00330.84
8.1.280.0120.00625.92
8.1.270.0070.00020.43
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0030.00722.10
8.1.230.0030.00817.45
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.36
8.1.190.0030.00617.35
8.1.180.0060.00318.10
8.1.170.0050.00319.02
8.1.160.0000.00719.02
8.1.150.0040.00418.81
8.1.140.0070.00019.54
8.1.130.0000.00817.70
8.1.120.0000.00717.36
8.1.110.0000.00717.35
8.1.100.0000.00717.42
8.1.90.0000.00717.44
8.1.80.0050.00317.49
8.1.70.0030.00517.37
8.1.60.0000.00717.60
8.1.50.0030.00517.45
8.1.40.0000.00817.51
8.1.30.0050.00317.57
8.1.20.0060.00317.66
8.1.10.0020.00517.62
8.1.00.0000.01117.36
8.0.300.0000.00718.77
8.0.290.0030.00516.75
8.0.280.0040.00418.37
8.0.270.0000.00816.75
8.0.260.0030.00317.19
8.0.250.0030.00316.86
8.0.240.0070.00016.90
8.0.230.0000.00716.92
8.0.220.0040.00416.79
8.0.210.0000.00716.85
8.0.200.0000.00616.89
8.0.190.0000.00816.93
8.0.180.0000.00716.97
8.0.170.0000.00716.84
8.0.160.0040.00416.90
8.0.150.0030.00416.78
8.0.140.0040.00416.76
8.0.130.0030.00313.31
8.0.120.0070.00016.78
8.0.110.0000.00816.88
8.0.100.0040.00416.90
8.0.90.0000.00716.93
8.0.80.0090.00616.81
8.0.70.0080.00016.88
8.0.60.0020.00516.94
8.0.50.0030.00616.76
8.0.30.0080.00816.96
8.0.20.0100.00817.40
8.0.10.0000.00716.96
8.0.00.0100.00816.78
7.4.330.0060.00015.08
7.4.320.0030.00316.40
7.4.300.0040.00416.52
7.4.290.0000.00816.50
7.4.280.0000.00716.61
7.4.270.0070.00016.50
7.4.260.0030.00316.64
7.4.250.0050.00216.46
7.4.240.0070.00016.58
7.4.230.0070.00016.43
7.4.220.0030.01316.44
7.4.210.0090.00616.57
7.4.200.0040.00416.43
7.4.160.0080.00816.59
7.4.150.0120.00617.40
7.4.140.0060.01317.86
7.4.130.0080.01116.65
7.4.120.0110.00616.62
7.4.110.0090.00916.54
7.4.100.0090.00916.68
7.4.90.0040.01416.44
7.4.80.0070.01019.39
7.4.70.0070.01016.31
7.4.60.0150.00316.61
7.4.50.0090.00616.32
7.4.40.0080.00816.49
7.4.30.0030.01316.57
7.4.00.0080.00914.80
7.3.330.0050.00013.24
7.3.320.0030.00313.29
7.3.310.0000.00716.09
7.3.300.0030.00316.16
7.3.290.0040.00416.20
7.3.280.0050.01216.29
7.3.270.0030.01417.40
7.3.260.0140.00516.20
7.3.250.0070.01116.46
7.3.240.0110.00816.27
7.3.230.0080.01016.39
7.3.210.0130.01316.45
7.3.200.0070.01019.39
7.3.190.0030.01216.28
7.3.180.0070.01016.24
7.3.170.0090.00616.43
7.3.160.0060.00916.42
7.3.120.0110.00614.68
7.3.110.0080.00914.88
7.3.100.0060.00614.77
7.3.90.0120.00314.61
7.3.80.0080.00814.42
7.3.70.0010.00914.46
7.3.60.0050.01014.80
7.3.50.0030.01214.79
7.3.40.0070.00714.64
7.3.30.0060.00614.75
7.3.20.0090.00516.68
7.3.10.0070.00716.65
7.3.00.0070.00316.34
7.2.330.0080.00816.29
7.2.320.0150.00916.84
7.2.310.0070.01016.76
7.2.300.0070.01016.72
7.2.290.0000.01816.64
7.2.250.0070.01014.86
7.2.240.0070.01014.88
7.2.230.0090.00615.08
7.2.220.0050.01014.91
7.2.210.0050.01014.93
7.2.200.0020.01314.90
7.2.190.0060.00814.82
7.2.180.0060.01014.99
7.2.170.0080.00514.97
7.2.60.0140.00516.80
7.2.00.0000.01519.44
7.1.330.0070.00615.60
7.1.320.0020.01015.92
7.1.310.0060.00815.72
7.1.300.0070.00515.63
7.1.290.0070.01015.70
7.1.280.0020.01115.67
7.1.270.0020.01415.85
7.1.260.0070.00715.69
7.1.200.0120.00315.71
7.1.100.0060.00617.93
7.1.70.0000.01517.12
7.1.60.0140.01019.27
7.1.50.0040.00716.96
7.1.00.0100.06722.57
7.0.200.0620.00714.69
7.0.60.0070.04719.93
7.0.50.0270.06320.28
7.0.40.0230.06720.34
7.0.30.0100.07020.32
7.0.20.0330.06720.40
7.0.10.0030.06720.33
7.0.00.0130.07320.35
5.6.280.0100.06721.08
5.6.210.0200.06020.51
5.6.200.0330.06021.04
5.6.190.0200.06021.13
5.6.180.0070.06321.09
5.6.170.0270.06321.11
5.6.160.0300.05721.14
5.6.150.0130.06721.03
5.6.140.0200.05321.16
5.6.130.0270.07721.13
5.6.120.0200.06021.07
5.6.110.0100.08021.09
5.6.100.0330.04321.13
5.6.90.0200.05321.18
5.6.80.0170.05320.44
5.6.70.0100.05720.41
5.6.60.0270.06020.51
5.6.50.0200.05320.48
5.6.40.0100.06320.50
5.6.30.0230.04720.46
5.6.20.0070.06320.52
5.6.10.0230.05720.36
5.6.00.0330.04720.42
5.5.350.3770.04020.37
5.5.340.0270.08020.89
5.5.330.0330.04720.86
5.5.320.0070.06021.02
5.5.310.0230.05320.86
5.5.300.0130.06020.89
5.5.290.0130.06020.85
5.5.280.0270.06021.02
5.5.270.0070.06720.88
5.5.260.0130.06720.93
5.5.250.0100.06720.51
5.5.240.0130.06720.23
5.5.230.0200.05020.18
5.5.220.0130.05720.23
5.5.210.0330.04020.23
5.5.200.0030.06320.25
5.5.190.0230.04720.37
5.5.180.0100.06020.24
5.5.160.0170.06020.39
5.5.150.0300.05020.24
5.5.140.0270.05320.14
5.5.130.0400.04320.39
5.5.120.0330.05020.39
5.5.110.0100.05720.18
5.5.100.0200.05720.09
5.5.90.0330.04720.13
5.5.80.0270.05020.13
5.5.70.0270.05020.03
5.5.60.0100.05720.11
5.5.50.0100.05720.14
5.5.40.0170.04720.11
5.5.30.0170.05020.14
5.5.20.0170.05320.27
5.5.10.0130.05719.94
5.5.00.0170.05320.13
5.4.450.0130.05719.54
5.4.440.0170.07719.39
5.4.430.0200.05019.42
5.4.420.0270.04319.52
5.4.410.0130.05319.30
5.4.400.0130.05318.96
5.4.390.0130.05319.12
5.4.380.0100.05319.23
5.4.370.0230.05019.21
5.4.360.0300.05019.10
5.4.350.0370.03318.99
5.4.340.0170.05319.21
5.4.320.0370.04319.14
5.4.310.0270.06719.19
5.4.300.0200.06018.99
5.4.290.0230.05319.14
5.4.280.0370.05019.22
5.4.270.0230.05018.97
5.4.260.0230.05019.12
5.4.250.0430.03319.02
5.4.240.0230.05719.07
5.4.230.0300.04719.33
5.4.220.0170.05719.09
5.4.210.0230.05018.98
5.4.200.0130.05019.10
5.4.190.0200.06719.15
5.4.180.0200.04318.95
5.4.170.0170.05319.15
5.4.160.0230.04318.97
5.4.150.0270.06718.94
5.4.140.0170.05016.29
5.4.130.0200.04316.41
5.4.120.0230.04316.40
5.4.110.0130.05716.54
5.4.100.0270.04316.57
5.4.90.0170.04316.57
5.4.80.0400.05016.51
5.4.70.0100.05316.53
5.4.60.0030.07016.37
5.4.50.0070.05316.52
5.4.40.0530.04316.49
5.4.30.0330.06316.46
5.4.20.0200.05716.41
5.4.10.0230.05716.49
5.4.00.0170.05015.81
5.3.290.0300.05014.77
5.3.280.0370.04014.57
5.3.270.0130.05314.61
5.3.260.0230.05014.59
5.3.250.0170.05314.57
5.3.240.0170.06714.60
5.3.230.0200.05014.63
5.3.220.0230.04714.59
5.3.210.0300.04014.55
5.3.200.0270.06314.52
5.3.190.0100.05314.60
5.3.180.0300.05014.54
5.3.170.0270.07014.78
5.3.160.0100.05314.61
5.3.150.0200.04714.55
5.3.140.0170.04714.53
5.3.130.0230.06014.62
5.3.120.0230.06014.57
5.3.110.0230.06014.50
5.3.100.0070.05314.03
5.3.90.0230.07314.23
5.3.80.0200.06014.00
5.3.70.0100.05714.12
5.3.60.0130.04713.99
5.3.50.0230.04313.95
5.3.40.0130.04713.80
5.3.30.0330.03313.89
5.3.20.0330.05013.71
5.3.10.0300.06713.66
5.3.00.0200.04313.60
5.2.170.0230.05711.14
5.2.160.0200.06011.00
5.2.150.0070.04311.25
5.2.140.0330.03311.14
5.2.130.0170.05311.08
5.2.120.0400.03711.15
5.2.110.0230.03011.16
5.2.100.0100.03711.09
5.2.90.0130.04011.31
5.2.80.0170.04311.09
5.2.70.0170.04311.09
5.2.60.0270.03311.04
5.2.50.0130.03711.06
5.2.40.0170.04311.01
5.2.30.0170.05011.07
5.2.20.0230.05710.96
5.2.10.0170.03311.07
5.2.00.0200.03310.76
5.1.60.0170.0279.98
5.1.50.0100.0439.99
5.1.40.0030.0409.81
5.1.30.0130.04010.23
5.1.20.0070.04010.35
5.1.10.0000.05010.01
5.1.00.0100.03710.06
5.0.50.0130.0308.54
5.0.40.0030.0308.62
5.0.30.0100.0408.44
5.0.20.0100.0238.21
5.0.10.0030.0308.15
5.0.00.0070.0408.25
4.4.90.0030.0275.80
4.4.80.0130.0175.80
4.4.70.0070.0205.87
4.4.60.0030.0235.77
4.4.50.0030.0205.82
4.4.40.0000.0405.77
4.4.30.0000.0275.77
4.4.20.0000.0235.92
4.4.10.0170.0135.86
4.4.00.0000.0375.82
4.3.110.0030.0235.75
4.3.100.0030.0205.71
4.3.90.0070.0205.72
4.3.80.0000.0405.75
4.3.70.0100.0175.72
4.3.60.0030.0205.78
4.3.50.0030.0205.68
4.3.40.0070.0335.69
4.3.30.0070.0205.67
4.3.20.0030.0235.67
4.3.10.0070.0175.67
4.3.00.0070.0175.67

preferences:
27.72 ms | 403 KiB | 5 Q