3v4l.org

run code in 200+ PHP versions simultaneously
<?php function test() { try { throw new \RuntimeException('Test 1'); } catch (\RuntimeException $e) { throw new \RuntimeException('Test 2'); } finally { return 'finally'; } } echo test();
based on ZJ6XI

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)
7.4.40.0160.00016.49
7.4.30.0080.01116.42
7.4.20.0090.00916.46
7.4.10.0120.00716.46
7.4.00.0090.00916.51
7.3.160.0160.00016.29
7.3.150.0090.00916.38
7.3.140.0080.01016.42
7.3.130.0070.01116.34
7.3.120.0080.00916.41
7.3.110.0080.01016.34
7.3.100.0090.01116.40
7.3.90.0090.00816.34
7.3.80.0100.00916.35
7.3.70.0070.01216.32
7.3.60.0090.00816.37
7.3.50.0090.00916.31
7.3.40.0100.00916.35
7.3.30.0090.00916.31
7.3.20.0140.00816.46
7.3.10.0110.00916.50
7.3.00.0100.00916.47
7.2.290.0030.01316.21
7.2.280.0090.00916.53
7.2.270.0090.01016.52
7.2.260.0090.01016.56
7.2.250.0090.00916.54
7.2.240.0110.00716.50
7.2.230.0090.01116.58
7.2.220.0070.01216.55
7.2.210.0090.01016.54
7.2.200.0070.01216.53
7.2.190.0090.01016.53
7.2.180.0090.01116.50
7.2.170.0110.01016.53
7.2.160.0090.01016.51
7.2.150.0100.01116.70
7.2.140.0090.01116.70
7.2.130.0110.00816.72
7.2.120.0110.00816.70
7.2.110.0100.01016.67
7.2.100.0100.00816.69
7.2.90.0080.01116.70
7.2.80.0090.01016.68
7.2.70.0090.01116.73
7.2.60.0080.01216.70
7.2.50.0110.01016.65
7.2.40.0080.01116.70
7.2.30.0090.01116.74
7.2.20.0080.01216.67
7.2.10.0090.01216.66
7.2.00.0100.01016.66
7.1.330.0160.01616.45
7.1.320.0110.00916.42
7.1.310.0150.02416.16
7.1.300.0160.00616.22
7.1.290.0110.01016.22
7.1.280.0190.01116.23
7.1.270.0120.00716.23
7.1.260.0120.01015.98
7.1.250.0140.00916.18
7.1.240.0100.01216.12
7.1.230.0120.00816.13
7.1.220.0160.00716.02
7.1.210.0120.01116.30
7.1.200.0130.01116.12
7.1.190.0100.01216.17
7.1.180.0130.01216.33
7.1.170.0140.00916.23
7.1.160.0130.01016.13
7.1.150.0140.00916.28
7.1.140.0110.00916.34
7.1.130.0180.00416.17
7.1.120.0110.00716.16
7.1.110.0140.00816.16
7.1.100.0100.01016.27
7.1.90.0120.00716.27
7.1.80.0150.00916.34
7.1.70.0170.00816.24
7.1.60.0070.01216.29
7.1.50.0160.00816.07
7.1.40.0160.00516.24
7.1.30.0170.00716.27
7.1.20.0150.01316.29
7.1.10.0100.01216.35
7.1.00.0140.00716.07
7.0.330.0130.00916.06
7.0.320.0190.00915.98
7.0.310.0110.01116.04
7.0.300.0120.01015.98
7.0.290.0120.01515.95
7.0.280.0140.00815.98
7.0.270.0140.00816.06
7.0.260.0130.00915.94
7.0.250.0150.00916.07
7.0.240.0170.00716.04
7.0.230.0130.01216.15
7.0.220.0190.00916.00
7.0.210.0170.01116.01
7.0.200.0180.00716.01
7.0.190.0140.01016.06
7.0.180.0150.01516.10
7.0.170.0210.00916.09
7.0.160.0150.01116.04
7.0.150.0140.01216.07
7.0.140.0300.00516.05
7.0.130.0060.00515.83
7.0.120.0230.02015.88
7.0.110.0130.00915.70
7.0.100.0160.00716.03
7.0.90.0230.01215.81
7.0.80.0180.00915.98
7.0.70.0100.01215.94
7.0.60.0160.00915.79
7.0.50.0130.01015.85
7.0.40.0200.00915.91
7.0.30.0120.00715.86
7.0.20.0200.00615.93
7.0.10.0080.01115.91
7.0.00.0130.01015.76
5.6.400.0120.01415.70
5.6.390.0130.01315.63
5.6.380.0180.00815.81
5.6.370.0160.01015.96
5.6.360.0210.01315.79
5.6.350.0150.01115.66
5.6.340.0200.02115.74
5.6.330.0120.01215.68
5.6.320.0140.01415.55
5.6.310.0130.01515.80
5.6.300.0150.01515.86
5.6.290.0160.01015.80
5.6.280.0210.00515.73
5.6.270.0120.01015.46
5.6.260.0090.00815.70
5.6.250.0210.00715.77
5.6.240.0180.01215.54
5.6.230.0130.01415.49
5.6.220.0190.00915.70
5.6.210.0180.00815.73
5.6.200.0170.00915.66
5.6.190.0220.00715.57
5.6.180.0150.01015.55
5.6.170.0080.02115.64
5.6.160.0080.01915.48
5.6.150.0090.01215.56
5.6.140.0100.01115.59
5.6.130.0140.00615.42
5.6.120.0060.01515.60
5.6.110.0160.00815.68
5.6.100.0180.00915.66
5.6.90.0140.01615.64
5.6.80.0130.01415.71
5.6.70.0160.01215.70
5.6.60.0170.00915.51
5.6.50.0200.00815.50
5.6.40.0220.00815.55
5.6.30.0200.00915.63
5.6.20.0240.00515.54
5.6.10.0170.00915.70
5.6.00.0200.00515.78
5.5.380.0110.01015.70
5.5.370.0190.00915.57
5.5.360.0170.01715.64
5.5.350.0130.01615.42
5.5.340.0180.01415.64
5.5.330.0220.01115.94
5.5.320.0160.01515.56
5.5.310.0180.01215.53
5.5.300.0210.00915.62
5.5.290.0210.00615.78
5.5.280.0130.00815.77
5.5.270.0130.01815.79
5.5.260.0130.01215.46
5.5.250.0150.01615.53
5.5.240.0080.01715.63
5.5.230.0130.01715.74
5.5.220.0110.01415.66
5.5.210.0160.01215.50
5.5.200.0120.01815.41
5.5.190.0140.01415.58
5.5.180.0120.01215.61
5.5.170.0120.01115.52
5.5.160.0120.01715.67
5.5.150.0080.01615.42
5.5.140.0180.00715.55
5.5.130.0130.01215.62
5.5.120.0160.00915.59
5.5.110.0060.01715.50
5.5.100.0110.01515.51
5.5.90.0080.01715.69
5.5.80.0120.01215.69
5.5.70.0140.01215.52
5.5.60.0150.01115.56
5.5.50.0150.00815.70
5.5.40.0070.01515.52
5.5.30.0120.01315.49
5.5.20.0080.01415.71
5.5.10.0120.01315.63
5.5.00.0180.01215.74
5.4.450.0120.01112.41
5.4.440.0040.01212.36
5.4.430.0050.01112.38
5.4.420.0120.00412.29
5.4.410.0080.01012.32
5.4.400.0100.00612.30
5.4.390.0110.01012.34
5.4.380.0150.00612.22
5.4.370.0110.01212.27
5.4.360.0110.00812.28
5.4.350.0160.00412.38
5.4.340.0110.00712.14
5.4.330.0130.00312.32
5.4.320.0070.01212.22
5.4.310.0120.00612.42
5.4.300.0090.00812.17
5.4.290.0090.01212.37
5.4.280.0100.00812.29
5.4.270.0160.00412.31
5.4.260.0120.00612.21
5.4.250.0090.01012.42
5.4.240.0120.00512.46
5.4.230.0130.00812.29
5.4.220.0090.00812.23
5.4.210.0100.00812.22
5.4.200.0080.01112.20
5.4.190.0080.00812.39
5.4.180.0080.00812.17
5.4.170.0080.00912.39
5.4.160.0070.01412.10
5.4.150.0110.01012.20
5.4.140.0130.00812.40
5.4.130.0090.00912.42
5.4.120.0100.01012.34
5.4.110.0110.00512.43
5.4.100.0140.00712.36
5.4.90.0130.00712.41
5.4.80.0110.00712.36
5.4.70.0100.00912.32
5.4.60.0120.00712.40
5.4.50.0120.00712.39
5.4.40.0140.00712.39
5.4.30.0080.01212.33
5.4.20.0130.00812.39
5.4.10.0090.01112.36
5.4.00.0110.00612.34
5.3.290.0140.00612.76
5.3.280.0100.01012.78
5.3.270.0060.01312.78
5.3.260.0120.00712.74
5.3.250.0150.00712.81
5.3.240.0060.01112.69
5.3.230.0120.01012.66
5.3.220.0140.00712.72
5.3.210.0140.00612.65
5.3.200.0140.00712.69
5.3.190.0150.00512.79
5.3.180.0150.00512.91
5.3.170.0120.00613.02
5.3.160.0160.00512.84
5.3.150.0190.00512.89
5.3.140.0100.01212.92
5.3.130.0120.00812.84
5.3.120.0120.00912.98
5.3.110.0160.00712.76
5.3.100.0080.01412.84
5.3.90.0190.00612.95
5.3.80.0150.00512.70
5.3.70.0110.01012.78
5.3.60.0140.00512.83
5.3.50.0120.00812.77
5.3.40.0100.00812.74
5.3.30.0090.01012.75
5.3.20.0140.00512.76
5.3.10.0110.01112.50
5.3.00.0080.01212.57
5.2.170.0100.00811.93
5.2.160.0110.00611.92
5.2.150.0100.00611.96
5.2.140.0110.00711.72
5.2.130.0050.01211.95
5.2.120.0120.00511.77
5.2.110.0090.00911.77
5.2.100.0120.00911.72
5.2.90.0090.01011.83
5.2.80.0100.00811.74
5.2.70.0170.01411.71
5.2.60.0080.01111.64
5.2.50.0130.00811.86
5.2.40.0100.00911.76
5.2.30.0110.00711.71
5.2.20.0140.00611.64
5.2.10.0140.00511.71
5.2.00.0090.00711.69
5.1.60.0080.00711.54
5.1.50.0130.00511.54
5.1.40.0100.00711.54
5.1.30.0080.00811.54
5.1.20.0170.00211.54
5.1.10.0120.00911.54
5.1.00.0120.00811.54
5.0.50.0110.00611.54
5.0.40.0120.00611.54
5.0.30.0100.00411.54
5.0.20.0090.00511.54
5.0.10.0090.00411.54
5.0.00.0080.00311.54
4.4.90.0040.00411.54
4.4.80.0050.00411.54
4.4.70.0040.00511.54
4.4.60.0070.00311.54
4.4.50.0040.00311.54
4.4.40.0070.00211.54
4.4.30.0040.00511.54
4.4.20.0040.00611.54
4.4.10.0060.00511.54
4.4.00.0040.00511.54
4.3.110.0070.00311.54
4.3.100.0020.00711.54
4.3.90.0050.00511.54
4.3.80.0040.00311.54
4.3.70.0020.00611.54
4.3.60.0030.00511.54
4.3.50.0040.00511.54
4.3.40.0000.00811.54
4.3.30.0020.00511.54
4.3.20.0030.00411.54
4.3.10.0060.00111.54
4.3.00.0040.00411.54