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 = null) { } a('a'); a(array('A', 'b')); a(array(new A, 'c')); a(new B); a(null); 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.50
8.3.50.0090.00917.43
8.3.40.0070.01418.90
8.3.30.0110.01118.54
8.3.20.0060.00318.52
8.3.10.0050.00318.65
8.3.00.0050.00319.25
8.2.180.0040.01116.38
8.2.170.0080.00822.96
8.2.160.0070.00718.91
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00719.77
8.2.110.0070.00321.03
8.2.100.0090.00317.86
8.2.90.0030.00619.21
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0040.00418.04
8.2.50.0050.00317.80
8.2.40.0080.00019.35
8.2.30.0000.00917.74
8.2.20.0030.00617.61
8.2.10.0030.00517.67
8.2.00.0040.00417.68
8.1.280.0150.00425.92
8.1.270.0000.00823.99
8.1.260.0140.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00422.62
8.1.230.0040.00717.70
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0030.00617.36
8.1.180.0000.00818.10
8.1.170.0030.00517.62
8.1.160.0000.00718.96
8.1.150.0040.00418.49
8.1.140.0040.00417.45
8.1.130.0040.00419.13
8.1.120.0000.00717.39
8.1.110.0000.00717.31
8.1.100.0040.00417.38
8.1.90.0000.00717.30
8.1.80.0000.00717.37
8.1.70.0070.00017.32
8.1.60.0090.00017.50
8.1.50.0000.00717.48
8.1.40.0000.00817.45
8.1.30.0070.00317.56
8.1.20.0040.00417.48
8.1.10.0040.00417.53
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0040.00418.51
8.0.270.0030.00317.25
8.0.260.0000.00716.72
8.0.250.0040.00416.96
8.0.240.0000.00716.98
8.0.230.0040.00416.73
8.0.220.0040.00416.83
8.0.210.0030.00316.84
8.0.200.0000.00716.79
8.0.190.0040.00416.75
8.0.180.0040.00416.80
8.0.170.0030.00616.84
8.0.160.0000.00716.89
8.0.150.0000.00816.74
8.0.140.0000.00816.67
8.0.130.0030.00313.29
8.0.120.0030.00616.77
8.0.110.0000.00716.73
8.0.100.0000.00716.88
8.0.90.0070.00016.71
8.0.80.0070.01016.74
8.0.70.0040.00416.67
8.0.60.0030.00616.91
8.0.50.0070.00016.69
8.0.30.0120.00916.94
8.0.20.0120.01117.26
8.0.10.0040.00416.81
8.0.00.0110.00916.72
7.4.330.0040.00412.95
7.4.320.0030.00316.41
7.4.300.0050.00216.50
7.4.290.0060.00016.43
7.4.280.0030.00516.43
7.4.270.0070.00016.55
7.4.260.0000.00513.20
7.4.250.0040.00416.42
7.4.240.0030.00316.45
7.4.230.0030.00316.50
7.4.220.0030.01416.52
7.4.210.0100.00616.54
7.4.200.0030.00316.27
7.4.190.0060.00316.39
7.4.160.0150.00616.61
7.4.150.0060.01216.50
7.4.140.0140.01417.86
7.4.130.0110.01016.29
7.4.120.0080.00816.30
7.4.110.0070.01116.41
7.4.100.0100.01316.64
7.4.90.0040.01816.25
7.4.80.0100.00719.39
7.4.70.0100.00716.51
7.4.60.0060.01116.43
7.4.50.0000.00916.43
7.4.40.0040.01416.38
7.4.30.0100.00716.40
7.4.00.0080.00814.91
7.3.330.0000.00613.25
7.3.320.0000.00613.13
7.3.310.0030.00316.27
7.3.300.0000.00716.18
7.3.290.0060.01016.19
7.3.280.0070.01516.18
7.3.270.0070.01016.14
7.3.260.0080.00816.35
7.3.240.0120.01216.53
7.3.230.0110.00616.28
7.3.210.0090.00616.22
7.3.200.0170.00416.51
7.3.190.0090.00616.30
7.3.180.0070.01016.07
7.3.170.0100.01116.42
7.3.160.0100.00516.38
7.3.120.0120.00614.54
7.2.330.0150.00416.21
7.2.320.0030.01316.50
7.2.310.0070.01416.59
7.2.300.0090.00916.53
7.2.290.0100.00716.64
7.2.60.0070.00716.80
7.2.00.0030.00619.23
7.1.200.0030.00615.61
7.1.70.0030.00316.96
7.1.60.0100.01016.83
7.1.50.0090.00917.00
7.1.00.0070.06722.36
7.0.200.0030.01216.70
7.0.140.0030.07021.98
7.0.120.0070.06722.17
7.0.60.0030.04019.93
7.0.50.0030.05717.73
7.0.40.0070.04320.18
7.0.30.0300.08020.12
7.0.20.0470.07320.06
7.0.10.0170.07720.16
7.0.00.0100.05320.07
5.6.280.0070.07020.86
5.6.210.0030.07320.61
5.6.200.0100.08318.18
5.6.190.0070.07720.64
5.6.180.0230.08320.46
5.6.170.0330.07320.66
5.6.160.0030.08720.46
5.6.150.0070.08018.18
5.6.140.0030.05318.18
5.6.130.0030.08718.15
5.6.120.0130.08021.02
5.6.110.0070.04021.14
5.6.100.0030.07320.96
5.6.90.0070.07020.98
5.6.80.0100.07020.43
5.5.350.0300.06320.34
5.5.340.0170.07717.95
5.5.330.0030.08320.26
5.5.320.0200.06020.36
5.5.310.0270.05320.27
5.5.300.0130.04317.95
5.5.290.0070.06717.95
5.5.280.0100.06720.77
5.5.270.0200.07020.80
5.5.260.0130.06320.80
5.5.250.0030.08320.71
5.5.240.0030.07720.24
5.4.450.0100.08019.21
5.4.440.0170.05019.57
5.4.430.0130.04319.40
5.4.420.0070.08019.43
5.4.410.0030.04719.12
5.4.400.0030.05019.01
5.4.390.0170.06319.07
5.4.380.0030.06018.87
5.4.370.0030.08018.86
5.4.360.0130.06019.16
5.4.350.0030.04319.15
5.4.340.0070.06018.85
5.4.320.0100.05019.26
5.4.310.0000.08318.87
5.4.300.0100.05718.87
5.4.290.0000.07718.97
5.4.280.0130.04719.23
5.4.270.0030.07718.87
5.4.260.0130.07018.87
5.4.250.0030.04718.85
5.4.240.0030.07018.97
5.4.230.0030.07319.14
5.4.220.0170.05019.20
5.4.210.0070.07319.16
5.4.200.0100.04718.98
5.4.190.0030.05319.23
5.4.180.0170.06719.25
5.4.170.0030.04019.23
5.4.160.0070.03718.83
5.4.150.0000.04718.83
5.4.140.0000.07316.41
5.4.130.0070.03716.55
5.4.120.0000.06316.59
5.4.110.0070.07016.32
5.4.100.0130.03716.44
5.4.90.0000.08016.46
5.4.80.0070.04016.44
5.4.70.0000.04016.34
5.4.60.0070.03316.28
5.4.50.0130.06716.34
5.4.40.0170.06716.36
5.4.30.0030.04316.43
5.4.20.0100.05016.36
5.4.10.0100.05316.42
5.4.00.0100.06715.88
5.3.290.0070.07014.58
5.3.280.0070.04714.60
5.3.270.0000.04714.61
5.3.260.0100.04014.53
5.3.250.0100.03714.64
5.3.240.0070.08014.66
5.3.230.0100.04714.66
5.3.220.0130.06714.75
5.3.210.0100.06014.56
5.3.200.0070.07314.58
5.3.190.0030.08714.64
5.3.180.0070.04014.59
5.3.170.0070.04014.63
5.3.160.0100.03714.63
5.3.150.0070.04314.71
5.3.140.0070.06314.71
5.3.130.0070.04314.63
5.3.120.0100.06714.59
5.3.110.0100.06714.57
5.3.100.0100.04314.04
5.3.90.0100.06014.05
5.3.80.0070.05714.06
5.3.70.0070.06314.06
5.3.60.0130.05314.02
5.3.50.0070.04713.84
5.3.40.0030.04314.12
5.3.30.0030.06013.91
5.3.20.0030.06313.67
5.3.10.0030.04013.71
5.3.00.0030.05013.71
5.2.170.0000.04011.20
5.2.160.0000.03011.11
5.2.150.0030.07011.11
5.2.140.0070.06311.10
5.2.130.0030.04711.20
5.2.120.0070.03711.08
5.2.110.0100.05711.11
5.2.100.0000.05711.12
5.2.90.0030.03011.07
5.2.80.0000.03311.12
5.2.70.0100.05711.18
5.2.60.0130.04011.10
5.2.50.0030.06311.10
5.2.40.0030.05710.89
5.2.30.0100.04311.05
5.2.20.0070.03011.01
5.2.10.0030.03710.92
5.2.00.0030.03310.65
5.1.60.0030.0309.96
5.1.50.0030.02710.05
5.1.40.0070.05010.00
5.1.30.0070.05710.38
5.1.20.0030.05710.52
5.1.10.0100.02710.12
5.1.00.0070.0239.99
5.0.50.0030.0408.46
5.0.40.0000.0238.40
5.0.30.0000.0308.23
5.0.20.0030.0478.27
5.0.10.0000.0208.27
5.0.00.0000.0308.22
4.4.90.0030.0277.78
4.4.80.0000.0377.78
4.4.70.0030.0307.78
4.4.60.0070.0307.78
4.4.50.0000.0177.78
4.4.40.0000.0377.78
4.4.30.0030.0277.78
4.4.20.0070.0207.78
4.4.10.0000.0177.78
4.4.00.0030.0277.78
4.3.110.0000.0177.78
4.3.100.0000.0177.78
4.3.90.0030.0107.78
4.3.80.0000.0537.78
4.3.70.0000.0177.78
4.3.60.0000.0177.78
4.3.50.0000.0177.78
4.3.40.0030.0237.78
4.3.30.0000.0137.78
4.3.20.0000.0407.78
4.3.10.0070.0107.78
4.3.00.0000.0177.78

preferences:
51.07 ms | 401 KiB | 5 Q