3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 'test'; $func = function()use($var) { echo $var; }; $ref = new ReflectionFunction($func); $functionParameters = []; foreach($ref->getParameters() as $key => $currentParameter) { $functionParameters[$currentParameter->getName()] = func_get_arg($key); }

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.0040.01516.63
8.3.50.0070.00716.16
8.3.40.0110.00418.69
8.3.30.0060.00918.36
8.3.20.0040.00420.39
8.3.10.0000.00821.71
8.3.00.0000.00820.81
8.2.180.0060.00925.92
8.2.170.0180.00418.83
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00422.11
8.2.120.0070.00026.35
8.2.110.0090.00022.29
8.2.100.0110.00018.22
8.2.90.0000.00818.16
8.2.80.0040.00417.97
8.2.70.0040.00418.04
8.2.60.0060.00317.93
8.2.50.0030.00618.10
8.2.40.0040.00420.46
8.2.30.0030.00520.91
8.2.20.0040.00418.14
8.2.10.0080.00018.19
8.2.00.0080.00018.17
8.1.280.0000.01525.92
8.1.270.0040.00424.01
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0000.00822.14
8.1.230.0100.00720.79
8.1.220.0030.00617.78
8.1.210.0090.00018.77
8.1.200.0030.00717.10
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0050.00319.02
8.1.150.0000.00818.90
8.1.140.0000.00819.59
8.1.130.0000.00718.80
8.1.120.0040.00417.43
8.1.110.0040.00417.41
8.1.100.0050.00317.48
8.1.90.0000.00817.54
8.1.80.0030.00317.41
8.1.70.0000.00717.48
8.1.60.0040.00417.58
8.1.50.0000.00717.39
8.1.40.0030.00617.47
8.1.30.0080.00017.49
8.1.20.0080.00017.64
8.1.10.0030.00517.54
8.1.00.0000.00817.43
8.0.300.0050.00219.65
8.0.290.0000.00816.63
8.0.280.0070.00018.36
8.0.270.0070.00017.31
8.0.260.0030.00316.73
8.0.250.0030.00317.00
8.0.240.0030.00316.82
8.0.230.0000.00716.95
8.0.220.0040.00416.91
8.0.210.0000.00716.91
8.0.200.0030.00316.89
8.0.190.0060.00316.99
8.0.180.0030.00616.82
8.0.170.0040.00416.91
8.0.160.0000.00916.90
8.0.150.0070.00016.81
8.0.140.0030.00316.73
8.0.130.0040.00413.25
8.0.120.0040.00416.89
8.0.110.0030.00616.79
8.0.100.0040.00416.99
8.0.90.0000.00816.72
8.0.80.0190.00816.92
8.0.70.0040.00416.93
8.0.60.0000.00816.80
8.0.50.0040.00416.96
8.0.30.0090.00816.89
8.0.20.0080.01117.40
8.0.10.0040.00416.89
8.0.00.0200.00316.85
7.4.330.0050.00015.55
7.4.320.0000.00716.59
7.4.300.0000.00616.49
7.4.290.0030.00516.61
7.4.280.0050.00316.49
7.4.270.0000.00716.52
7.4.260.0030.00613.31
7.4.250.0070.00016.47
7.4.240.0000.00716.59
7.4.230.0000.00716.71
7.4.220.0170.01316.62
7.4.210.0100.01016.64
7.4.200.0030.00316.67
7.4.160.0110.00716.49
7.4.150.0120.00617.40
7.4.140.0090.01017.86
7.4.130.0170.00716.66
7.4.120.0140.00416.48
7.4.110.0160.00616.34
7.4.100.0070.01016.48
7.4.90.0180.00016.55
7.4.80.0070.01019.39
7.4.70.0100.00616.48
7.4.60.0030.01316.59
7.4.50.0030.01316.09
7.4.40.0120.00416.64
7.4.30.0060.01016.52
7.4.00.0000.01814.87
7.3.330.0000.00713.14
7.3.320.0000.00513.13
7.3.310.0030.00316.19
7.3.300.0030.00316.35
7.3.290.0040.01216.31
7.3.280.0080.00916.28
7.3.270.0060.01217.40
7.3.260.0060.01316.27
7.3.250.0090.01016.41
7.3.240.0140.00916.58
7.3.230.0150.00316.43
7.3.210.0180.00616.36
7.3.200.0120.00316.66
7.3.190.0110.00616.34
7.3.180.0090.00916.46
7.3.170.0040.01216.56
7.3.160.0060.00916.51
7.2.330.0140.00316.46
7.2.320.0110.01116.55
7.2.310.0160.00616.82
7.2.300.0100.01016.76
7.2.290.0100.00716.73
7.2.60.0060.00616.93
7.2.00.0030.00919.46
7.1.200.0070.00415.71
7.1.100.0040.01117.84
7.1.70.0110.00717.21
7.1.60.0470.00332.94
7.1.50.0570.00732.95
7.1.40.0400.01332.59
7.1.30.0500.00332.34
7.1.20.0330.01732.71
7.1.10.0230.01014.70
7.1.00.0300.00314.63
7.0.200.0400.01014.97
7.0.190.0270.00714.76
7.0.180.0300.00314.46
7.0.170.0230.01014.30
7.0.160.0300.01014.50
7.0.150.0170.01314.19
7.0.140.0230.01014.44
7.0.130.0270.00714.53
7.0.120.0270.01014.55
7.0.110.0330.00314.48
7.0.100.0230.01014.48
7.0.90.0230.01314.36
7.0.80.0300.00714.43
7.0.70.0370.00314.23
7.0.60.1100.01014.06
7.0.50.0370.01714.26
7.0.40.0700.01014.50
7.0.30.0530.01014.51
7.0.20.0330.00714.42
7.0.10.0230.01714.36
7.0.00.0270.01014.43

preferences:
39.94 ms | 400 KiB | 5 Q