3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bind($fn /* args... */) { $outer_args = func_get_args(); array_shift($outer_args); return function(/* args... */) use ($fn, $outer_args) { $inner_args = func_get_args(); return call_user_func_array($fn, array_merge($outer_args, $inner_args)); }; } $pkgs = array( 'pkg1', 'pkg2', 'pkg3' ); var_dump(array_map(bind('sprintf', 'pear install --alldeps %s %s', 'mypkg'), $pkgs));

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.0070.00718.31
8.3.50.0130.00521.20
8.3.40.0040.01118.84
8.3.30.0050.00818.78
8.3.20.0080.00018.77
8.3.10.0000.00921.16
8.3.00.0040.00419.68
8.2.180.0120.00616.50
8.2.170.0040.01222.96
8.2.160.0100.00320.53
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00321.00
8.2.110.0100.00020.39
8.2.100.0090.00317.59
8.2.90.0040.00419.21
8.2.80.0040.00419.41
8.2.70.0060.00317.50
8.2.60.0060.00317.93
8.2.50.0060.00618.07
8.2.40.0040.00417.97
8.2.30.0040.00421.18
8.2.20.0040.00417.66
8.2.10.0080.00017.81
8.2.00.0000.01017.63
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0110.00426.35
8.1.250.0000.00728.09
8.1.240.0140.00020.49
8.1.230.0070.00321.10
8.1.220.0060.00318.77
8.1.210.0040.00418.89
8.1.200.0040.00417.25
8.1.190.0030.00617.63
8.1.180.0050.00218.10
8.1.170.0050.00320.36
8.1.160.0080.00018.77
8.1.150.0070.00018.64
8.1.140.0040.00417.37
8.1.130.0000.00717.88
8.1.120.0030.00317.52
8.1.110.0040.00417.50
8.1.100.0040.00417.46
8.1.90.0020.00517.33
8.1.80.0000.00717.45
8.1.70.0000.00717.49
8.1.60.0040.00417.52
8.1.50.0060.00317.38
8.1.40.0000.00817.41
8.1.30.0040.00417.62
8.1.20.0000.00817.57
8.1.10.0080.00017.62
8.1.00.0040.00417.34
8.0.300.0070.00019.88
8.0.290.0040.00417.05
8.0.280.0000.00718.50
8.0.270.0030.00317.18
8.0.260.0070.00016.81
8.0.250.0040.00416.94
8.0.240.0030.00616.90
8.0.230.0030.00316.95
8.0.220.0040.00416.99
8.0.210.0040.00416.93
8.0.200.0030.00316.99
8.0.190.0000.01116.96
8.0.180.0050.00216.89
8.0.170.0000.00716.87
8.0.160.0000.00716.75
8.0.150.0000.00716.79
8.0.140.0070.00016.82
8.0.130.0030.00313.32
8.0.120.0030.00616.72
8.0.110.0070.00016.94
8.0.100.0040.00416.75
8.0.90.0000.00716.92
8.0.80.0110.01116.83
8.0.70.0030.00516.87
8.0.60.0020.00516.75
8.0.50.0040.00416.91
8.0.30.0110.00717.02
8.0.20.0070.01017.40
8.0.10.0000.00716.91
8.0.00.0070.01116.73
7.4.330.0000.00516.67
7.4.320.0030.00316.49
7.4.300.0000.00616.51
7.4.290.0000.00716.64
7.4.280.0000.00716.56
7.4.270.0040.00416.46
7.4.260.0030.00313.30
7.4.250.0000.00816.38
7.4.240.0040.00316.52
7.4.230.0000.00716.71
7.4.220.0030.01316.40
7.4.210.0080.00816.54
7.4.200.0000.00816.60
7.4.190.0070.00016.44
7.4.160.0120.00916.54
7.4.150.0150.00317.40
7.4.140.0160.00517.86
7.4.130.0170.00316.52
7.4.120.0110.00716.44
7.4.110.0130.00316.55
7.4.100.0030.01716.50
7.4.90.0090.00916.51
7.4.80.0060.01119.39
7.4.70.0070.01016.54
7.4.60.0080.00816.48
7.4.50.0060.00316.36
7.4.40.0030.01322.77
7.4.30.0060.00916.64
7.4.00.0050.01214.86
7.3.330.0030.00313.28
7.3.320.0050.00013.11
7.3.310.0000.00716.19
7.3.300.0000.00616.21
7.3.290.0030.01016.24
7.3.280.0090.00816.29
7.3.270.0090.00917.40
7.3.260.0090.01218.24
7.3.250.0110.00616.45
7.3.240.0100.00716.28
7.3.230.0070.01016.39
7.3.210.0070.01016.44
7.3.200.0060.01119.39
7.3.190.0160.00616.32
7.3.180.0090.00616.30
7.3.170.0130.00316.39
7.3.160.0040.01216.39
7.3.120.0060.01214.91
7.3.110.0120.00614.89
7.3.100.0130.00314.68
7.3.90.0120.00614.83
7.3.80.0140.00314.92
7.3.70.0000.01614.65
7.3.60.0070.00314.84
7.3.50.0040.00814.36
7.3.40.0080.00814.96
7.3.30.0110.00414.71
7.3.20.0030.00916.63
7.3.10.0080.00116.60
7.3.00.0050.00916.63
7.2.330.0150.00716.62
7.2.320.0090.00916.61
7.2.310.0170.00716.61
7.2.300.0140.00916.57
7.2.290.0040.01116.80
7.2.250.0100.01014.73
7.2.240.0070.01015.14
7.2.230.0030.01614.96
7.2.220.0040.01115.12
7.2.210.0110.00414.99
7.2.200.0000.01514.68
7.2.190.0060.00915.05
7.2.180.0030.01214.88
7.2.170.0000.01415.05
7.2.130.0060.00616.89
7.2.120.0070.00716.82
7.2.110.0100.00016.88
7.2.100.0030.01016.82
7.2.90.0070.00717.02
7.2.80.0080.00816.95
7.2.70.0070.00717.04
7.2.60.0070.00716.89
7.2.50.0140.00016.69
7.2.40.0090.00616.85
7.2.30.0040.00716.95
7.2.20.0060.00316.81
7.2.10.0070.01116.85
7.2.00.0050.00818.07
7.1.330.0000.01515.67
7.1.320.0090.00315.74
7.1.310.0070.01115.82
7.1.300.0040.00715.51
7.1.290.0070.00715.51
7.1.280.0070.00315.99
7.1.270.0060.00915.78
7.1.260.0030.00915.91
7.1.250.0060.00915.79
7.1.100.0000.01518.33
7.1.70.0040.00417.31
7.1.60.0100.00317.24
7.1.50.0070.00316.96
7.1.40.0110.00316.65
7.1.30.0050.00516.56
7.1.20.0070.01116.64
7.1.10.0040.01116.86
7.1.00.0030.00816.82
7.0.200.0000.01216.73
7.0.190.0000.00716.61
7.0.180.0040.00716.28
7.0.170.0000.00816.30
7.0.160.0000.00816.38
7.0.150.0000.00816.30
7.0.140.0040.00416.48
7.0.130.0040.00716.27
7.0.120.0000.01116.41
7.0.110.0080.00016.50
7.0.100.0040.00416.47
7.0.90.0040.00416.50
7.0.80.0000.00916.51
7.0.70.0090.00316.41
7.0.60.0030.00616.08
7.0.50.0030.00616.53
7.0.40.0050.00215.14
7.0.30.0000.01015.14
7.0.20.0000.01115.14
7.0.10.0060.00315.14
7.0.00.0060.00315.14
5.6.300.0030.04120.66
5.6.290.0030.04220.85
5.6.280.0100.04120.79
5.6.270.0000.05620.88
5.6.260.0030.04120.89
5.6.250.0070.03720.90
5.6.240.0030.04620.97
5.6.230.0000.04520.93
5.6.220.0070.03721.04
5.6.210.0030.04420.96
5.6.200.0100.04821.02
5.6.190.0030.04421.05
5.6.180.0000.04220.97
5.6.170.0200.03320.99
5.6.160.0130.05320.96
5.6.150.0070.04321.04
5.6.140.0030.04420.75
5.6.130.0030.04920.80
5.6.120.0100.04120.75
5.6.110.0030.04420.75
5.6.100.0030.04520.82
5.6.90.0030.04320.84
5.6.80.0030.04420.38
5.6.70.0100.03320.43
5.6.60.0030.04320.27
5.6.50.0000.04420.36
5.6.40.0030.05020.17
5.6.30.0070.03720.19
5.6.20.0030.04020.20
5.6.10.0060.03820.33
5.6.00.0060.04220.32
5.5.380.0070.03417.54
5.5.370.0000.04117.54
5.5.360.0030.04117.54
5.5.350.0000.04317.54
5.5.340.0000.04218.03
5.5.330.0030.04118.03
5.5.320.0230.03318.06
5.5.310.0030.04418.03
5.5.300.0000.04717.74
5.5.290.0000.04418.01
5.5.280.0000.04918.09
5.5.270.0000.04918.12
5.5.260.0030.05118.08
5.5.250.0070.04117.89
5.5.240.0030.04717.39
5.5.230.0090.03717.46
5.5.220.0060.03617.40
5.5.210.0100.03517.46
5.5.200.0070.03517.45
5.5.190.0070.03517.44
5.5.180.0070.04517.09
5.5.160.0040.03917.48
5.5.150.0000.03917.41
5.5.140.0000.04117.38
5.5.130.0000.04717.44
5.5.120.0030.04817.44
5.5.110.0070.03617.20
5.5.100.0000.04917.43
5.5.90.0000.04417.34
5.5.80.0030.03817.34
5.5.70.0040.03617.42
5.5.60.0030.03616.95
5.5.50.0030.04017.34
5.5.40.0000.04217.25
5.5.30.0030.03917.24
5.5.20.0030.04117.27
5.5.10.0000.04417.27
5.5.00.0030.06017.32
5.4.450.0090.04419.33
5.4.440.0030.04019.36
5.4.430.0000.04619.19
5.4.420.0060.04119.19
5.4.410.0000.04519.21
5.4.400.0000.04719.12
5.4.390.0030.04118.99
5.4.380.0030.04219.11
5.4.370.0030.04019.11
5.4.360.0040.04319.09
5.4.350.0030.03918.86
5.4.340.0030.04219.09
5.4.320.0030.04219.12
5.4.310.0110.03919.02
5.4.300.0070.04718.98
5.4.290.0110.04618.86
5.4.280.0030.03719.01
5.4.270.0030.03918.83
5.4.260.0000.04018.83
5.4.250.0030.04018.90
5.4.240.0000.04618.83
5.4.230.0030.03919.08
5.4.220.0070.03419.01
5.4.210.0090.03119.11
5.4.200.0000.03919.02
5.4.190.0000.03918.85
5.4.180.0040.03619.00
5.4.170.0070.09418.99
5.4.160.0030.03718.81
5.4.150.0000.05018.84
5.4.140.0000.04116.49
5.4.130.0040.03916.67
5.4.120.0000.03916.54
5.4.110.0000.04216.46
5.4.100.0030.03716.71
5.4.90.0090.03816.69
5.4.80.0000.04816.57
5.4.70.0000.03716.55
5.4.60.0100.04816.63
5.4.50.0030.03416.66
5.4.40.0000.03916.43
5.4.30.0030.04016.48
5.4.20.0090.03116.48
5.4.10.0030.05916.59
5.4.00.0030.03315.85
5.3.290.0100.03615.14
5.3.280.0000.04315.14
5.3.270.0000.04815.14
5.3.260.0000.04115.14
5.3.250.0170.03715.14
5.3.240.0030.04215.14
5.3.230.0000.04015.14
5.3.220.0000.04315.14
5.3.210.0000.04615.14
5.3.200.0000.04315.14
5.3.190.0070.03415.14
5.3.180.0040.03515.14
5.3.170.0000.04015.14
5.3.160.0130.02715.14
5.3.150.0100.03315.14
5.3.140.0030.03915.14
5.3.130.0070.03215.14
5.3.120.0000.04315.14
5.3.110.0030.04115.14
5.3.100.0000.04015.14
5.3.90.0030.03615.14
5.3.80.0030.03615.14
5.3.70.0030.03315.14
5.3.60.0070.02915.14
5.3.50.0070.03315.14
5.3.40.0000.04515.14
5.3.30.0030.03315.14
5.3.20.0030.03215.14
5.3.10.0000.03815.14
5.3.00.0000.04015.14
5.2.170.0000.03015.14
5.2.160.0070.03015.14
5.2.150.0000.03315.14
5.2.140.0000.03315.14
5.2.130.0000.03415.14
5.2.120.0030.03115.14
5.2.110.0000.03115.14
5.2.100.0030.02915.14
5.2.90.0040.02815.14
5.2.80.0000.04315.14
5.2.70.0000.03415.14
5.2.60.0000.03115.14
5.2.50.0000.03315.14
5.2.40.0030.02615.14
5.2.30.0200.02415.14
5.2.20.0030.02915.14
5.2.10.0030.02515.14
5.2.00.0070.03315.14
5.1.60.0060.02515.14
5.1.50.0030.02215.14
5.1.40.0030.02215.14
5.1.30.0090.01815.14
5.1.20.0130.03215.14
5.1.10.0070.02615.14
5.1.00.0000.03715.14
5.0.50.0030.02215.14
5.0.40.0030.02415.14
5.0.30.0000.03315.14
5.0.20.0030.02315.14
5.0.10.0000.03015.14
5.0.00.0070.04115.14
4.4.90.0030.01715.14
4.4.80.0040.01415.14
4.4.70.0000.01915.14
4.4.60.0030.01515.14
4.4.50.0030.01515.14
4.4.40.0000.02715.14
4.4.30.0030.01515.14
4.4.20.0000.02115.14
4.4.10.0000.01815.14
4.4.00.0000.02715.14
4.3.110.0030.01915.14
4.3.100.0000.01615.14
4.3.90.0060.02515.14
4.3.80.0030.02415.14
4.3.70.0000.01615.14
4.3.60.0000.01715.14
4.3.50.0000.01715.14
4.3.40.0030.02515.14
4.3.30.0000.01915.14
4.3.20.0000.01915.14
4.3.10.0060.01215.14
4.3.00.0030.01915.14

preferences:
53.23 ms | 401 KiB | 5 Q