3v4l.org

run code in 300+ PHP versions simultaneously
<?php bar('food', ['bar' => 'fight']); function bar ($a1, $kwargs = ['bar' => null, 'foo' => null]) { extract($kwargs); echo $a1; echo $bar; echo $foo . "\n---\n"; }

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.130.0070.01318.09
8.4.120.0060.00220.64
8.4.110.0120.00922.36
8.4.100.0130.00817.70
8.4.90.0060.00618.49
8.4.80.0150.00517.98
8.4.70.0050.00417.73
8.4.60.0130.00820.37
8.4.50.0020.00719.68
8.4.40.0090.00917.47
8.4.30.0060.01020.39
8.4.20.0120.00918.11
8.4.10.0130.00722.28
8.3.250.0110.00718.81
8.3.240.0130.00616.58
8.3.230.0110.00916.57
8.3.220.0050.00317.11
8.3.210.0080.00818.34
8.3.200.0030.00616.64
8.3.190.0020.00616.39
8.3.180.0130.00518.55
8.3.170.0070.01017.05
8.3.160.0110.00418.55
8.3.150.0160.00320.65
8.3.140.0000.00817.06
8.3.130.0080.00016.86
8.3.120.0090.00318.93
8.3.110.0090.00020.94
8.3.100.0120.00424.06
8.3.90.0050.00326.77
8.3.80.0040.00416.75
8.3.70.0160.00616.58
8.3.60.0060.00916.75
8.3.50.0160.00616.61
8.3.40.0000.01421.70
8.3.30.0090.00618.92
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0060.00326.16
8.2.290.0080.01020.31
8.2.280.0100.01018.34
8.2.270.0100.01017.29
8.2.260.0100.00718.75
8.2.250.0060.00316.61
8.2.240.0090.00018.90
8.2.230.0060.00322.58
8.2.220.0030.01637.54
8.2.210.0000.01526.77
8.2.200.0140.00016.50
8.2.190.0140.00716.58
8.2.180.0120.00916.75
8.2.170.0040.01519.00
8.2.160.0050.00822.96
8.2.150.0000.00825.66
8.2.140.0000.00724.66
8.2.130.0050.00226.16
8.2.120.0040.00422.32
8.2.110.0030.00621.18
8.2.100.0030.00917.91
8.2.90.0260.00917.38
8.2.80.0240.00517.37
8.2.70.0250.00717.49
8.2.60.0320.00217.44
8.2.50.0260.00517.50
8.2.40.0230.00417.38
8.2.30.0250.00417.50
8.2.20.0230.00517.50
8.2.10.0250.00417.23
8.2.00.0220.00617.44
8.1.330.0100.00821.74
8.1.320.0120.00915.97
8.1.310.0090.00018.22
8.1.300.0080.01119.29
8.1.290.0080.00030.84
8.1.280.0100.01025.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00320.46
8.1.230.0040.00822.54
8.1.220.0220.00717.04
8.1.210.0220.00517.04
8.1.200.0250.00217.23
8.1.190.0180.00916.99
8.1.180.0210.00716.88
8.1.170.0250.00316.93
8.1.160.0260.00216.93
8.1.150.0230.00517.19
8.1.140.0210.00817.05
8.1.130.0240.00817.02
8.1.120.0250.00417.11
8.1.110.0260.00417.06
8.1.100.0200.00817.11
8.1.90.0200.00816.94
8.1.80.0280.00316.96
8.1.70.0230.00317.38
8.1.60.0190.00817.38
8.1.50.0200.00817.12
8.1.40.0220.00617.47
8.1.30.0190.00617.58
8.1.20.0240.00317.36
8.1.10.0200.00617.18
8.1.00.0210.00717.09
8.0.300.0270.00216.80
8.0.290.0240.00716.80
8.0.280.0250.00316.80
8.0.270.0260.00416.80
8.0.260.0210.00716.80
8.0.250.0200.00716.80
8.0.240.0250.00616.80
8.0.230.0230.00616.80
8.0.220.0200.00716.80
8.0.210.0240.00516.80
8.0.200.0200.00616.80
8.0.190.0190.00916.80
8.0.180.0250.00316.80
8.0.170.0190.00916.80
8.0.160.0240.00316.80
8.0.150.0260.00416.80
8.0.140.0230.00516.80
8.0.130.0240.00516.80
8.0.120.0260.00416.80
8.0.110.0220.00516.80
8.0.100.0180.01016.80
8.0.90.0230.00516.80
8.0.80.0270.00217.93
8.0.70.0260.00616.80
8.0.60.0260.00316.80
8.0.50.0230.00316.80
8.0.30.0230.00216.80
8.0.20.0280.00016.80
8.0.10.0250.00316.80

preferences:
14.86 ms | 403 KiB | 5 Q