3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function b() { } public static function c() { } } class B { public function __invoke() { } } function a (callable $a) { } a('a'); a(array('A', 'b')); a(array(new A, 'c')); a(new B); a(function(){});

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.01016.47
8.3.50.0110.00716.46
8.3.40.0090.00618.71
8.3.30.0160.00318.77
8.3.20.0080.00018.75
8.3.10.0040.00418.77
8.3.00.0080.00019.25
8.2.180.0120.00416.50
8.2.170.0110.00422.96
8.2.160.0160.00018.74
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.48
8.2.110.0060.00622.29
8.2.100.0090.00317.78
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0030.00717.80
8.2.50.0050.00218.04
8.2.40.0040.00419.35
8.2.30.0000.00817.69
8.2.20.0030.00617.69
8.2.10.0000.00717.76
8.2.00.0080.00017.69
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0000.00923.92
8.1.230.0150.00017.71
8.1.220.0090.00017.79
8.1.210.0060.00318.77
8.1.200.0060.00317.22
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0090.00017.62
8.1.160.0030.00318.84
8.1.150.0040.00418.62
8.1.140.0040.00417.29
8.1.130.0080.00019.14
8.1.120.0000.00717.46
8.1.110.0000.00717.36
8.1.100.0000.00717.43
8.1.90.0050.00317.31
8.1.80.0030.00317.31
8.1.70.0000.00717.28
8.1.60.0040.00417.54
8.1.50.0040.00417.33
8.1.40.0030.00517.35
8.1.30.0070.00317.46
8.1.20.0030.00617.59
8.1.10.0040.00417.50
8.1.00.0000.00717.42
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0050.00218.48
8.0.270.0000.00717.13
8.0.260.0030.00316.79
8.0.250.0050.00316.93
8.0.240.0000.00716.95
8.0.230.0030.00316.89
8.0.220.0060.00316.76
8.0.210.0000.00716.79
8.0.200.0030.00316.87
8.0.190.0040.00416.83
8.0.180.0040.00416.82
8.0.170.0030.00516.95
8.0.160.0040.00416.97
8.0.150.0040.00416.86
8.0.140.0030.00616.89
8.0.130.0000.00613.36
8.0.120.0000.00916.88
8.0.110.0040.00416.75
8.0.100.0040.00416.74
8.0.90.0080.00017.00
8.0.80.0130.00316.80
8.0.70.0040.00316.93
8.0.60.0080.00016.83
8.0.50.0000.00816.78
8.0.30.0110.00716.88
8.0.20.0110.00716.87
8.0.10.0000.00717.00
8.0.00.0050.01316.69
7.4.330.0000.00612.84
7.4.320.0070.00016.40
7.4.300.0000.00616.33
7.4.290.0030.00316.43
7.4.280.0040.00416.43
7.4.270.0040.00316.38
7.4.260.0060.00013.15
7.4.250.0040.00716.48
7.4.240.0030.00316.42
7.4.230.0000.00816.51
7.4.220.0110.00816.59
7.4.210.0060.01316.50
7.4.200.0050.00216.29
7.4.190.0000.00816.70
7.4.160.0090.00916.70
7.4.150.0090.00916.47
7.4.140.0090.00917.86
7.4.130.0120.00916.59
7.4.120.0000.01816.45
7.4.110.0140.00316.36
7.4.100.0090.00916.52
7.4.90.0120.01216.43
7.4.80.0100.00719.39
7.4.70.0030.01916.48
7.4.60.0040.01216.51
7.4.50.0050.00016.33
7.4.40.0070.00716.35
7.4.30.0170.00516.53
7.4.00.0060.00914.90
7.3.330.0000.00613.02
7.3.320.0000.00513.07
7.3.310.0040.00416.07
7.3.300.0000.00916.23
7.3.290.0090.00516.22
7.3.280.0090.00916.16
7.3.270.0060.01016.28
7.3.260.0070.01016.14
7.3.240.0100.00716.32
7.3.230.0190.00316.46
7.3.210.0100.00716.30
7.3.200.0060.01016.55
7.3.190.0120.00316.37
7.3.180.0110.00616.09
7.3.170.0000.02316.38
7.3.160.0070.01016.30
7.3.120.0000.01114.41
7.3.00.0100.00316.65
7.2.330.0110.00716.12
7.2.320.0170.00316.41
7.2.310.0060.01216.50
7.2.300.0100.01316.61
7.2.290.0160.00816.70
7.2.130.0030.01016.75
7.2.120.0100.00316.70
7.2.110.0080.00516.63
7.2.100.0000.00916.81
7.2.90.0040.00816.86
7.2.80.0070.00416.60
7.2.70.0040.00716.74
7.2.60.0030.00616.64
7.2.50.0000.01016.83
7.2.40.0000.01216.83
7.2.30.0060.00316.58
7.2.20.0030.01316.69
7.2.10.0030.01216.91
7.2.00.0020.01017.90
7.1.250.0070.00015.52
7.1.240.0070.00315.68
7.1.230.0000.01015.69
7.1.220.0040.00815.78
7.1.210.0000.00915.49
7.1.200.0000.01215.41
7.1.190.0110.00015.69
7.1.180.0030.00615.63
7.1.170.0080.00315.61
7.1.160.0050.00515.66
7.1.150.0030.00715.46
7.1.140.0070.00415.81
7.1.130.0070.00415.75
7.1.120.0070.00315.77
7.1.110.0070.00315.69
7.1.100.0030.01116.97
7.1.90.0030.01015.84
7.1.80.0060.00315.72
7.1.70.0020.00716.42
7.1.60.0090.00917.41
7.1.50.0090.00716.35
7.1.40.0000.00815.74
7.1.30.0120.00015.52
7.1.20.0000.00815.70
7.1.10.0000.01415.70
7.1.00.0030.02118.98
7.0.330.0000.01015.25
7.0.320.0070.00715.50
7.0.310.0030.00715.29
7.0.300.0040.00415.14
7.0.290.0060.00315.37
7.0.280.0040.00915.19
7.0.270.0040.00715.30
7.0.260.0080.00315.29
7.0.250.0000.01115.42
7.0.240.0030.00715.43
7.0.230.0000.01015.37
7.0.220.0060.00615.19
7.0.210.0130.00015.24
7.0.200.0040.00616.13
7.0.190.0090.00315.41
7.0.180.0100.00015.32
7.0.170.0030.00715.30
7.0.160.0080.00315.46
7.0.150.0030.00915.16
7.0.140.0080.03718.51
7.0.130.0030.01015.20
7.0.120.0000.04018.75
7.0.110.0040.00315.40
7.0.100.0090.00315.31
7.0.90.0040.00815.38
7.0.80.0070.01015.35
7.0.70.0090.00615.34
7.0.60.0090.04317.71
7.0.50.0070.03016.57
7.0.40.0030.02915.63
7.0.30.0070.03915.51
7.0.20.0090.04515.57
7.0.10.0030.04515.61
7.0.00.0030.04615.54
5.6.380.0000.01114.31
5.6.370.0030.00814.51
5.6.360.0040.00714.26
5.6.350.0080.00414.12
5.6.340.0040.00814.40
5.6.330.0080.00414.13
5.6.320.0030.00614.57
5.6.310.0030.00914.31
5.6.300.0000.01014.17
5.6.290.0100.00314.18
5.6.280.0080.03717.43
5.6.270.0140.00014.63
5.6.260.0080.00314.32
5.6.250.0070.00414.17
5.6.240.0070.00714.13
5.6.230.0090.00314.10
5.6.220.0030.01314.26
5.6.210.0050.02317.40
5.6.200.0050.04516.21
5.6.190.0050.04416.22
5.6.180.0070.02316.19
5.6.170.0070.03816.15
5.6.160.0100.03916.24
5.6.150.0020.04616.19
5.6.140.0040.02216.26
5.6.130.0080.04616.13
5.6.120.0030.04016.20
5.6.110.0050.02716.30
5.6.100.0050.04316.18
5.6.90.0050.02516.25
5.6.80.0070.02815.93
5.6.70.0070.03515.79
5.6.60.0050.03915.84
5.6.50.0030.04015.77
5.6.40.0050.02715.87
5.6.30.0050.03115.79
5.6.20.0140.02015.74
5.6.10.0040.03115.87
5.6.00.0040.02515.96
5.5.380.0030.00611.26
5.5.370.0000.00811.20
5.5.360.0030.00611.18
5.5.350.0100.02315.79
5.5.340.0060.02314.60
5.5.330.0080.03614.58
5.5.320.0080.02214.58
5.5.310.0030.04014.59
5.5.300.0100.03814.56
5.5.290.0060.03614.63
5.5.280.0050.03514.68
5.5.270.0040.03314.58
5.5.260.0070.03014.66
5.5.250.0070.04214.52
5.5.240.0070.04014.27
5.5.230.0040.04214.29
5.5.220.0050.03714.25
5.5.210.0070.04014.32
5.5.200.0050.04014.32
5.5.190.0020.03114.25
5.5.180.0100.02514.27
5.5.170.0040.00411.18
5.5.160.0060.02614.26
5.5.150.0070.02014.28
5.5.140.0050.03814.29
5.5.130.0030.04014.22
5.5.120.0050.02714.24
5.5.110.0030.04614.28
5.5.100.0060.02814.21
5.5.90.0070.03914.19
5.5.80.0030.02414.25
5.5.70.0020.03414.22
5.5.60.0060.02614.21
5.5.50.0070.04114.22
5.5.40.0050.03214.23
5.5.30.0070.02214.20
5.5.20.0070.02314.25
5.5.10.0050.04014.25
5.5.00.0060.04114.18
5.4.450.0060.03815.30
5.4.440.0040.03015.32
5.4.430.0070.04515.25
5.4.420.0030.03715.25
5.4.410.0030.04515.20
5.4.400.0030.04315.10
5.4.390.0030.04215.13
5.4.380.0030.04215.07
5.4.370.0080.03015.10
5.4.360.0080.02515.13
5.4.350.0070.03715.15
5.4.340.0070.03515.15
5.4.330.0060.00611.18
5.4.320.0020.04215.11
5.4.310.0080.02115.14
5.4.300.0090.03515.11
5.4.290.0100.03715.11
5.4.280.0080.03815.10
5.4.270.0050.04215.11
5.4.260.0030.04515.03
5.4.250.0040.02515.12
5.4.240.0040.04015.15
5.4.230.0070.02815.11
5.4.220.0070.03715.10
5.4.210.0070.02515.11
5.4.200.0030.04315.03
5.4.190.0020.02815.09
5.4.180.0170.02015.08
5.4.170.0080.02215.09
5.4.160.0020.02715.10
5.4.150.0040.02815.13
5.4.140.0020.02413.81
5.4.130.0020.02313.87
5.4.120.0060.02113.79
5.4.110.0030.02913.88
5.4.100.0040.04213.85
5.4.90.0150.02713.84
5.4.80.0030.03313.79
5.4.70.0060.02513.75
5.4.60.0020.03013.69
5.4.50.0050.03013.74
5.4.40.0080.03013.84
5.4.30.0030.04213.69
5.4.20.0050.03513.79
5.4.10.0070.02213.76
5.4.00.0080.02013.57
5.3.290.0080.03512.95
5.3.280.0080.03812.87
5.3.270.0080.02312.92
5.3.260.0030.04312.92
5.3.250.0110.02112.87
5.3.240.0020.03012.89
5.3.230.0030.02512.94
5.3.220.0070.03512.89
5.3.210.0120.02012.85
5.3.200.0070.01812.89
5.3.190.0020.04712.89
5.3.180.0020.04012.89
5.3.170.0100.03212.90
5.3.160.0100.03212.89
5.3.150.0060.02312.88
5.3.140.0100.03812.88
5.3.130.0020.03812.89
5.3.120.0050.03312.92
5.3.110.0030.03512.87
5.3.100.0050.02112.62
5.3.90.0120.02512.62
5.3.80.0080.03512.60
5.3.70.0070.03812.63
5.3.60.0050.03812.69
5.3.50.0020.04212.67
5.3.40.0070.04212.61
5.3.30.0040.02112.55
5.3.20.0060.02112.44
5.3.10.0070.03012.43
5.3.00.0050.03512.43
5.2.170.0010.03611.11
5.2.160.0040.01911.19
5.2.150.0100.02811.14
5.2.140.0070.02911.18
5.2.130.0050.03411.15
5.2.120.0070.02711.13
5.2.110.0000.02211.10
5.2.100.0050.03011.16
5.2.90.0080.02511.18
5.2.80.0070.03211.24
5.2.70.0070.02911.15
5.2.60.0020.02911.17
5.2.50.0080.03011.05
5.2.40.0020.02911.10
5.2.30.0030.02711.10
5.2.20.0020.03111.09
5.2.10.0050.03211.02
5.2.00.0050.02710.94
5.1.60.0050.02910.61
5.1.50.0050.02810.58
5.1.40.0030.01810.60
5.1.30.0030.03010.78
5.1.20.0030.02510.77
5.1.10.0020.02610.65
5.1.00.0040.03010.63
5.0.50.0030.0239.86
5.0.40.0040.0209.75
5.0.30.0030.0309.69
5.0.20.0000.0249.73
5.0.10.0000.0169.71
5.0.00.0020.0299.69
4.4.90.0020.0129.69
4.4.80.0030.0139.69
4.4.70.0020.0139.69
4.4.60.0000.0129.69
4.4.50.0020.0199.69
4.4.40.0050.0219.69
4.4.30.0020.0109.69
4.4.20.0000.0139.69
4.4.10.0050.0149.69
4.4.00.0030.0209.69
4.3.110.0000.0229.69
4.3.100.0020.0169.69
4.3.90.0050.0109.69
4.3.80.0050.0219.69
4.3.70.0020.0199.69
4.3.60.0060.0159.69
4.3.50.0020.0179.69
4.3.40.0020.0279.69
4.3.30.0000.0119.69
4.3.20.0050.0179.69
4.3.10.0000.0229.69
4.3.00.0000.0199.69

preferences:
59.15 ms | 401 KiB | 5 Q