3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); $contributors = ['Me', 'To']; array_walk($contributors, function(string $contributor) : string { return sprintf("%s, thank you very much for PHP7!", $contributor); }); var_dump($contributors); //echo implode("\n", $results);

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.0080.01216.63
8.3.50.0160.00522.04
8.3.40.0100.01018.70
8.3.30.0110.00418.32
8.3.20.0040.01120.16
8.3.10.0000.00923.33
8.3.00.0080.00019.85
8.2.180.0070.00716.60
8.2.170.0140.00722.96
8.2.160.0150.00020.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00019.52
8.2.120.0030.00626.35
8.2.110.0040.00422.08
8.2.100.0100.00317.78
8.2.90.0000.00817.75
8.2.80.0090.00017.97
8.2.70.0030.00618.03
8.2.60.0000.00918.04
8.2.50.0050.00318.10
8.2.40.0000.00719.30
8.2.30.0050.00220.62
8.2.20.0040.00417.67
8.2.10.0040.00418.04
8.2.00.0090.00018.19
8.1.280.0070.01425.92
8.1.270.0040.00420.23
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0080.00023.88
8.1.230.0000.01119.03
8.1.220.0000.00717.79
8.1.210.0050.00318.77
8.1.200.0090.00017.13
8.1.190.0050.00317.25
8.1.180.0040.00418.10
8.1.170.0000.00718.90
8.1.160.0000.00718.93
8.1.150.0000.00718.95
8.1.140.0000.00819.56
8.1.130.0080.00017.57
8.1.120.0090.00017.50
8.1.110.0070.00017.41
8.1.100.0000.00917.50
8.1.90.0030.00517.36
8.1.80.0030.00317.52
8.1.70.0000.00817.32
8.1.60.0000.01017.54
8.1.50.0000.00817.55
8.1.40.0080.00017.41
8.1.30.0000.00817.55
8.1.20.0050.00217.66
8.1.10.0070.00017.56
8.1.00.0040.00417.38
8.0.300.0070.00018.77
8.0.290.0090.00016.75
8.0.280.0030.00318.29
8.0.270.0070.00017.14
8.0.260.0030.00317.11
8.0.250.0000.00716.91
8.0.240.0030.00316.89
8.0.230.0070.00316.85
8.0.220.0050.00216.72
8.0.210.0000.00716.87
8.0.200.0000.00616.88
8.0.190.0000.00716.82
8.0.180.0040.00416.88
8.0.170.0070.00016.90
8.0.160.0070.00016.84
8.0.150.0030.00516.81
8.0.140.0000.00716.88
8.0.130.0050.00013.38
8.0.120.0030.00516.78
8.0.110.0040.00416.88
8.0.100.0040.00416.88
8.0.90.0040.00416.88
8.0.80.0090.00916.85
8.0.70.0040.00416.88
8.0.60.0000.00816.93
8.0.50.0040.00416.88
8.0.30.0100.00916.96
8.0.20.0080.01017.40
8.0.10.0040.00417.05
8.0.00.0100.00716.89
7.4.330.0030.00316.89
7.4.320.0000.00716.61
7.4.300.0070.00016.61
7.4.290.0000.00816.52
7.4.280.0000.00816.61
7.4.270.0000.00716.46
7.4.260.0030.00316.58
7.4.250.0000.00816.46
7.4.240.0050.00216.51
7.4.230.0000.00716.58
7.4.220.0090.01016.63
7.4.210.0070.01216.57
7.4.200.0000.00716.51
7.4.160.0100.00716.45
7.4.150.0090.01517.40
7.4.140.0110.00817.86
7.4.130.0150.00116.53
7.4.120.0120.00516.38
7.4.110.0110.00716.63
7.4.100.0110.00716.55
7.4.90.0060.01216.39
7.4.80.0120.00619.39
7.4.70.0080.00916.46
7.4.60.0080.00816.34
7.4.50.0110.00316.43
7.4.40.0070.01016.28
7.4.30.0190.00316.36
7.4.00.0080.00814.98
7.3.330.0070.00013.38
7.3.320.0020.00213.26
7.3.310.0000.00716.10
7.3.300.0030.00316.32
7.3.290.0120.00216.31
7.3.280.0030.01416.34
7.3.270.0090.00917.40
7.3.260.0110.00716.30
7.3.250.0050.01516.40
7.3.240.0070.01016.24
7.3.230.0100.01316.39
7.3.210.0110.00816.45
7.3.200.0120.00616.38
7.3.190.0160.00016.20
7.3.180.0090.00616.35
7.3.170.0080.00816.33
7.3.160.0110.00516.57
7.2.330.0090.01316.54
7.2.320.0100.01316.49
7.2.310.0130.00316.59
7.2.300.0060.01216.54
7.2.290.0110.00716.32
7.2.60.0090.00616.82
7.2.00.0000.00919.44
7.1.200.0000.01515.75
7.1.100.0030.01218.27
7.1.70.0000.00717.06
7.1.60.0090.01519.05
7.1.50.0100.01316.57
7.1.00.0100.07022.28
7.0.200.0070.00316.32
7.0.60.0300.06720.03
7.0.50.0070.08017.97
7.0.40.0030.06720.26
7.0.30.0270.07320.06
7.0.20.0230.06320.08
7.0.10.0000.09020.23
7.0.00.0070.08320.25
5.6.280.0000.07721.13
5.6.210.0030.04320.63
5.6.200.0000.04318.24
5.6.190.0000.05020.67
5.6.180.0230.04020.48
5.6.170.0400.07320.51
5.6.160.0070.04718.29
5.6.150.0030.04718.17
5.6.140.0030.04318.18
5.6.130.0070.08718.25
5.6.120.0130.07021.00
5.6.110.0100.08320.98
5.6.100.0100.03721.00
5.6.90.0070.04720.99
5.6.80.0070.06320.41
5.5.350.0200.05020.38
5.5.340.0170.06317.98
5.5.330.0200.07720.44
5.5.320.0470.03720.35
5.5.310.0270.03720.30
5.5.300.0130.06318.07
5.5.290.0030.05717.96
5.5.280.0100.07320.80
5.5.270.0170.06320.73
5.5.260.0170.07020.76
5.5.250.0070.05720.71
5.5.240.2630.04320.19

preferences:
51.23 ms | 401 KiB | 5 Q