3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected $commands = ['foo', 'bar']; public function commands($command) { var_dump($command); } public function boot() { foreach ($this->commands as $command) { $this->commands($command); } } } (new Test())->boot();

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.56
8.3.50.0090.01222.06
8.3.40.0100.00318.59
8.3.30.0120.00918.95
8.3.20.0030.00619.99
8.3.10.0030.00521.90
8.3.00.0040.00419.25
8.2.180.0120.00318.34
8.2.170.0100.00722.96
8.2.160.0100.00720.15
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0060.00319.25
8.2.110.0070.00319.27
8.2.100.0120.00017.63
8.2.90.0040.00419.13
8.2.80.0080.00017.97
8.2.70.0050.00517.50
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0000.00819.84
8.2.30.0000.00917.88
8.2.20.0040.00417.59
8.2.10.0030.00618.01
8.2.00.0000.00717.53
8.1.280.0100.00725.92
8.1.270.0000.00818.70
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0080.00417.65
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0050.00517.23
8.1.190.0060.00317.25
8.1.180.0000.00818.10
8.1.170.0060.00318.68
8.1.160.0070.00021.91
8.1.150.0030.00518.84
8.1.140.0040.00417.40
8.1.130.0050.00317.83
8.1.120.0030.00317.29
8.1.110.0070.00017.32
8.1.100.0000.00817.29
8.1.90.0000.00717.35
8.1.80.0040.00417.30
8.1.70.0030.00317.35
8.1.60.0040.00417.55
8.1.50.0090.00017.44
8.1.40.0040.00417.48
8.1.30.0060.00317.60
8.1.20.0000.00717.54
8.1.10.0050.00217.42
8.1.00.0040.00417.33
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0070.00018.40
8.0.270.0070.00017.16
8.0.260.0030.00317.25
8.0.250.0030.00316.94
8.0.240.0000.00617.00
8.0.230.0000.00716.94
8.0.220.0000.00716.93
8.0.210.0030.00316.88
8.0.200.0060.00016.91
8.0.190.0040.00416.97
8.0.180.0080.00016.81
8.0.170.0040.00416.96
8.0.160.0000.00716.86
8.0.150.0000.00716.90
8.0.140.0000.00716.87
8.0.130.0000.00613.28
8.0.120.0050.00316.92
8.0.110.0040.00416.87
8.0.100.0000.00716.79
8.0.90.0040.00416.89
8.0.80.0060.00916.95
8.0.70.0040.00416.91
8.0.60.0040.00417.01
8.0.50.0040.00416.78
8.0.30.0060.01417.15
8.0.20.0120.01017.40
8.0.10.0070.00017.01
8.0.00.0070.01016.67
7.4.330.0050.00015.07
7.4.320.0060.00016.55
7.4.300.0000.00716.54
7.4.290.0030.00616.45
7.4.280.0040.00416.43
7.4.270.0000.00716.54
7.4.260.0000.00716.44
7.4.250.0030.00316.45
7.4.240.0020.00616.43
7.4.230.0000.00716.61
7.4.220.0030.01916.46
7.4.210.0030.01616.50
7.4.200.0030.00316.64
7.4.160.0090.00616.51
7.4.150.0140.01417.40
7.4.140.0140.00317.86
7.4.130.0090.00816.58
7.4.120.0070.01016.55
7.4.110.0150.00616.33
7.4.100.0130.01016.39
7.4.90.0160.00016.51
7.4.80.0150.00619.39
7.4.70.0100.01116.57
7.4.60.0040.01216.60
7.4.50.0040.00416.67
7.4.40.0070.01416.65
7.4.30.0160.00616.67
7.4.00.0080.00914.94
7.3.330.0060.00013.09
7.3.320.0050.01013.27
7.3.310.0030.00416.18
7.3.300.0040.00416.16
7.3.290.0130.00616.30
7.3.280.0100.00516.30
7.3.270.0120.00917.40
7.3.260.0090.01016.64
7.3.250.0060.01416.29
7.3.240.0140.00316.48
7.3.230.0130.00316.50
7.3.210.0100.00616.37
7.3.200.0110.00619.39
7.3.190.0140.00316.42
7.3.180.0110.00516.23
7.3.170.0090.00916.51
7.3.160.0130.00316.47
7.3.120.0070.01014.88
7.3.110.0080.00814.68
7.3.100.0040.00714.86
7.3.90.0060.01014.86
7.3.80.0050.00714.98
7.3.70.0080.00614.78
7.3.60.0050.00714.84
7.3.50.0050.00914.74
7.3.40.0060.01014.68
7.3.30.0040.00714.64
7.3.20.0070.00816.66
7.3.10.0040.00916.58
7.3.00.0060.00716.56
7.2.330.0070.01116.36
7.2.320.0120.00416.79
7.2.310.0030.01316.60
7.2.300.0070.01016.54
7.2.290.0130.00316.82
7.2.250.0080.00915.03
7.2.240.0070.01115.00
7.2.230.0080.00714.97
7.2.220.0090.00514.93
7.2.210.0100.00415.15
7.2.200.0070.00614.96
7.2.190.0070.00715.08
7.2.180.0050.00915.05
7.2.170.0060.00914.87
7.2.00.0070.00319.06
7.1.330.0070.00715.75
7.1.320.0060.00715.79
7.1.310.0070.00815.80
7.1.300.0030.00915.69
7.1.290.0050.00815.75
7.1.280.0040.00815.81
7.1.270.0080.00615.84
7.1.260.0070.00815.63
7.1.100.0080.00817.82
7.1.70.0030.00917.09
7.1.60.0080.01519.50
7.1.50.0100.00717.06
7.1.00.0000.08022.43
7.0.200.0070.00314.98
7.0.140.0030.04022.12
7.0.60.0100.03319.79
7.0.50.0070.03717.98
7.0.40.0000.04720.17
7.0.30.0230.06020.21
7.0.20.0270.07720.30
7.0.10.0000.06020.08
7.0.00.0030.09020.10
5.6.280.0030.07321.03
5.6.210.0030.06020.54
5.6.200.0100.03318.21
5.6.190.0030.05720.77
5.6.180.0230.04020.43
5.6.170.0100.04320.71
5.6.160.0100.07320.48
5.6.150.0070.03718.19
5.6.140.0170.06018.28
5.6.130.0230.03318.18
5.6.120.0030.08021.15
5.6.110.0070.08320.96
5.6.100.0030.07720.97
5.6.90.0070.06021.11
5.6.80.0100.08020.39
5.6.70.4130.03720.40
5.5.350.0270.07320.54
5.5.340.0070.05317.95
5.5.330.0130.08320.27
5.5.320.0270.04020.23
5.5.310.0270.07320.30
5.5.300.0070.03718.00
5.5.290.0100.08317.95
5.5.280.0170.04720.77
5.5.270.0130.07720.77
5.5.260.0170.07020.73
5.5.250.0030.04020.70
5.5.240.3870.04020.28
5.4.450.0200.05319.45
5.4.440.0870.05319.45
5.4.430.0730.06319.14
5.4.420.1200.07319.67
5.4.410.0130.06318.69
5.4.400.0270.07318.50
5.4.390.0130.06318.74
5.4.380.0300.06018.77
5.4.370.0230.06018.50
5.4.360.0230.05718.75
5.4.350.0270.06318.59
5.4.340.0300.05318.78
5.4.320.0170.06318.49
5.4.310.0200.06018.83
5.4.300.0230.06018.70
5.4.290.0170.05718.63
5.4.280.0170.06018.77
5.4.270.0370.05718.60
5.4.260.0230.05718.58
5.4.250.0270.05318.85
5.4.240.0170.06018.57
5.4.230.0330.04018.56
5.4.220.0430.06318.68
5.4.210.0270.05018.61
5.4.200.0230.05316.57
5.4.190.0230.07718.52
5.4.180.0300.04718.72
5.4.170.0230.06718.71
5.4.160.0200.08018.60
5.4.150.0170.06718.72
5.4.140.0300.05016.45
5.4.130.0270.04716.39
5.4.120.0300.05016.44
5.4.110.0100.06016.42
5.4.100.0200.06016.26
5.4.90.0230.05316.32
5.4.80.0300.04316.16
5.4.70.0270.04716.24
5.4.60.0200.04716.42
5.4.50.0400.05716.30
5.4.40.0100.06016.24
5.4.30.0170.05016.20
5.4.20.0200.05016.25
5.4.10.0630.05316.16
5.4.00.0270.06315.69
5.3.290.0400.06714.80
5.3.280.0200.06014.69
5.3.270.0230.05014.78
5.3.260.0200.06014.65
5.3.250.0230.05014.62
5.3.240.0230.05714.62
5.3.230.0800.08014.73
5.3.220.0400.07014.75
5.3.210.0270.07014.58
5.3.200.0330.06314.77
5.3.190.0300.06014.71
5.3.180.0270.06314.54
5.3.170.0530.06014.59
5.3.160.0230.04714.55
5.3.150.0630.05314.67
5.3.140.0330.04314.55
5.3.130.1070.05714.59
5.3.120.0270.05314.72
5.3.110.0230.05714.59
5.3.100.0400.05714.14
5.3.90.0200.06314.02
5.3.80.0130.06014.22
5.3.70.1200.05714.06
5.3.60.0270.05313.98
5.3.50.0230.05714.11
5.3.40.0300.05013.96
5.3.30.0300.04713.92
5.3.20.0070.06713.75
5.3.10.0230.05013.65
5.3.00.0270.05313.76
5.2.170.0130.04711.13
5.2.160.0200.04311.22
5.2.150.0170.04711.19
5.2.140.0230.04011.18
5.2.130.0200.05011.09
5.2.120.0770.03011.09
5.2.110.0070.05011.14
5.2.100.0230.03711.32
5.2.90.0300.04311.32
5.2.80.0100.05311.13
5.2.70.0300.04011.14
5.2.60.0300.04311.08
5.2.50.0130.05711.05
5.2.40.0130.05011.02
5.2.30.1070.06311.07
5.2.20.0270.04010.93
5.2.10.0230.04310.98
5.2.00.0100.04310.69
5.1.60.0330.03710.01
5.1.50.0300.03310.03
5.1.40.0070.04010.01
5.1.30.0170.03010.39
5.1.20.0130.03710.34
5.1.10.0130.03310.14
5.1.00.0130.03710.14
5.0.50.0130.0278.54
5.0.40.0170.0308.46
5.0.30.0130.0508.20
5.0.20.0130.0308.21
5.0.10.0070.0308.25
5.0.00.0100.0408.11
4.4.90.0170.0206.00
4.4.80.0130.0175.86
4.4.70.0170.0175.91
4.4.60.0100.0205.91
4.4.50.0130.0175.96
4.4.40.0170.0275.91
4.4.30.0100.0275.91
4.4.20.0100.0236.06
4.4.10.0000.0305.92
4.4.00.0100.0475.93
4.3.110.0070.0335.85
4.3.100.0230.0275.83
4.3.90.0070.0235.82
4.3.80.0100.0305.87
4.3.70.0130.0235.80
4.3.60.0130.0235.88
4.3.50.0100.0205.77
4.3.40.0070.0405.79
4.3.30.0030.0334.70
4.3.20.0030.0304.70
4.3.10.0070.0274.70
4.3.00.0030.0206.84

preferences:
60.19 ms | 401 KiB | 5 Q