3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { array_map(function () {throw new \Exception;}, [1, 2, 3]); } catch (\Exception $e) { } try { array_filter([1, 2, 3], function () {throw new \Exception;}); } catch (\Exception $e) { } try { array_reduce([1, 2, 3], function () {throw new \Exception;}); } catch (\Exception $e) { }

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.0210.00018.56
8.3.50.0100.01222.05
8.3.40.0150.00018.76
8.3.30.0040.01218.71
8.3.20.0050.00220.16
8.3.10.0080.00020.66
8.3.00.0080.00020.38
8.2.180.0000.01416.37
8.2.170.0070.00722.96
8.2.160.0070.00722.24
8.2.150.0040.01224.18
8.2.140.0000.00824.66
8.2.130.0100.00018.72
8.2.120.0060.00326.35
8.2.110.0040.00420.98
8.2.100.0060.00618.05
8.2.90.0040.00419.25
8.2.80.0000.00817.97
8.2.70.0000.00917.75
8.2.60.0040.00417.93
8.2.50.0040.00418.09
8.2.40.0030.00620.41
8.2.30.0040.00419.35
8.2.20.0040.00417.61
8.2.10.0060.00317.98
8.2.00.0000.00717.94
8.1.280.0110.00425.92
8.1.270.0040.00423.87
8.1.260.0050.00328.09
8.1.250.0000.00928.09
8.1.240.0050.00917.48
8.1.230.0090.00317.77
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0090.00018.51
8.1.160.0000.00720.77
8.1.150.0080.00018.80
8.1.140.0030.00519.55
8.1.130.0030.00317.50
8.1.120.0030.00417.50
8.1.110.0000.00717.33
8.1.100.0040.00417.39
8.1.90.0000.00717.50
8.1.80.0000.00717.41
8.1.70.0060.00317.48
8.1.60.0080.00017.60
8.1.50.0000.00917.49
8.1.40.0050.00317.41
8.1.30.0080.00017.66
8.1.20.0040.00417.49
8.1.10.0030.00517.59
8.1.00.0040.00417.40
8.0.300.0070.00018.77
8.0.290.0070.00016.61
8.0.280.0000.00718.42
8.0.270.0030.00317.24
8.0.260.0000.00716.75
8.0.250.0000.00616.99
8.0.240.0000.00716.98
8.0.230.0000.00816.85
8.0.220.0000.00716.77
8.0.210.0040.00416.98
8.0.200.0030.00316.97
8.0.190.0030.00317.05
8.0.180.0000.00816.99
8.0.170.0000.00817.05
8.0.160.0000.00816.95
8.0.150.0000.00716.97
8.0.140.0050.00216.95
8.0.130.0030.00313.35
8.0.120.0070.00016.98
8.0.110.0050.00316.93
8.0.100.0040.00416.92
8.0.90.0000.00916.78
8.0.80.0040.01116.89
8.0.70.0070.00016.91
8.0.60.0060.00316.85
8.0.50.0040.00417.02
8.0.30.0100.00717.11
8.0.20.0110.00717.42
8.0.10.0060.00317.16
8.0.00.0100.00716.89
7.4.330.0050.00016.69
7.4.320.0030.00316.60
7.4.300.0040.00416.53
7.4.290.0050.00316.45
7.4.280.0000.00716.50
7.4.270.0040.00416.61
7.4.260.0060.00316.59
7.4.250.0040.00416.56
7.4.240.0050.00316.52
7.4.230.0000.00716.32
7.4.220.0160.00816.56
7.4.210.0080.00916.53
7.4.200.0030.00616.31
7.4.160.0090.00616.76
7.4.150.0060.01217.40
7.4.140.0120.01217.86
7.4.130.0100.00616.52
7.4.120.0040.01316.54
7.4.110.0070.01116.42
7.4.100.0120.00616.44
7.4.90.0060.01216.55
7.4.80.0130.00319.39
7.4.70.0110.00716.48
7.4.60.0140.00316.35
7.4.50.0030.01216.38
7.4.40.0080.00816.54
7.4.30.0150.00616.70
7.4.00.0060.00714.95
7.3.330.0000.00513.16
7.3.320.0060.00013.14
7.3.310.0000.00716.13
7.3.300.0040.00416.16
7.3.290.0000.00716.35
7.3.280.0060.01016.30
7.3.270.0030.01417.40
7.3.260.0110.00616.30
7.3.250.0110.00816.37
7.3.240.0090.01116.45
7.3.230.0100.00716.39
7.3.210.0090.00916.56
7.3.200.0060.00916.34
7.3.190.0060.01116.56
7.3.180.0040.01216.31
7.3.170.0190.00016.44
7.3.160.0060.00916.44
7.3.120.0080.00914.76
7.3.110.0050.01414.88
7.3.100.0070.01214.83
7.3.90.0070.01014.96
7.3.80.0030.01114.80
7.3.70.0040.00914.87
7.3.60.0100.00314.57
7.3.50.0060.00714.64
7.3.40.0060.00814.81
7.3.30.0070.00814.72
7.3.20.0110.00616.72
7.3.10.0080.00716.65
7.3.00.0090.00816.44
7.2.330.0130.00416.64
7.2.320.0190.00816.34
7.2.310.0110.00916.57
7.2.300.0030.01516.67
7.2.290.0060.01516.54
7.2.250.0050.01514.90
7.2.240.0080.01015.11
7.2.230.0060.00714.94
7.2.220.0080.00815.09
7.2.210.0000.01515.05
7.2.200.0040.00914.95
7.2.190.0020.00814.98
7.2.180.0040.00914.99
7.2.170.0090.00614.94
7.2.130.0120.00916.42
7.2.120.0140.00716.32
7.2.110.0060.01016.42
7.2.100.0090.00916.43
7.2.90.0080.01116.61
7.2.80.0100.01016.39
7.2.70.0070.00716.41
7.2.60.0100.00516.59
7.2.50.0110.00716.57
7.2.40.0130.00616.46
7.2.30.0210.00016.14
7.2.20.0140.00515.82
7.2.10.0170.00516.55
7.2.00.0090.00617.96
7.1.330.0050.00715.54
7.1.320.0050.00815.69
7.1.310.0040.01015.64
7.1.300.0080.00515.55
7.1.290.0040.01015.58
7.1.280.0030.01315.69
7.1.270.0020.00815.90
7.1.260.0060.01015.74
7.1.250.0110.00515.27
7.1.200.0080.00415.64
7.1.70.0000.01016.77
7.1.60.0000.01219.77
7.1.50.0120.00816.86
7.1.00.0070.07322.58
7.0.200.0000.01016.74
7.0.60.0300.07021.87
7.0.50.0130.07317.96
7.0.40.0030.04320.30
7.0.30.0300.07720.21
7.0.20.0230.04320.10
7.0.10.0070.05320.12
7.0.00.0000.04320.24
5.6.280.0000.07720.87
5.6.210.0130.04020.73
5.6.200.0070.07018.27
5.6.190.0000.04720.50
5.6.180.0230.05720.55
5.6.170.0370.04720.45
5.6.160.0000.05720.50
5.6.150.0170.07018.16
5.6.140.0130.07318.23
5.6.130.0070.08018.28
5.6.120.0030.08320.99
5.6.110.0130.07720.97
5.6.100.0130.08020.89
5.6.90.0270.07021.00
5.6.80.0100.07320.41
5.5.350.0300.06720.53
5.5.340.0070.05317.95
5.5.330.0070.04020.32
5.5.320.0200.04720.27
5.5.310.0230.08020.27
5.5.300.0100.07717.95
5.5.290.0130.08017.98
5.5.280.0130.06720.77
5.5.270.0070.05320.73
5.5.260.0200.05720.95
5.5.250.0030.04020.67
5.5.240.0470.05720.32

preferences:
54.83 ms | 401 KiB | 5 Q