3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(){ try { echo '1'; throw new Exception('2'); } catch (Exception $e) { echo $e->getMessage(); return 'test'; } finally { echo 'finally'; return 'truc'; } } echo test();

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.0100.00716.75
8.3.50.0140.00121.99
8.3.40.0030.01018.87
8.3.30.0090.00619.07
8.3.20.0040.00420.38
8.3.10.0030.00521.91
8.3.00.0050.00318.04
8.2.180.0160.00616.63
8.2.170.0140.00322.96
8.2.160.0070.00720.22
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00021.02
8.2.110.0060.00322.12
8.2.100.0120.00017.89
8.2.90.0040.00717.88
8.2.80.0060.00317.97
8.2.70.0090.00017.90
8.2.60.0040.00417.92
8.2.50.0080.00018.10
8.2.40.0080.00020.54
8.2.30.0000.00818.17
8.2.20.0070.00317.75
8.2.10.0000.00817.98
8.2.00.0040.00417.80
8.1.280.0170.00325.92
8.1.270.0000.00921.96
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0080.00023.84
8.1.230.0110.00019.07
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0030.00517.23
8.1.180.0090.00018.10
8.1.170.0050.00318.51
8.1.160.0090.00021.91
8.1.150.0000.00718.80
8.1.140.0040.00417.39
8.1.130.0030.00317.74
8.1.120.0030.00317.50
8.1.110.0000.00917.49
8.1.100.0040.00417.45
8.1.90.0050.00217.46
8.1.80.0070.00017.46
8.1.70.0000.00717.46
8.1.60.0070.00017.52
8.1.50.0000.00817.41
8.1.40.0040.00417.43
8.1.30.0040.00417.48
8.1.20.0000.00817.60
8.1.10.0060.00317.47
8.1.00.0000.00717.40
8.0.300.0000.00719.73
8.0.290.0000.00816.75
8.0.280.0000.00718.44
8.0.270.0070.00017.24
8.0.260.0040.00417.24
8.0.250.0030.00317.04
8.0.240.0050.00317.08
8.0.230.0080.00016.95
8.0.220.0030.00716.82
8.0.210.0070.00016.79
8.0.200.0060.00016.97
8.0.190.0030.00316.95
8.0.180.0000.00716.91
8.0.170.0000.00716.91
8.0.160.0040.00416.76
8.0.150.0040.00416.89
8.0.140.0080.00316.97
8.0.130.0030.00313.31
8.0.120.0040.00416.86
8.0.110.0000.00716.86
8.0.100.0040.00416.82
8.0.90.0030.00516.80
8.0.80.0150.00016.91
8.0.70.0000.00717.02
8.0.60.0000.00816.86
8.0.50.0040.00416.75
8.0.30.0080.01017.07
8.0.20.0130.00717.40
8.0.10.0030.00316.94
8.0.00.0070.01216.99
7.4.330.0000.00515.00
7.4.320.0030.00316.61
7.4.300.0000.00616.50
7.4.290.0070.00016.64
7.4.280.0080.00016.58
7.4.270.0000.00816.59
7.4.260.0070.00016.66
7.4.250.0040.00416.61
7.4.240.0010.00616.60
7.4.230.0040.00416.42
7.4.220.0130.01016.70
7.4.210.0100.00716.64
7.4.200.0030.00316.48
7.4.160.0130.00316.48
7.4.150.0070.01317.40
7.4.140.0120.00517.86
7.4.130.0150.00216.45
7.4.120.0090.01016.53
7.4.110.0070.01016.61
7.4.100.0040.01216.42
7.4.90.0140.00316.41
7.4.80.0120.00619.39
7.4.70.0060.00916.44
7.4.60.0040.01616.45
7.4.50.0000.00916.56
7.4.40.0100.00716.28
7.4.30.0120.00416.55
7.4.00.0030.01414.95
7.3.330.0060.00013.08
7.3.320.0000.00513.10
7.3.310.0030.00516.30
7.3.300.0030.00316.23
7.3.290.0070.00716.29
7.3.280.0080.01016.31
7.3.270.0030.01417.40
7.3.260.0130.00716.36
7.3.250.0100.01116.43
7.3.240.0110.00716.36
7.3.230.0070.01016.52
7.3.210.0150.00316.43
7.3.200.0160.00619.39
7.3.190.0070.01016.28
7.3.180.0080.01216.34
7.3.170.0060.01016.28
7.3.160.0000.01716.27
7.3.120.0030.01214.91
7.3.00.0030.01016.53
7.2.330.0100.01316.71
7.2.320.0060.01016.66
7.2.310.0040.01216.58
7.2.300.0130.00916.45
7.2.290.0160.00016.66
7.2.130.0060.00916.81
7.2.120.0040.01116.70
7.2.110.0060.00916.94
7.2.100.0070.00716.70
7.2.90.0110.00317.03
7.2.80.0110.00716.84
7.2.70.0060.00616.91
7.2.60.0080.00416.97
7.2.50.0030.01216.94
7.2.40.0050.00916.73
7.2.30.0060.00917.03
7.2.20.0070.00716.59
7.2.10.0090.00316.97
7.2.00.0060.00918.24
7.1.250.0040.00815.70
7.1.240.0000.01315.59
7.1.230.0090.00615.78
7.1.220.0080.00415.66
7.1.210.0060.00615.67
7.1.200.0020.01115.59
7.1.190.0100.00315.47
7.1.180.0060.00915.56
7.1.170.0030.00715.80
7.1.160.0060.00315.50
7.1.150.0000.01315.71
7.1.140.0040.01115.44
7.1.130.0040.00815.48
7.1.120.0080.00415.65
7.1.110.0070.00715.59
7.1.100.0090.00516.69
7.1.90.0030.01015.73
7.1.80.0030.00615.67
7.1.70.0050.00516.48
7.1.60.0040.01417.54
7.1.50.0110.00316.28
7.1.40.0030.01015.46
7.1.30.0070.00715.78
7.1.20.0070.01015.65
7.1.10.0000.01015.74
7.1.00.0070.04119.08
7.0.330.0030.00915.04
7.0.320.0090.00615.14
7.0.310.0030.01215.11
7.0.300.0040.01115.13
7.0.290.0060.00615.04
7.0.280.0040.00415.31
7.0.270.0000.00915.23
7.0.260.0080.00415.13
7.0.250.0070.00315.29
7.0.240.0000.01715.33
7.0.230.0030.01015.13
7.0.220.0080.00015.28
7.0.210.0060.00615.17
7.0.200.0050.00616.04
7.0.190.0030.01014.91
7.0.180.0040.01115.09
7.0.170.0110.00015.36
7.0.160.0070.00715.17
7.0.150.0080.00415.02
7.0.140.0040.04118.57
7.0.130.0100.00315.10
7.0.120.0030.00615.25
7.0.110.0030.00715.34
7.0.100.0050.02517.51
7.0.90.0040.02217.55
7.0.80.0050.02417.55
7.0.70.0070.02417.60
7.0.60.0080.02317.57
7.0.50.0080.02317.73
7.0.40.0030.03116.61
7.0.30.0040.02116.77
7.0.20.0040.02416.72
7.0.10.0080.02316.59
7.0.00.0080.02216.59
5.6.380.0150.00014.06
5.6.370.0070.00714.07
5.6.360.0120.00013.90
5.6.350.0030.00814.32
5.6.340.0080.00514.41
5.6.330.0040.01113.84
5.6.320.0080.00814.04
5.6.310.0040.00813.83
5.6.300.0110.00314.08
5.6.290.0030.00914.16
5.6.280.0070.03817.54
5.6.270.0120.00314.32
5.6.260.0030.01014.21
5.6.250.0070.02317.50
5.6.240.0070.02217.29
5.6.230.0120.03217.42
5.6.220.0070.02817.50
5.6.210.0030.02517.46
5.6.200.0080.01817.45
5.6.190.0090.02217.60
5.6.180.0060.02317.65
5.6.170.0070.02317.43
5.6.160.0110.02117.49
5.6.150.0090.02117.69
5.6.140.0030.02417.64
5.6.130.0050.02417.51
5.6.120.0100.03917.47
5.6.110.0050.02017.54
5.6.100.0080.01817.53
5.6.90.0100.02717.63
5.6.80.0000.04517.23
5.6.70.0070.04217.17
5.6.60.0100.04017.16
5.6.50.0050.04117.24
5.6.40.0100.03917.08
5.6.30.0060.04317.31
5.6.20.0100.04217.40
5.6.10.0050.03517.15
5.6.00.0080.04317.14
5.5.380.0040.02615.87
5.5.370.0040.02815.76
5.5.360.0050.02515.76
5.5.350.0050.02715.81
5.5.340.0050.02016.00
5.5.330.0020.02816.04
5.5.320.0020.02615.99
5.5.310.0050.02216.01
5.5.300.0070.02016.01
5.5.290.0030.02115.99
5.5.280.0030.04016.02
5.5.270.0030.02216.03
5.5.260.0010.02616.06
5.5.250.0110.03815.96
5.5.240.0020.04715.74
5.5.230.0090.04115.71
5.5.220.0050.04415.67
5.5.210.0110.03515.71
5.5.200.0040.02915.70
5.5.190.0120.02715.72
5.5.180.0030.04615.66
5.5.170.0000.00511.18
5.5.160.0120.03715.69
5.5.150.0020.04415.71
5.5.140.0070.03715.65
5.5.130.0030.03615.70
5.5.120.0110.04015.65
5.5.110.0110.04015.67
5.5.100.0060.04115.63
5.5.90.0090.03515.68
5.5.80.0070.04115.62
5.5.70.0120.03715.66
5.5.60.0070.03815.63
5.5.50.0060.03615.66
5.5.40.0050.04215.66
5.5.30.0070.04115.57
5.5.20.0070.04015.57
5.5.10.0060.04215.55
5.5.00.0030.04515.60
5.4.450.0000.02715.28
5.4.440.0030.02215.31
5.4.430.0050.04215.19
5.4.420.0030.04315.27
5.4.410.0050.03315.21
5.4.400.0050.03715.20
5.4.390.0050.04215.15
5.4.380.0070.03915.02
5.4.370.0030.04315.21
5.4.360.0030.03315.16
5.4.350.0030.04315.03
5.4.340.0100.04015.02
5.4.330.0030.00611.18
5.4.320.0010.04115.18
5.4.310.0080.03715.20
5.4.300.0120.03715.17
5.4.290.0070.03515.21
5.4.280.0020.04615.20
5.4.270.0040.04315.13
5.4.260.0180.02815.10
5.4.250.0040.03815.04
5.4.240.0050.03915.15
5.4.230.0030.02715.15
5.4.220.0080.04015.18
5.4.210.0110.03515.15
5.4.200.0110.03515.15
5.4.190.0020.04415.10
5.4.180.0070.03815.00
5.4.170.0100.04015.13
5.4.160.0070.03515.12
5.4.150.0050.04415.01
5.4.140.0030.04013.83
5.4.130.0130.03313.70
5.4.120.0080.03713.68
5.4.110.0080.03713.84
5.4.100.0100.03513.80
5.4.90.0080.03613.75
5.4.80.0100.03613.78
5.4.70.0060.03113.74
5.4.60.0070.04013.79
5.4.50.0070.03613.75
5.4.40.0070.03813.81
5.4.30.0050.03513.71
5.4.20.0070.04213.78
5.4.10.0030.04513.83
5.4.00.0020.04113.47
5.3.290.0060.03912.97
5.3.280.0060.04012.85
5.3.270.0030.04512.88
5.3.260.0120.03212.94
5.3.250.0030.04212.88
5.3.240.0060.04312.91
5.3.230.0140.03212.95
5.3.220.0090.02612.87
5.3.210.0030.04312.86
5.3.200.0000.04612.90
5.3.190.0070.03912.90
5.3.180.0050.04212.93
5.3.170.0050.04112.89
5.3.160.0060.04012.92
5.3.150.0030.04412.83
5.3.140.0060.03512.89
5.3.130.0050.04312.87
5.3.120.0050.03812.89
5.3.110.0050.04212.93
5.3.100.0070.03612.63
5.3.90.0070.03812.60
5.3.80.0060.03912.59
5.3.70.0070.03212.65
5.3.60.0030.04412.62
5.3.50.0070.03912.56
5.3.40.0120.03312.52
5.3.30.0060.03012.49
5.3.20.0050.04312.49
5.3.10.0020.04012.47
5.3.00.0030.03812.41
5.2.170.0050.03212.22
5.2.160.0030.03312.22
5.2.150.0030.03612.22
5.2.140.0050.03212.22
5.2.130.0050.03312.22
5.2.120.0020.02512.22
5.2.110.0080.03312.22
5.2.100.0050.03212.22
5.2.90.0060.02812.22
5.2.80.0080.03212.22
5.2.70.0070.03212.22
5.2.60.0060.03112.22
5.2.50.0130.02312.22
5.2.40.0070.03012.22
5.2.30.0080.03112.22
5.2.20.0030.03412.22
5.2.10.0030.03112.22
5.2.00.0050.02112.22
5.1.60.0060.02712.22
5.1.50.0080.01512.22
5.1.40.0020.02912.22
5.1.30.0080.02812.22
5.1.20.0060.02912.22
5.1.10.0050.02912.22
5.1.00.0090.02712.22
5.0.50.0050.02312.22
5.0.40.0100.01712.22
5.0.30.0020.03212.22
5.0.20.0030.02512.22
5.0.10.0070.01812.22
5.0.00.0030.03412.22
4.4.90.0000.02212.22
4.4.80.0020.01812.22
4.4.70.0030.01712.22
4.4.60.0010.01812.22
4.4.50.0020.02012.22
4.4.40.0030.02912.22
4.4.30.0040.01812.22
4.4.20.0020.01812.22
4.4.10.0000.02212.22
4.4.00.0010.03012.22
4.3.110.0030.01812.22
4.3.100.0020.01912.22
4.3.90.0030.01912.22
4.3.80.0030.02312.22
4.3.70.0050.01612.22
4.3.60.0070.01312.22
4.3.50.0000.01912.22
4.3.40.0040.02712.22
4.3.30.0000.02012.22
4.3.20.0020.02012.22
4.3.10.0000.02012.22
4.3.00.0020.01712.22

preferences:
45.73 ms | 401 KiB | 5 Q