3v4l.org

run code in 300+ PHP versions simultaneously
<?php function config($key): string { $arr = ["protocol"=> "https", "port"=> "80", "website"=>"wwww.example.com"]; return array_key_exists($key, $arr) ? $arr[$key] : null; } function myfunc(callable $configAccessor){ echo $configAccessor("port"); } myfunc('config');

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.5.30.0110.00619.15
8.5.20.0090.00819.64
8.5.10.0110.00716.39
8.5.00.0150.00719.80
8.4.180.0110.01219.64
8.4.170.0150.00620.62
8.4.160.0160.00623.07
8.4.150.0080.00416.90
8.4.140.0110.00717.39
8.4.130.0120.00817.66
8.4.120.0120.00822.02
8.4.110.0050.00424.20
8.4.100.0040.00517.73
8.4.90.0110.01020.66
8.4.80.0100.00919.03
8.4.70.0150.00618.04
8.4.60.0080.01118.68
8.4.50.0050.00518.82
8.4.40.0140.00717.73
8.4.30.0030.01817.41
8.4.20.0130.01019.38
8.4.10.0030.00620.62
8.3.300.0120.00820.83
8.3.290.0090.01120.91
8.3.280.0110.00820.94
8.3.270.0090.01116.62
8.3.260.0120.00816.81
8.3.250.0120.00718.91
8.3.240.0130.00716.45
8.3.230.0060.00416.54
8.3.220.0110.00819.13
8.3.210.0120.00616.83
8.3.200.0060.00216.72
8.3.190.0070.00117.05
8.3.180.0110.00717.18
8.3.170.0070.01422.50
8.3.160.0040.01417.16
8.3.150.0040.01417.02
8.3.140.0060.00316.71
8.3.130.0080.00018.60
8.3.120.0030.00618.73
8.3.110.0070.00716.62
8.3.100.0110.00024.06
8.3.90.0060.00326.77
8.3.80.0060.00316.50
8.3.70.0070.01116.58
8.3.60.0040.01518.31
8.3.50.0080.00818.36
8.3.40.0090.00918.74
8.3.30.0120.00418.71
8.3.20.0000.00718.98
8.3.10.0000.00821.85
8.3.00.0030.00617.89
8.2.300.0090.00922.18
8.2.290.0130.00616.68
8.2.280.0110.00918.50
8.2.270.0150.00317.34
8.2.260.0030.01516.55
8.2.250.0050.00318.43
8.2.240.0110.00817.25
8.2.230.0090.00020.94
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0000.00916.63
8.2.190.0100.00316.63
8.2.180.0100.01018.16
8.2.170.0070.00722.96
8.2.160.0090.00622.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00420.89
8.2.110.0070.00322.21
8.2.100.0000.01118.00
8.2.90.0080.00019.36
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0070.00317.79
8.2.50.0030.00618.07
8.2.40.0030.00618.22
8.2.30.0000.00718.20
8.2.20.0040.00418.16
8.2.10.0030.00617.97
8.2.00.0080.00319.26
8.1.340.0140.00717.52
8.1.330.0110.00816.06
8.1.320.0130.00816.28
8.1.310.0080.00516.36
8.1.300.0060.00318.36
8.1.290.0060.00318.88
8.1.280.0150.00325.92
8.1.270.0090.00923.70
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00320.86
8.1.230.0070.00319.14
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0100.00417.22
8.1.190.0080.00017.23
8.1.180.0040.00718.10
8.1.170.0000.00818.74
8.1.160.0040.00418.87
8.1.150.0050.00318.84
8.1.140.0040.00417.65
8.1.130.0070.00019.02
8.1.120.0000.00717.34
8.1.110.0000.00717.38
8.1.100.0070.00017.42
8.1.90.0100.00017.41
8.1.80.0070.00017.40
8.1.70.0080.00017.42
8.1.60.0000.00717.48
8.1.50.0000.00817.53
8.1.40.0070.00317.41
8.1.30.0080.00017.55
8.1.20.0000.00817.69
8.1.10.0060.00317.54
8.1.00.0040.00417.52
8.0.300.0070.00018.77
8.0.290.0090.00016.75
8.0.280.0040.00418.45
8.0.270.0050.00216.87
8.0.260.0040.00417.14
8.0.250.0030.00317.04
8.0.240.0000.00717.07
8.0.230.0080.00016.84
8.0.220.0030.00316.77
8.0.210.0030.00316.94
8.0.200.0030.00316.85
8.0.190.0040.00416.95
8.0.180.0040.00416.89
8.0.170.0080.00016.94
8.0.160.0070.00016.78
8.0.150.0000.00716.87
8.0.140.0040.00416.74
8.0.130.0050.00013.32
8.0.120.0040.00416.81
8.0.110.0060.00316.94
8.0.100.0000.00816.95
8.0.90.0070.00016.95
8.0.80.0040.01116.91
8.0.70.0030.00516.78
8.0.60.0040.00416.74
8.0.50.0000.00716.91
8.0.30.0070.01017.17
8.0.20.0040.01417.40
8.0.10.0070.00016.82
8.0.00.0130.00416.63
7.4.330.0000.00515.55
7.4.320.0060.00016.52
7.4.300.0030.00316.60
7.4.290.0050.00216.52
7.4.280.0070.00316.50
7.4.270.0080.00016.61
7.4.260.0030.00316.61
7.4.250.0000.00716.59
7.4.240.0030.00316.62
7.4.230.0070.00016.41
7.4.220.0040.00416.51
7.4.210.0090.00616.58
7.4.200.0030.00316.61
7.4.160.0110.00716.52
7.4.140.0100.00917.86
7.4.130.0090.00616.49
7.4.120.0120.00816.51
7.4.110.0070.01016.38
7.4.100.0060.00916.57
7.4.90.0090.00916.60
7.4.80.0090.01119.39
7.4.70.0080.00816.67
7.4.60.0110.00516.43
7.4.50.0030.01116.23
7.4.40.0130.00416.33
7.4.00.0100.00714.76
7.3.330.0050.00013.13
7.3.320.0000.00513.13
7.3.310.0000.00716.27
7.3.300.0040.00416.29
7.3.290.0030.00316.29
7.3.280.0100.00716.27
7.3.260.0120.01316.46
7.3.240.0070.01016.30
7.3.230.0100.00716.31
7.3.210.0100.00616.54
7.3.200.0080.00816.59
7.3.190.0100.00616.29
7.3.180.0090.00616.57
7.3.170.0060.01816.33
7.3.160.0120.00916.29
7.3.10.0070.00716.20
7.3.00.0140.00016.47
7.2.330.0120.00616.57
7.2.320.0060.00316.71
7.2.310.0100.01416.70
7.2.300.0140.00316.72
7.2.290.0030.01516.79
7.2.130.0000.01616.85
7.2.120.0090.00616.92
7.2.110.0080.00616.75
7.2.100.0090.00316.89
7.2.90.0150.00016.85
7.2.80.0110.00416.86
7.2.70.0000.01317.01
7.2.60.0020.01116.84
7.2.50.0060.00616.97
7.2.40.0970.00517.21
7.2.30.0810.01117.33
7.2.20.0930.00617.20
7.2.10.0650.00917.47
7.2.00.0630.01117.34
7.1.250.0130.00315.78
7.1.200.0080.00515.69
7.1.160.1700.00916.79
7.1.150.1630.00916.75
7.1.140.1780.00916.95
7.1.130.1720.00916.68
7.1.120.0910.00917.01
7.1.110.2230.01316.50
7.1.100.1660.00815.98
7.1.90.2080.00915.75
7.1.80.2010.00916.13
7.1.70.1740.00815.27
7.1.60.2040.01533.19
7.1.50.2750.01233.05
7.1.40.2370.01032.84
7.1.30.2280.01632.45
7.1.20.2100.01632.73
7.1.10.2100.00915.00
7.1.00.1990.00914.93

preferences:
108.84 ms | 1426 KiB | 5 Q