3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(){ try { echo '1'; //throw new Exception('2'); return 'try'; } 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.0200.00016.50
8.3.50.0090.00922.03
8.3.40.0110.00418.42
8.3.30.0110.00318.72
8.3.20.0070.00020.38
8.3.10.0030.00621.69
8.3.00.0090.00017.80
8.2.180.0140.00716.32
8.2.170.0070.00722.96
8.2.160.0140.00020.53
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.09
8.2.110.0070.00321.04
8.2.100.0060.00617.72
8.2.90.0060.00319.16
8.2.80.0060.00317.97
8.2.70.0080.00017.63
8.2.60.0030.00617.80
8.2.50.0080.00018.10
8.2.40.0090.00019.77
8.2.30.0090.00018.17
8.2.20.0090.00017.51
8.2.10.0000.00918.03
8.2.00.0050.00317.46
8.1.280.0170.00325.92
8.1.270.0040.00422.24
8.1.260.0050.00226.35
8.1.250.0050.00228.09
8.1.240.0090.00024.02
8.1.230.0000.01217.71
8.1.220.0030.00617.74
8.1.210.0090.00018.77
8.1.200.0040.00417.23
8.1.190.0030.00616.98
8.1.180.0000.00818.10
8.1.170.0000.00818.57
8.1.160.0040.00421.95
8.1.150.0040.00418.64
8.1.140.0000.00817.32
8.1.130.0070.00017.34
8.1.120.0040.00417.24
8.1.110.0050.00217.35
8.1.100.0040.00417.36
8.1.90.0000.00717.37
8.1.80.0050.00217.34
8.1.70.0070.00017.29
8.1.60.0070.00017.51
8.1.50.0000.00917.39
8.1.40.0030.00617.49
8.1.30.0000.00817.58
8.1.20.0040.00417.46
8.1.10.0070.00017.45
8.1.00.0050.00217.40
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.39
8.0.270.0000.00717.15
8.0.260.0070.00016.72
8.0.250.0070.00016.77
8.0.240.0000.00816.90
8.0.230.0000.00716.85
8.0.220.0000.00916.73
8.0.210.0000.00716.75
8.0.200.0000.00616.79
8.0.190.0030.00316.79
8.0.180.0040.00416.73
8.0.170.0080.00016.79
8.0.160.0070.00016.84
8.0.150.0040.00416.73
8.0.140.0070.00416.75
8.0.130.0060.00013.25
8.0.120.0040.00416.69
8.0.110.0040.00416.83
8.0.100.0050.00216.80
8.0.90.0000.00716.75
8.0.80.0110.00416.82
8.0.70.0020.00516.66
8.0.60.0070.00016.77
8.0.50.0040.00416.82
8.0.30.0070.01116.86
8.0.20.0160.00317.40
8.0.10.0000.00716.90
8.0.00.0120.00616.61
7.4.330.0000.00515.00
7.4.320.0060.00016.38
7.4.300.0030.00316.50
7.4.290.0030.00316.45
7.4.280.0070.00016.54
7.4.270.0030.00316.46
7.4.260.0040.00416.55
7.4.250.0000.00716.49
7.4.240.0030.00416.47
7.4.230.0000.00716.47
7.4.220.0090.00616.58
7.4.210.0130.00316.54
7.4.200.0000.00716.29
7.4.160.0030.01316.51
7.4.150.0070.01017.40
7.4.140.0060.01417.86
7.4.130.0060.01116.46
7.4.120.0110.00516.50
7.4.110.0110.00716.25
7.4.100.0070.01016.45
7.4.90.0090.00916.31
7.4.80.0150.00919.39
7.4.70.0070.01016.40
7.4.60.0090.00916.41
7.4.50.0000.00816.40
7.4.40.0040.01816.28
7.4.30.0120.00416.46
7.4.00.0040.01514.89
7.3.330.0000.00613.10
7.3.320.0000.00613.27
7.3.310.0030.00316.11
7.3.300.0000.00716.11
7.3.290.0090.00816.29
7.3.280.0100.00916.27
7.3.270.0070.01117.40
7.3.260.0110.01116.57
7.3.250.0100.01016.38
7.3.240.0110.00716.44
7.3.230.0000.01716.48
7.3.210.0070.01016.62
7.3.200.0070.01419.39
7.3.190.0160.00316.45
7.3.180.0060.01016.52
7.3.170.0030.01316.52
7.3.160.0090.00616.48
7.3.120.0060.01214.73
7.2.330.0030.01516.66
7.2.320.0040.01116.36
7.2.310.0030.01616.50
7.2.300.0030.01316.54
7.2.290.0060.01116.45
7.1.70.0000.00717.02
7.1.60.0100.01619.25
7.1.50.0030.01016.88
7.1.00.0000.09022.54
7.0.200.0030.00816.59
7.0.140.0030.07722.16
7.0.60.0100.05719.89
7.0.50.0030.08317.85
7.0.40.0100.05720.10
7.0.30.0370.07720.13
7.0.20.0200.04020.30
7.0.10.0100.03720.24
7.0.00.0070.04020.25
5.6.280.0070.07020.91
5.6.210.0030.04020.71
5.6.200.0030.04018.29
5.6.190.0070.07020.50
5.6.180.0170.07020.48
5.6.170.0200.04320.54
5.6.160.0100.03720.50
5.6.150.0100.03318.18
5.6.140.0070.08018.18
5.6.130.0070.08318.18
5.6.120.0030.07021.01
5.6.110.0000.08321.13
5.6.100.0100.08021.00
5.6.90.0070.08321.04
5.6.80.0100.03720.52
5.5.350.0270.07720.41
5.5.340.0000.08318.07
5.5.330.0130.05320.40
5.5.320.0230.08020.20
5.5.310.0270.04720.23
5.5.300.0070.08017.98
5.5.290.0100.08017.99
5.5.280.0000.05020.87
5.5.270.0030.06720.87
5.5.260.0100.04320.87
5.5.250.0070.08020.55
5.5.240.0030.07720.15
5.4.450.0470.05719.61
5.4.440.1030.06719.70
5.4.430.0270.06019.61
5.4.420.0830.05319.47
5.4.410.0130.05019.08
5.4.400.0330.05318.63
5.4.390.0400.05718.80
5.4.380.0270.05018.48
5.4.370.0030.06018.53
5.4.360.0170.02718.51
5.4.350.0070.03412.03
5.4.340.0130.04212.02
5.4.320.0060.04412.52
5.4.310.0080.03612.51
5.4.300.0060.03712.52
5.4.290.0070.03812.51
5.4.280.0060.03612.41
5.4.270.0080.03412.41
5.4.260.0060.03812.41
5.4.250.0050.03812.41
5.4.240.0050.03712.41
5.4.230.0090.03412.40
5.4.220.0040.03712.40
5.4.210.0070.03512.40
5.4.200.0050.04012.40
5.4.190.0070.04412.40
5.4.180.0070.03712.39
5.4.170.0080.03512.40
5.4.160.0060.03612.40
5.4.150.0080.03412.39
5.4.140.0090.03412.09
5.4.130.0040.03712.07
5.4.120.0070.03412.03
5.4.110.0090.04712.04
5.4.100.0130.04212.03
5.4.90.0100.04412.03
5.4.80.0090.03412.03
5.4.70.0080.03312.03
5.4.60.0050.04112.03
5.4.50.0080.03112.02
5.4.40.0070.03312.02
5.4.30.0080.03212.01
5.4.20.0060.03612.00
5.4.10.0080.03212.02
5.4.00.0040.03811.51
5.3.290.0040.04312.80
5.3.280.0040.04112.71
5.3.270.0080.03812.72
5.3.260.0040.04212.72
5.3.250.0050.03912.72
5.3.240.0070.03612.72
5.3.230.0060.03812.71
5.3.220.0070.03712.68
5.3.210.0050.04112.68
5.3.200.0070.03612.68
5.3.190.0080.03612.68
5.3.180.0080.03512.67
5.3.170.0070.03612.67
5.3.160.0050.03812.67
5.3.150.0070.03612.68
5.3.140.0070.04112.66
5.3.130.0080.03812.66
5.3.120.0050.04012.66
5.3.110.0090.03712.66
5.3.100.0070.03712.13
5.3.90.0050.03812.11
5.3.80.0070.03512.09
5.3.70.0090.03412.10
5.3.60.0070.03612.08
5.3.50.0060.03612.02
5.3.40.0070.04212.02
5.3.30.0080.03411.98
5.3.20.0070.03411.76
5.3.10.0070.03411.73
5.3.00.0080.03511.72
5.2.170.0060.0309.21
5.2.160.0050.0299.22
5.2.150.0070.0289.21
5.2.140.0030.0329.21
5.2.130.0050.0299.18
5.2.120.0050.0299.17
5.2.110.0040.0319.18
5.2.100.0030.0309.18
5.2.90.0050.0289.18
5.2.80.0060.0299.17
5.2.70.0030.0319.17
5.2.60.0050.0309.13
5.2.50.0050.0299.10
5.2.40.0040.0309.08
5.2.30.0040.0319.05
5.2.20.0050.0299.05
5.2.10.0030.0328.95
5.2.00.0060.0288.80
5.1.60.0040.0258.09
5.1.50.0030.0268.08
5.1.40.0030.0278.07
5.1.30.0010.0298.43
5.1.20.0030.0278.44
5.1.10.0050.0268.17
5.1.00.0040.0268.16
5.0.50.0030.0216.64
5.0.40.0060.0166.50
5.0.30.0030.0316.31
5.0.20.0040.0196.28
5.0.10.0050.0186.26
5.0.00.0030.0316.25
4.4.90.0020.0164.78
4.4.80.0040.0144.75
4.4.70.0020.0164.76
4.4.60.0020.0214.75
4.4.50.0050.0134.77
4.4.40.0040.0244.71
4.4.30.0020.0164.76
4.4.20.0050.0134.85
4.4.10.0040.0144.85
4.4.00.0010.0274.76
4.3.110.0040.0144.66
4.3.100.0040.0144.66
4.3.90.0030.0144.64
4.3.80.0000.0274.58
4.3.70.0000.0174.63
4.3.60.0010.0164.63
4.3.50.0020.0164.63
4.3.40.0040.0234.54
4.3.30.0000.0183.30
4.3.20.0010.0173.27
4.3.10.0010.0163.23
4.3.00.0000.0237.13

preferences:
40.17 ms | 401 KiB | 5 Q