3v4l.org

run code in 300+ PHP versions simultaneously
<?php function zeroOneTwo($one, $two, $three) { return [$one, $two, $three]; } function abc($b, $c, $a) { return [$a, $b, $c]; } $numericKeyedArray = [4,5,6]; var_export(abc(...$numericKeyedArray)); echo "\n---\n"; var_export(zeroOneTwo(...$numericKeyedArray)); echo "\n===\n"; $nonNumericKeyedArray = ['c' => 'sea', 'a' => 'A', 'b' => 'bee']; echo "\n---\n"; var_export(abc(...$nonNumericKeyedArray)); echo "\n===\n"; var_export(zeroOneTwo(...$nonNumericKeyedArray));

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.4.140.0130.00717.64
8.4.130.0100.01117.59
8.4.120.0160.00420.83
8.4.110.0090.01118.73
8.4.100.0100.01018.60
8.4.90.0050.00320.76
8.4.80.0120.01017.74
8.4.70.0120.00818.09
8.4.60.0100.01120.75
8.4.50.0130.00625.88
8.4.40.0100.01019.75
8.4.30.0060.00320.64
8.4.20.0110.01119.97
8.4.10.0060.00318.75
8.3.270.0120.00816.60
8.3.260.0120.00716.44
8.3.250.0120.00618.78
8.3.240.0110.00616.77
8.3.230.0140.00516.64
8.3.220.0090.00818.73
8.3.210.0110.00818.39
8.3.200.0030.00616.58
8.3.190.0080.00616.95
8.3.180.0130.00616.34
8.3.170.0050.00317.28
8.3.160.0070.01116.73
8.3.150.0040.00416.59
8.3.140.0040.00417.19
8.3.130.0040.00418.51
8.3.120.0000.00920.56
8.3.110.0000.00820.94
8.3.100.0090.00024.06
8.3.90.0110.00426.77
8.3.80.0050.00516.63
8.3.70.0070.00716.75
8.3.60.0080.00816.63
8.3.50.0140.00418.54
8.3.40.0090.00618.84
8.3.30.0130.00319.04
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0020.00620.48
8.2.280.0090.00919.10
8.2.270.0140.00317.36
8.2.260.0030.00518.89
8.2.250.0080.00017.55
8.2.240.0160.00317.17
8.2.230.0080.00022.58
8.2.220.0040.00437.54
8.2.210.0030.00626.77
8.2.200.0000.01017.00
8.2.190.0030.01418.66
8.2.180.0110.00725.92
8.2.170.0070.01718.91
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00721.07
8.2.110.0130.00321.00
8.2.100.0060.00618.16
8.2.90.0080.00018.28
8.2.80.0060.00317.97
8.2.70.0050.00318.04
8.2.60.0000.00818.16
8.2.50.0030.00518.10
8.2.40.0000.00819.34
8.2.30.0040.00418.27
8.2.20.0080.00020.42
8.2.10.0040.00418.00
8.2.00.0040.00419.22
8.1.330.0110.00821.95
8.1.320.0070.00116.23
8.1.310.0070.00716.55
8.1.300.0090.00917.78
8.1.290.0030.00630.84
8.1.280.0110.00725.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00621.96
8.1.230.0110.00022.72
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0000.01017.35
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00818.87
8.1.160.0000.00718.89
8.1.150.0000.00718.64
8.1.140.0000.00717.36
8.1.130.0070.00018.77
8.1.120.0050.00217.53
8.1.110.0000.00817.47
8.1.100.0000.00717.36
8.1.90.0040.00417.44
8.1.80.0000.00817.35
8.1.70.0030.00317.38
8.1.60.0000.00817.48
8.1.50.0040.00417.54
8.1.40.0170.01017.38
8.1.30.0210.00617.51
8.1.20.0230.00417.56
8.1.10.0210.00617.42
8.1.00.0090.00317.43
8.0.300.0040.00419.64
8.0.290.0070.00016.88
8.0.280.0030.00318.42
8.0.270.0040.00416.88
8.0.260.0000.00718.33
8.0.250.0030.00317.00
8.0.240.0040.00417.05
8.0.230.0030.00316.90
8.0.220.0030.00316.90
8.0.210.0030.00516.95
8.0.200.0050.00216.96
8.0.190.0000.00717.02
8.0.180.0000.00816.99
8.0.170.0120.00416.88
8.0.160.0190.00216.79
8.0.150.0090.01116.84
8.0.140.0150.00616.78
8.0.130.0170.00216.80
8.0.120.0190.00316.80
8.0.110.0130.00516.71
8.0.100.0190.00316.81
8.0.90.0190.00416.83
8.0.80.0140.00716.85
8.0.70.0180.00416.74
8.0.60.0200.00016.86
8.0.50.0170.00416.82
8.0.30.0180.00516.84
8.0.20.0170.00716.82
8.0.10.0140.00916.96
7.4.330.0060.00015.55
7.4.320.0030.00316.42
7.4.300.0000.00616.52
7.4.290.0040.00416.55
7.4.280.0140.00216.45
7.4.270.0230.00116.47
7.4.260.0170.00716.44
7.4.250.0230.00016.39
7.4.240.0160.00416.47
7.4.230.0150.00516.40
7.4.220.0130.00516.35
7.4.210.0100.00616.36
7.4.200.0140.00216.27
7.4.190.0160.00316.43
7.4.180.0170.00416.43
7.4.160.0130.00616.45
7.4.150.0160.00416.34
7.4.140.0180.00316.36
7.4.130.0150.00516.31
7.4.120.0150.00516.36
7.4.110.0170.00316.32
7.4.100.0180.00016.33
7.4.90.0180.00316.38
7.4.80.0150.00516.27
7.4.70.0110.00816.34
7.4.60.0160.00316.38
7.4.50.0130.00716.26
7.4.40.0130.00716.24
7.4.30.0160.00316.42
7.4.20.0110.00816.30
7.4.10.0140.00616.29
7.4.00.0120.00716.41

preferences:
31.96 ms | 403 KiB | 5 Q