3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { count(func_get_args()); } } $instance = new Foo(); $args = range(1, 10); for ($i = 0; $i < 100000; ++$i) { $instance->bar($args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $args[6], $args[7], $args[8], $args[9]); }

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.70.0140.03516.58
8.3.60.0100.02918.43
8.3.50.0120.02721.14
8.3.40.0100.02618.77
8.3.30.0130.02520.34
8.3.20.0100.00720.16
8.3.10.0060.01221.07
8.3.00.0040.01522.46
8.2.180.0100.02316.63
8.2.170.0100.02422.96
8.2.160.0070.03322.20
8.2.150.0000.01724.18
8.2.140.0000.01724.66
8.2.130.0030.01426.16
8.2.120.0040.01420.61
8.2.110.0070.02321.18
8.2.100.0030.02417.78
8.2.90.0090.01519.20
8.2.80.0070.01718.16
8.2.70.0070.01717.63
8.2.60.0060.01918.15
8.2.50.0030.02118.07
8.2.40.0030.02218.28
8.2.30.0000.02219.37
8.2.20.0090.01517.79
8.2.10.0030.02017.79
8.2.00.0000.02417.66
8.1.280.0070.03425.92
8.1.270.0030.01523.99
8.1.260.0040.01426.35
8.1.250.0060.01228.09
8.1.240.0060.02220.77
8.1.230.0100.01717.82
8.1.220.0100.01718.77
8.1.210.0030.02120.77
8.1.200.0030.02317.35
8.1.190.0070.01717.51
8.1.180.0040.02218.10
8.1.170.0130.02018.64
8.1.160.0000.02418.92
8.1.150.0030.02118.54
8.1.140.0040.02117.38
8.1.130.0030.01917.80
8.1.120.0000.02417.48
8.1.110.0040.02217.40
8.1.100.0090.01617.41
8.1.90.0100.01317.42
8.1.80.0030.02017.50
8.1.70.0000.02417.42
8.1.60.0000.03017.48
8.1.50.0090.01817.51
8.1.40.0030.02517.42
8.1.30.0000.03117.64
8.1.20.0030.02617.63
8.1.10.0070.02117.55
8.1.00.0060.02217.42
8.0.300.0060.01920.02
8.0.290.0060.02117.16
8.0.280.0030.02218.50
8.0.270.0030.02117.26
8.0.260.0000.02416.82
8.0.250.0000.02416.85
8.0.240.0040.02216.83
8.0.230.0040.02516.84
8.0.220.0000.02516.75
8.0.210.0040.02116.93
8.0.200.0070.01717.01
8.0.190.0000.02816.81
8.0.180.0030.02616.91
8.0.170.0000.02916.79
8.0.160.0000.02816.95
8.0.150.0000.02816.66
8.0.140.0120.02216.76
8.0.130.0000.02613.31
8.0.120.0000.02816.89
8.0.110.0000.02816.82
8.0.100.0030.02416.68
8.0.90.0000.02916.76
8.0.80.0060.04616.79
8.0.70.0040.02516.80
8.0.60.0000.02916.88
8.0.50.0030.02416.91
8.0.30.0130.05417.18
8.0.20.0070.03717.40
8.0.10.0030.02616.82
8.0.00.0060.03816.82
7.4.330.0000.02816.79
7.4.320.0030.01916.39
7.4.300.0040.01816.50
7.4.290.0070.02316.49
7.4.280.0000.02816.57
7.4.270.0000.02816.53
7.4.260.0030.02413.23
7.4.250.0090.01916.45
7.4.240.0000.02816.60
7.4.230.0000.02716.31
7.4.220.0160.03616.56
7.4.210.0060.03816.60
7.4.200.0030.02416.55
7.4.190.0040.02516.77
7.4.160.0130.03016.56
7.4.150.0070.03717.40
7.4.140.0060.03717.86
7.4.130.0080.03716.52
7.4.120.0080.04716.59
7.4.110.0070.05916.50
7.4.100.0100.03316.58
7.4.90.0060.06016.34
7.4.80.0120.03119.39
7.4.70.0120.03216.50
7.4.60.0100.03616.63
7.4.50.0030.03616.35
7.4.40.0060.03222.77
7.4.30.0060.03616.57
7.4.00.0060.03414.75
7.3.330.0070.02013.18
7.3.320.0030.02313.20
7.3.310.0070.02116.24
7.3.300.0030.02416.37
7.3.290.0130.02816.35
7.3.280.0110.04616.35
7.3.270.0030.04017.40
7.3.260.0060.03818.24
7.3.250.0090.04616.41
7.3.240.0130.03216.56
7.3.230.0130.03316.41
7.3.210.0100.04016.61
7.3.200.0150.04719.39
7.3.190.0070.03616.63
7.3.180.0140.03216.52
7.3.170.0070.03716.38
7.3.160.0110.03316.37
7.3.120.0060.03215.14
7.3.10.0070.03416.51
7.3.00.0070.03416.38
7.2.330.0030.04216.52
7.2.320.0120.05716.56
7.2.310.0130.03716.59
7.2.300.0000.04416.70
7.2.290.0130.03516.80
7.2.130.0140.03116.79
7.2.120.0100.03016.56
7.2.110.0070.02916.74
7.2.100.0030.03216.77
7.2.90.0040.03116.66
7.2.80.0120.02517.04
7.2.70.0100.03216.90
7.2.60.0080.02916.70
7.2.50.0070.03016.86
7.2.40.0160.02216.83
7.2.30.0060.02816.98
7.2.20.0030.03116.90
7.2.10.0130.02617.09
7.2.00.0000.04217.87
7.1.250.0030.05615.91
7.1.200.0030.03315.89
7.1.100.0210.05217.44
7.1.70.0000.04817.16
7.1.60.0070.06419.17
7.1.50.0030.06517.07
7.1.00.0000.11022.50
7.0.200.0030.02816.63
7.0.140.0030.11021.95
7.0.110.0700.10320.07
7.0.100.0400.07320.09
7.0.90.0570.07720.04
7.0.80.0600.06719.84
7.0.70.0670.11020.05
7.0.60.0600.06719.98
7.0.50.0300.09319.89
7.0.40.0030.07719.73
7.0.30.0100.09019.79
7.0.20.0100.07319.84
7.0.10.0170.07319.74
7.0.00.0070.05719.72
5.6.280.0070.16321.04
5.6.260.0070.12720.73
5.6.250.0070.16020.75
5.6.240.0100.13020.55
5.6.230.0170.12720.70
5.6.220.0070.10020.71
5.6.210.0070.15020.68
5.6.200.0100.09320.63
5.6.190.0070.16720.66
5.6.180.0130.09720.61
5.6.170.0030.10720.70
5.6.160.0030.10320.61
5.6.150.0030.10320.47
5.6.140.0070.10020.62
5.6.130.0100.13020.70
5.6.120.0030.10020.57
5.6.110.0070.10020.45
5.6.100.0130.11720.47
5.6.90.0070.13320.57
5.6.80.0000.10320.07
5.6.70.0070.10019.99
5.6.60.0100.10020.03
5.6.50.0000.08720.06
5.6.40.0100.07719.83
5.6.30.0100.09319.85
5.6.20.0070.09319.98
5.6.10.0030.08319.99
5.6.00.0000.10720.06
5.5.380.0070.12717.58
5.5.370.0070.13717.47
5.5.360.0170.17017.68
5.5.350.0030.13017.51
5.5.340.0070.15318.09
5.5.330.0030.11718.22
5.5.320.0070.11317.97
5.5.310.0000.17018.15
5.5.300.0070.17318.13
5.5.290.0030.11718.10
5.5.280.0000.13018.25
5.5.270.0070.12018.12
5.5.260.0030.16318.04
5.5.250.0170.15017.88
5.5.240.0070.16317.44
5.5.230.0000.12017.27
5.5.220.0030.09317.50
5.5.210.0000.09717.45
5.5.200.0030.11317.48
5.5.190.0230.11017.58
5.5.180.0070.11317.30
5.5.160.0000.09717.28
5.5.150.0030.09317.28
5.5.140.0000.10017.30
5.5.130.0070.09717.60
5.5.120.0000.09717.24
5.5.110.0030.09717.57
5.5.100.0100.09017.19
5.5.90.0030.09317.35
5.5.80.0000.09717.20
5.5.70.0000.09317.16
5.5.60.0030.08717.17
5.5.50.0030.09317.36
5.5.40.0030.11717.31
5.5.30.0070.11317.46
5.5.20.0070.16317.46
5.5.10.0070.15017.06
5.5.00.0000.12017.45
5.4.450.0070.09719.40
5.4.440.0000.10019.59
5.4.430.0070.09319.46
5.4.420.0100.11019.46
5.4.410.0070.12019.32
5.4.400.0030.12719.14
5.4.390.0000.11719.29
5.4.380.0030.11318.98
5.4.370.0070.12318.98
5.4.360.0000.10018.99
5.4.350.0030.09319.30
5.4.340.0000.11718.93
5.4.320.0000.10719.29
5.4.310.0000.09718.99
5.4.300.0070.09318.98
5.4.290.0070.10018.96
5.4.280.0000.09719.29
5.4.270.0100.10719.17
5.4.260.0000.09718.96
5.4.250.0130.09019.12
5.4.240.0070.09019.16
5.4.230.0030.09719.22
5.4.220.0070.09319.25
5.4.210.0100.08719.12
5.4.200.0070.13319.17
5.4.190.0130.13019.12
5.4.180.0000.12319.25
5.4.170.0030.17019.16
5.4.160.0000.13718.91
5.4.150.0000.14018.95
5.4.140.0030.15016.42
5.4.130.0100.14316.48
5.4.120.0130.15316.54
5.4.110.0000.15716.36
5.4.100.0030.11316.31
5.4.90.0070.11016.52
5.4.80.0100.10316.43
5.4.70.0100.15016.27
5.4.60.0100.15716.46
5.4.50.0070.11016.37
5.4.40.0070.14016.60
5.4.30.0130.17316.52
5.4.20.0000.13316.34
5.4.10.0000.11716.52
5.4.00.0070.15316.02
5.3.290.0100.11714.80
5.3.280.0030.10014.73
5.3.270.0030.12314.64
5.3.260.0100.11314.46
5.3.250.0200.16014.68
5.3.240.0030.12014.61
5.3.230.0030.17314.74
5.3.220.0070.18714.54
5.3.210.0000.17014.56
5.3.200.0100.15314.70
5.3.190.0030.10714.71
5.3.180.0030.16314.79
5.3.170.0030.11714.61
5.3.160.0000.12314.64
5.3.150.0100.16014.52
5.3.140.0030.12714.53
5.3.130.0030.12314.54
5.3.120.0100.11014.52
5.3.110.0030.15014.77
5.3.100.0100.16314.04
5.3.90.0070.13014.16
5.3.80.0100.11714.25
5.3.70.0030.12714.14
5.3.60.0070.16714.01
5.3.50.0030.15013.80
5.3.40.0070.11714.02
5.3.30.0000.12713.97
5.3.20.0070.11013.56
5.3.10.0130.13713.68
5.3.00.0030.12013.78
5.2.170.0030.18312.01
5.2.160.0030.14012.01
5.2.150.0000.12712.01
5.2.140.0030.17312.01
5.2.130.0030.17712.01
5.2.120.0030.13312.01
5.2.110.0070.17012.01
5.2.100.0030.12312.01
5.2.90.0000.13012.01
5.2.80.0000.12712.01
5.2.70.0000.12712.01
5.2.60.0030.16012.01
5.2.50.0030.12012.01
5.2.40.0070.13712.01
5.2.30.0130.15312.01
5.2.20.0100.19312.01
5.2.10.0100.18712.01
5.2.00.0000.12012.01
5.1.60.0000.12312.01
5.1.50.0030.12012.01
5.1.40.0030.15712.01
5.1.30.0070.20312.01
5.1.20.0070.16312.01
5.1.10.0070.15012.01
5.1.00.0000.12312.01
5.0.50.0030.21012.01
5.0.40.0070.21712.01
5.0.30.0100.20012.01
5.0.20.0000.20712.01
5.0.10.0070.15712.01
5.0.00.0130.23712.01
4.4.90.0070.02012.01
4.4.80.0000.03312.01
4.4.70.0030.01312.01
4.4.60.0000.03312.01
4.4.50.0000.01312.01
4.4.40.0030.02712.01
4.4.30.0030.02012.01
4.4.20.0030.03312.01
4.4.10.0000.03312.01
4.4.00.0000.03012.01
4.3.110.0030.01312.01
4.3.100.0030.03312.01
4.3.90.0070.00712.01
4.3.80.0030.02012.01
4.3.70.0000.03012.01
4.3.60.0030.01712.01
4.3.50.0000.02012.01
4.3.40.0030.02012.01
4.3.30.0030.03012.01
4.3.20.0000.01712.01
4.3.10.0000.01712.01
4.3.00.0000.01712.01

preferences:
47.96 ms | 401 KiB | 5 Q