3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $error = 'Always throw this error'; throw new Exception($error); // Code following an exception is not executed. echo 'Never executed'; } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\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.3.40.0070.00718.79
8.3.30.0120.00318.59
8.3.20.0040.00418.82
8.3.10.0040.00420.66
8.3.00.0040.00419.38
8.2.170.0080.00822.96
8.2.160.0140.00322.11
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00620.02
8.2.110.0080.00321.13
8.2.100.0080.00417.72
8.2.90.0070.00019.05
8.2.80.0090.00018.05
8.2.70.0000.00817.63
8.2.60.0030.00617.78
8.2.50.0040.00418.07
8.2.40.0040.00419.89
8.2.30.0080.00018.12
8.2.20.0080.00017.63
8.2.10.0000.00717.84
8.2.00.0040.00417.77
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0040.00720.75
8.1.230.0030.00920.91
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0060.00317.48
8.1.190.0000.00817.52
8.1.180.0040.00418.10
8.1.170.0040.00420.67
8.1.160.0000.00718.86
8.1.150.0000.00718.63
8.1.140.0000.00817.36
8.1.130.0000.00717.77
8.1.120.0070.00017.34
8.1.110.0040.00417.45
8.1.100.0000.00717.32
8.1.90.0070.00017.45
8.1.80.0040.00417.31
8.1.70.0030.00517.42
8.1.60.0080.00017.57
8.1.50.0020.00517.38
8.1.40.0040.00417.54
8.1.30.0000.00817.55
8.1.20.0040.00417.61
8.1.10.0000.00717.49
8.1.00.0040.00417.50
8.0.300.0030.00520.07
8.0.290.0030.00616.75
8.0.280.0030.00318.30
8.0.270.0070.00017.24
8.0.260.0030.00316.91
8.0.250.0000.00717.02
8.0.240.0050.00317.04
8.0.230.0040.00416.96
8.0.220.0070.00016.84
8.0.210.0030.00616.88
8.0.200.0000.00616.85
8.0.190.0040.00716.83
8.0.180.0040.00416.92
8.0.170.0090.00016.79
8.0.160.0030.00316.97
8.0.150.0030.00516.89
8.0.140.0030.00716.64
8.0.130.0070.00013.38
8.0.120.0000.00816.86
8.0.110.0000.00816.95
8.0.100.0000.00817.00
8.0.90.0080.00016.90
8.0.80.0100.00616.98
8.0.70.0000.00717.01
8.0.60.0050.00216.77
8.0.50.0000.00716.77
8.0.30.0080.01117.04
8.0.20.0140.00517.27
8.0.10.0000.00917.01
8.0.00.0140.00916.83
7.4.330.0000.00512.90
7.4.320.0000.00616.59
7.4.300.0030.00316.41
7.4.290.0050.00316.58
7.4.280.0090.00016.52
7.4.270.0000.00716.59
7.4.260.0030.00313.38
7.4.250.0000.00916.47
7.4.240.0000.00716.64
7.4.230.0030.00316.42
7.4.220.0060.00916.36
7.4.210.0060.00816.51
7.4.200.0000.00716.38
7.4.190.0070.00016.43
7.4.160.0150.00916.54
7.4.150.0100.00717.07
7.4.140.0080.01317.11
7.4.130.0080.01016.49
7.4.120.0110.00516.58
7.4.110.0030.01416.35
7.4.100.0080.00816.37
7.4.90.0160.00016.47
7.4.80.0070.01116.27
7.4.70.0030.01716.44
7.4.60.0060.01016.75
7.4.50.0040.00417.56
7.4.40.0070.01020.92
7.4.30.0100.00616.42
7.4.10.0100.01014.83
7.4.00.0080.00714.99
7.3.330.0030.00313.16
7.3.320.0030.00313.09
7.3.310.0070.00016.39
7.3.300.0030.00316.16
7.3.290.0210.00816.25
7.3.280.0050.00916.32
7.3.270.0140.00417.07
7.3.260.0090.01118.24
7.3.250.0070.01116.58
7.3.240.0100.00716.26
7.3.230.0100.00616.34
7.3.210.0110.00716.30
7.3.200.0030.01419.39
7.3.190.0090.01316.58
7.3.180.0200.00016.21
7.3.170.0110.00616.33
7.3.160.0130.00316.23
7.3.130.0060.01214.96
7.3.120.0050.01314.84
7.3.110.0030.01414.86
7.3.100.0040.01114.97
7.3.90.0060.01014.82
7.3.80.0030.00614.58
7.3.70.0000.01114.65
7.3.60.0040.00714.71
7.3.50.0030.01314.82
7.3.40.0110.00014.66
7.3.30.0090.00614.61
7.3.20.0100.00616.79
7.3.10.0090.00616.50
7.3.00.0030.00616.66
7.2.330.0160.00716.33
7.2.320.0110.00616.39
7.2.310.0110.00816.71
7.2.300.0080.00816.39
7.2.290.0060.01116.75
7.2.260.0070.01315.08
7.2.250.0070.01015.17
7.2.240.0000.01415.03
7.2.230.0030.01614.90
7.2.220.0060.00615.17
7.2.210.0030.00915.18
7.2.200.0040.00815.09
7.2.190.0030.01014.97
7.2.180.0030.00715.13
7.2.170.0040.01214.92
7.2.160.0060.00314.82
7.2.150.0070.01016.94
7.2.140.0000.01816.98
7.2.130.0030.00616.70
7.2.120.0030.01017.05
7.2.110.0040.01117.04
7.2.100.0060.00916.98
7.2.90.0060.00816.61
7.2.80.0040.00516.70
7.2.70.0000.01417.03
7.2.60.0000.01216.84
7.2.50.0000.00916.75
7.2.40.0070.00716.75
7.2.30.0000.01016.89
7.2.20.0030.01016.97
7.2.10.0030.00916.66
7.2.00.0100.01017.87
7.1.330.0060.00615.72
7.1.320.0190.00015.96
7.1.310.0070.00715.75
7.1.300.0070.00715.79
7.1.290.0120.00315.77
7.1.280.0070.00715.79
7.1.270.0100.00315.86
7.1.260.0070.00315.72
7.1.250.0030.01315.81
7.1.240.0110.00615.83
7.1.230.0050.00715.89
7.1.220.0030.00915.88
7.1.210.0100.00015.82
7.1.200.0040.00515.59
7.1.190.0130.00315.53
7.1.180.0030.00515.69
7.1.170.0060.00315.87
7.1.160.0030.00515.88
7.1.150.0110.00015.76
7.1.140.0100.00315.96
7.1.130.0070.00715.80
7.1.120.0070.00715.64
7.1.110.0140.00015.62
7.1.100.0050.00716.94
7.1.90.0040.00415.65
7.1.80.0090.00615.57
7.1.70.0060.00416.43
7.1.60.0070.01117.59
7.1.50.0070.00516.29
7.1.40.0080.00815.54
7.1.30.0000.01515.63
7.1.20.0100.00715.63
7.1.10.0060.01015.49
7.1.00.0080.03219.15
7.0.330.0030.01015.49
7.0.320.0030.00915.06
7.0.310.0000.01115.07
7.0.300.0040.00415.53
7.0.290.0060.00615.57
7.0.280.0000.01315.43
7.0.270.0070.00715.15
7.0.260.0070.00715.31
7.0.250.0100.00315.58
7.0.240.0000.01115.59
7.0.230.0070.01015.29
7.0.220.0060.00615.21
7.0.210.0060.00615.54
7.0.200.0030.00816.11
7.0.190.0050.01015.49
7.0.180.0030.00715.25
7.0.170.0040.01115.23
7.0.160.0030.01015.23
7.0.150.0090.00315.33
7.0.140.0060.03818.73
7.0.130.0060.00915.12
7.0.120.0020.02318.89
7.0.110.0030.01015.44
7.0.100.0000.01715.31
7.0.90.0100.00615.50
7.0.80.0030.01015.44
7.0.70.0030.00615.49
7.0.60.0100.04117.56
7.0.50.0040.02416.62
7.0.40.0070.04515.53
7.0.30.0060.04115.64
7.0.20.0130.02515.67
7.0.10.0050.02715.60
7.0.00.0050.03315.51
5.6.400.0070.00714.41
5.6.390.0030.01513.85
5.6.380.0130.00314.13
5.6.370.0100.00314.50
5.6.360.0100.00313.85
5.6.350.0000.00814.14
5.6.340.0000.01314.56
5.6.330.0120.00314.37
5.6.320.0030.00614.52
5.6.310.0000.00814.47
5.6.300.0030.00714.35
5.6.290.0090.00614.16
5.6.280.0030.04117.65
5.6.270.0040.00714.30
5.6.260.0030.01014.49
5.6.250.0100.00714.62
5.6.240.0050.00814.18
5.6.230.0040.01114.09
5.6.220.0050.00514.38
5.6.210.0070.04417.42
5.6.200.0100.03016.01
5.6.190.0050.02316.30
5.6.180.0050.04516.33
5.6.170.0070.04716.18
5.6.160.0070.04116.15
5.6.150.0090.03916.19
5.6.140.0050.03216.33
5.6.130.0050.02716.19
5.6.120.0050.03916.10
5.6.110.0030.02816.29
5.6.100.0070.04616.09
5.6.90.0030.04216.30
5.6.80.0020.04415.76
5.6.70.0070.04015.85
5.6.60.0020.04615.86
5.6.50.0070.04315.99
5.6.40.0080.04315.81
5.6.30.0100.04215.95
5.6.20.0030.02915.89
5.6.10.0110.01615.93
5.6.00.0050.02815.84
5.5.380.0070.00714.21
5.5.370.0110.00314.28
5.5.360.0000.00914.04
5.5.350.0170.03017.49
5.5.340.0080.04015.94
5.5.330.0070.04216.09
5.5.320.0060.03115.90
5.5.310.0080.04316.20
5.5.300.0080.01816.23
5.5.290.0030.02716.10
5.5.280.0030.04316.11
5.5.270.0110.03816.02
5.5.260.0040.02916.14
5.5.250.0030.04216.04
5.5.240.0100.03915.81
5.5.230.0050.02915.58
5.5.220.0050.04515.86
5.5.210.0080.03815.60
5.5.200.0050.02815.76
5.5.190.0070.04015.81
5.5.180.0000.02815.81
5.5.170.0040.00714.30
5.5.160.0120.02915.87
5.5.150.0070.02515.85
5.5.140.0120.03015.77
5.5.130.0050.03515.79
5.5.120.0030.04515.79
5.5.110.0070.04015.66
5.5.100.0080.04315.46
5.5.90.0050.03415.60
5.5.80.0100.03815.66
5.5.70.0020.04915.71
5.5.60.0070.04315.73
5.5.50.0000.02715.74
5.5.40.0070.04415.66
5.5.30.0050.04215.76
5.5.20.0090.04115.68
5.5.10.0080.04015.73
5.5.00.0060.03615.83
5.4.450.0070.04315.12
5.4.440.0050.02815.19
5.4.430.0070.02715.08
5.4.420.0050.03815.08
5.4.410.0130.03515.16
5.4.400.0070.03714.99
5.4.390.0100.03614.99
5.4.380.0080.04114.86
5.4.370.0000.03114.97
5.4.360.0060.03314.89
5.4.350.0070.02414.96
5.4.340.0040.02514.92
5.4.330.0000.01010.74
5.4.320.0050.02814.96
5.4.310.0100.03514.95
5.4.300.0070.03014.88
5.4.290.0040.02614.78
5.4.280.0080.03814.85
5.4.270.0050.03314.88
5.4.260.0070.02814.87
5.4.250.0050.02714.85
5.4.240.0070.04015.03
5.4.230.0050.02614.93
5.4.220.0060.02614.91
5.4.210.0050.02314.78
5.4.200.0070.02314.96
5.4.190.0110.03214.92
5.4.180.0070.03214.85
5.4.170.0070.04214.88
5.4.160.0100.02014.96
5.4.150.0070.03114.91
5.4.140.0080.02313.50
5.4.130.0030.04113.60
5.4.120.0130.03413.65
5.4.110.0060.03513.65
5.4.100.0070.02013.60
5.4.90.0070.02213.62
5.4.80.0080.02613.73
5.4.70.0050.03913.55
5.4.60.0030.04113.74
5.4.50.0050.04013.63
5.4.40.0090.01713.66
5.4.30.0030.03713.54
5.4.20.0050.03613.54
5.4.10.0060.03413.63
5.4.00.0050.04013.33
5.3.290.0070.02512.67
5.3.280.0020.03012.64
5.3.270.0090.03712.59
5.3.260.0090.03812.65
5.3.250.0010.04312.65
5.3.240.0030.04012.64
5.3.230.0080.02812.59
5.3.220.0030.04312.62
5.3.210.0070.03912.56
5.3.200.0020.02612.62
5.3.190.0050.04312.58
5.3.180.0050.04012.64
5.3.170.0040.04012.63
5.3.160.0100.03012.56
5.3.150.0050.03212.61
5.3.140.0080.03812.63
5.3.130.0080.03112.55
5.3.120.0040.03012.56
5.3.110.0040.04212.63
5.3.100.0070.03912.43
5.3.90.0060.03912.29
5.3.80.0030.03912.26
5.3.70.0060.04012.41
5.3.60.0030.02812.33
5.3.50.0060.02612.23
5.3.40.0030.04212.27
5.3.30.0080.02812.29
5.3.20.0050.02212.10
5.3.10.0000.02212.16
5.3.00.0070.01912.17
5.2.170.0030.04311.29
5.2.160.0030.04011.13
5.2.150.0100.06311.06
5.2.140.0000.05311.17
5.2.130.0030.03710.88
5.2.120.0030.02711.09
5.2.110.0130.02711.24
5.2.100.0070.02311.10
5.2.90.0000.03011.24
5.2.80.0130.02011.06
5.2.70.0000.03011.05
5.2.60.0000.03011.05
5.2.50.0030.02710.99
5.2.40.0030.02710.77
5.2.30.0000.03010.92
5.2.20.0030.02710.93
5.2.10.0030.02710.83
5.2.00.0030.02710.73
5.1.60.0000.02710.01
5.1.50.0000.02310.02
5.1.40.0000.02710.03
5.1.30.0070.02010.32
5.1.20.0030.02310.36
5.1.10.0030.02310.04
5.1.00.0070.0209.98
5.0.50.0000.0238.57
5.0.40.0030.0178.34
5.0.30.0000.0308.05
5.0.20.0000.0208.23
5.0.10.0000.0238.13
5.0.00.0030.0278.09
4.4.90.0000.0137.65
4.4.80.0000.0177.65
4.4.70.0030.0137.65
4.4.60.0030.0337.65
4.4.50.0000.0137.65
4.4.40.0000.0277.65
4.4.30.0030.0137.65
4.4.20.0000.0137.65
4.4.10.0000.0137.65
4.4.00.0000.0277.65
4.3.110.0000.0177.65
4.3.100.0000.0137.65
4.3.90.0000.0137.65
4.3.80.0000.0277.65
4.3.70.0000.0177.65
4.3.60.0070.0077.65
4.3.50.0000.0137.65
4.3.40.0000.0237.65
4.3.30.0000.0137.65
4.3.20.0000.0237.65
4.3.10.0000.0137.65
4.3.00.0000.0137.65

preferences:
44.93 ms | 400 KiB | 5 Q