3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($n) { if ($n === 'bar') { throw new RuntimeException('WTF this ^ warning if I\'m catching the exception?'); } return $n; } try { array_map('test', ['foo', 'bar', 'bar']); } catch(RuntimeException $e) { echo $e->getMessage(); }

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.0060.01318.30
8.3.50.0090.01121.18
8.3.40.0040.01118.59
8.3.30.0070.01118.83
8.3.20.0080.00020.22
8.3.10.0080.00023.66
8.3.00.0000.00822.46
8.2.180.0110.01116.38
8.2.170.0070.00722.96
8.2.160.0090.00420.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0060.00317.63
8.2.110.0030.00622.31
8.2.100.0110.00017.91
8.2.90.0000.01017.72
8.2.80.0000.00819.21
8.2.70.0090.00017.61
8.2.60.0000.00817.63
8.2.50.0040.00418.07
8.2.40.0040.00421.01
8.2.30.0040.00419.83
8.2.20.0040.00417.79
8.2.10.0000.00718.05
8.2.00.0000.00818.20
8.1.280.0070.01025.92
8.1.270.0000.00820.14
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00322.54
8.1.230.0060.00620.97
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0000.00817.36
8.1.190.0040.00417.36
8.1.180.0030.00518.10
8.1.170.0040.00418.50
8.1.160.0040.00421.92
8.1.150.0040.00418.82
8.1.140.0030.00517.52
8.1.130.0000.00817.61
8.1.120.0070.00017.49
8.1.110.0000.00717.36
8.1.100.0030.00317.48
8.1.90.0030.00617.50
8.1.80.0050.00317.51
8.1.70.0030.00317.46
8.1.60.0040.00417.56
8.1.50.0000.00717.51
8.1.40.0090.00017.42
8.1.30.0060.00317.69
8.1.20.0000.00817.64
8.1.10.0000.00717.50
8.1.00.0020.00517.52
8.0.300.0040.00420.13
8.0.290.0040.00416.75
8.0.280.0000.00718.49
8.0.270.0070.00017.26
8.0.260.0000.00617.25
8.0.250.0000.00716.90
8.0.240.0060.00016.93
8.0.230.0000.00716.93
8.0.220.0030.00316.95
8.0.210.0000.00716.80
8.0.200.0000.00716.85
8.0.190.0030.00516.99
8.0.180.0040.00416.91
8.0.170.0030.00516.94
8.0.160.0040.00416.90
8.0.150.0000.00716.81
8.0.140.0000.00716.88
8.0.130.0030.00613.45
8.0.120.0000.00916.92
8.0.110.0080.00016.93
8.0.100.0030.00516.95
8.0.90.0050.00216.87
8.0.80.0150.00016.88
8.0.70.0000.00716.93
8.0.60.0000.00816.94
8.0.50.0000.00716.84
8.0.30.0110.00916.80
8.0.20.0100.01017.40
8.0.10.0040.00416.95
8.0.00.0130.00516.92
7.4.330.0000.00615.08
7.4.320.0030.00316.63
7.4.300.0000.00716.52
7.4.290.0000.00716.59
7.4.280.0100.00016.59
7.4.270.0000.00716.52
7.4.260.0000.00716.48
7.4.250.0040.00416.41
7.4.240.0040.00416.46
7.4.230.0040.00416.57
7.4.220.0100.01316.64
7.4.210.0120.00316.55
7.4.200.0050.00316.65
7.4.160.0040.01216.36
7.4.150.0180.00017.40
7.4.140.0080.01417.86
7.4.130.0140.00716.53
7.4.120.0110.00516.53
7.4.110.0030.01316.55
7.4.100.0110.01116.55
7.4.90.0140.00316.52
7.4.80.0100.00719.39
7.4.70.0110.00516.49
7.4.60.0150.00016.57
7.4.50.0000.00616.39
7.4.40.0060.01016.50
7.4.30.0070.01016.43
7.4.10.0120.00615.18
7.4.00.0070.01015.06
7.3.330.0020.00213.39
7.3.320.0000.00513.24
7.3.310.0080.00016.41
7.3.300.0060.00016.23
7.3.290.0100.00816.32
7.3.280.0100.00816.37
7.3.270.0100.00717.40
7.3.260.0070.01016.45
7.3.250.0070.01016.55
7.3.240.0130.00616.35
7.3.230.0080.00916.40
7.3.210.0070.01016.56
7.3.200.0140.00719.39
7.3.190.0080.00816.37
7.3.180.0100.00716.41
7.3.170.0070.01316.32
7.3.160.0130.00616.50
7.3.130.0030.01614.72
7.3.120.0070.01115.04
7.3.110.0140.00315.02
7.3.100.0040.01114.83
7.3.90.0000.00914.93
7.3.80.0060.00614.85
7.3.70.0060.00614.49
7.3.60.0070.01014.96
7.3.50.0090.00014.73
7.3.40.0100.00014.60
7.3.30.0120.00414.60
7.3.20.0090.00616.78
7.3.10.0070.00416.72
7.3.00.0030.01116.64
7.2.330.0090.00916.64
7.2.320.0110.00616.70
7.2.310.0080.00816.60
7.2.300.0090.00916.72
7.2.290.0120.00616.74
7.2.260.0100.01014.77
7.2.250.0030.01614.95
7.2.240.0040.01115.00
7.2.230.0040.01414.75
7.2.220.0040.00915.05
7.2.210.0090.00315.26
7.2.200.0000.01314.85
7.2.190.0110.00715.21
7.2.180.0070.00415.01
7.2.170.0130.00314.91
7.2.160.0030.00615.11
7.2.150.0130.00016.82
7.2.140.0060.00916.98
7.2.130.0070.00716.85
7.2.120.0070.00616.93
7.2.110.0060.00516.76
7.2.100.0040.00916.86
7.2.90.0060.00816.94
7.2.80.0060.00916.86
7.2.70.0080.00416.89
7.2.60.0090.00616.91
7.2.50.0040.00616.97
7.2.40.0090.00516.97
7.2.30.0040.00816.80
7.2.20.0070.00816.97
7.2.10.0070.00716.95
7.2.00.0050.01017.04
7.1.330.0110.00415.98
7.1.320.0070.00715.96
7.1.310.0080.00415.97
7.1.300.0090.00615.84
7.1.290.0060.00615.81
7.1.280.0070.00715.77
7.1.270.0070.00415.61
7.1.260.0030.00815.67
7.1.250.0080.00615.71
7.1.240.0000.01115.80
7.1.230.0000.01115.81
7.1.220.0070.00315.48
7.1.210.0040.01115.82
7.1.200.0040.00815.73
7.1.190.0090.00315.90
7.1.180.0000.01315.83
7.1.170.0060.00915.86
7.1.160.0030.00715.65
7.1.150.0070.00315.62
7.1.140.0110.00415.71
7.1.130.0060.00615.93
7.1.120.0030.00915.52
7.1.110.0030.01215.98
7.1.100.0100.00517.07
7.1.90.0120.00015.89
7.1.80.0090.00315.89
7.1.70.0050.00816.17
7.1.60.0040.01617.85
7.1.50.0050.00916.45
7.1.40.0030.00615.54
7.1.30.0000.00815.92
7.1.20.0060.01015.84
7.1.10.0090.00615.62
7.1.00.0020.05218.99
7.0.330.0000.01215.09
7.0.320.0070.00715.13
7.0.310.0090.00315.39
7.0.300.0030.00715.36
7.0.290.0030.01415.19
7.0.280.0100.00315.47
7.0.270.0090.00615.41
7.0.260.0080.00315.27
7.0.250.0090.00615.54
7.0.240.0100.00715.13
7.0.230.0040.00415.25
7.0.220.0060.00615.26
7.0.210.0070.00715.54
7.0.200.0100.00216.02
7.0.190.0030.01215.07
7.0.180.0130.00015.52
7.0.170.0000.00815.55
7.0.160.0120.00315.52
7.0.150.0000.01415.50
7.0.140.0050.00315.16
7.0.130.0070.01115.24
7.0.120.0040.01415.28
7.0.110.0070.01015.45
7.0.100.0030.01015.49
7.0.90.0100.00415.46
7.0.80.0030.01015.48
7.0.70.0070.00715.49
7.0.60.0030.03917.63
7.0.50.0030.03216.63
7.0.40.0070.02516.94
7.0.30.0120.02316.72
7.0.20.0130.04116.80
7.0.10.0080.04716.68
7.0.00.0080.04516.78
5.6.400.0070.00713.98
5.6.390.0000.01514.52
5.6.380.0060.00314.15
5.6.370.0080.00313.86
5.6.360.0070.00714.14
5.6.350.0080.00014.24
5.6.340.0110.00414.60
5.6.330.0000.00814.58
5.6.320.0030.01314.10
5.6.310.0060.01014.33
5.6.300.0000.01414.32
5.6.290.0070.00314.00
5.6.280.0070.03617.56
5.6.270.0120.00614.45
5.6.260.0110.00414.38
5.6.250.0040.00814.25
5.6.240.0110.00614.22
5.6.230.0070.01014.26
5.6.220.0070.00714.36
5.6.210.0070.03817.51
5.6.200.0060.03616.33
5.6.190.0060.03017.63
5.6.180.0170.04217.32
5.6.170.0240.03617.33
5.6.160.0090.04617.42
5.6.150.0070.02616.28
5.6.140.0100.04016.20
5.6.130.0050.02416.14
5.6.120.0030.02417.51
5.6.110.0100.04417.56
5.6.100.0120.03417.65
5.6.90.0070.04517.54
5.6.80.0100.04217.30
5.6.70.1180.02117.43
5.6.60.0100.00614.14
5.6.50.0060.00913.92
5.6.40.0060.01214.02
5.6.30.0030.01014.31
5.6.20.0000.01314.03
5.6.10.0030.01014.27
5.6.00.0040.01114.11
5.5.380.0120.00614.30
5.5.370.0080.00814.22
5.5.360.0030.00914.30
5.5.350.0130.04217.36
5.5.340.0090.04116.04
5.5.330.0070.04317.32
5.5.320.0170.02217.36
5.5.310.0150.04317.38
5.5.300.0060.04016.04
5.5.290.0070.04315.94
5.5.280.0100.04317.42
5.5.270.0110.04117.60
5.5.260.0030.04617.27
5.5.250.0110.03217.52
5.5.240.0170.02517.27
5.5.230.0000.00914.18
5.5.220.0090.00314.13
5.5.210.0030.01214.25
5.5.200.0090.00914.10
5.5.190.0110.00414.29
5.5.180.0030.01014.30
5.5.170.0040.01114.17
5.5.160.0140.00314.27
5.5.150.0090.00614.25
5.5.140.0090.00914.33
5.5.130.0030.00614.07
5.5.120.0060.00613.97
5.5.110.0130.00314.25
5.5.100.0080.00314.19
5.5.90.0090.00314.34
5.5.80.0030.01014.18
5.5.70.0030.00914.08
5.5.60.0030.01013.92
5.5.50.0100.00314.34
5.5.40.0070.00314.23
5.5.30.0040.01114.32
5.5.20.0110.00314.17
5.5.10.0040.00414.23
5.5.00.0030.01013.84
5.4.450.1030.02515.31
5.4.440.0960.02015.30
5.4.430.0850.02315.35
5.4.420.1110.02615.30
5.4.410.0950.02115.35
5.4.400.0980.01815.12
5.4.390.0930.02215.06
5.4.380.0920.02515.01
5.4.370.1100.01815.03
5.4.360.1110.02015.16
5.4.350.0900.02415.01
5.4.340.1080.02715.14
5.4.330.0160.00010.74
5.4.320.1040.02215.01
5.4.310.0920.02115.04
5.4.300.1030.02714.97
5.4.290.1010.02514.84
5.4.280.1160.02114.82
5.4.270.1070.02414.93
5.4.260.0100.03315.03
5.4.250.0070.03814.97
5.4.240.0420.02315.19
5.4.230.1060.02615.17
5.4.220.1000.02314.88
5.4.210.0900.02215.08
5.4.200.0900.02215.15
5.4.190.0980.02115.03
5.4.180.0880.02115.11
5.4.170.1080.02214.84
5.4.160.0900.02214.98
5.4.150.1100.02615.05
5.4.140.1020.02713.68
5.4.130.1050.02513.77
5.4.120.0130.03213.63
5.4.110.0030.02213.53
5.4.100.0060.02113.55
5.4.90.0230.02513.64
5.4.80.1140.02113.67
5.4.70.0230.02513.81
5.4.60.0180.01813.79
5.4.50.0050.04013.73
5.4.40.0170.03213.76
5.4.30.0130.02813.69
5.4.20.0220.03713.59
5.4.10.0060.00610.83
5.4.00.0000.00611.04

preferences:
67.81 ms | 401 KiB | 5 Q