3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo_func($arg, Throwable $arg2) { echo "hello from $arg"; } $ex = new Exception("foo"); foo_func("world", $ex);

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.140.0040.00417.05
8.3.130.0080.00018.23
8.3.120.0100.00618.98
8.3.110.0060.00920.94
8.3.100.0030.00624.06
8.3.90.0160.00326.77
8.3.80.0090.00018.16
8.3.70.0100.00616.63
8.3.60.0110.00818.56
8.3.50.0090.00717.04
8.3.40.0040.01218.57
8.3.30.0070.00718.70
8.3.20.0060.00321.78
8.3.10.0040.00420.46
8.3.00.0060.00319.23
8.2.250.0080.00016.88
8.2.240.0110.00316.95
8.2.230.0080.00022.58
8.2.220.0000.00837.54
8.2.210.0110.00426.77
8.2.200.0030.00718.54
8.2.190.0040.01118.41
8.2.180.0070.01425.92
8.2.170.0070.01119.08
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0060.00318.85
8.2.110.0030.00622.30
8.2.100.0060.00617.78
8.2.90.0030.00517.75
8.2.80.0040.00417.97
8.2.70.0000.00817.80
8.2.60.0040.00418.22
8.2.50.0080.00018.10
8.2.40.0050.00319.41
8.2.30.0020.00519.30
8.2.20.0040.00417.94
8.2.10.0030.00319.28
8.2.00.0030.00518.05
8.1.300.0030.00517.76
8.1.290.0100.00030.84
8.1.280.0070.00725.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0060.00323.88
8.1.230.0080.00420.69
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00617.23
8.1.190.0000.00817.11
8.1.180.0030.00618.10
8.1.170.0050.00318.64
8.1.160.0080.00018.88
8.1.150.0070.00018.84
8.1.140.0050.00318.79
8.1.130.0000.00717.32
8.1.120.0000.00717.25
8.1.110.0030.00517.41
8.1.100.0030.00717.28
8.1.90.0040.00417.35
8.1.80.0000.01117.34
8.1.70.0040.00417.27
8.1.60.0040.00417.63
8.1.50.0040.00417.40
8.1.40.0000.00817.47
8.1.30.0000.00817.61
8.1.20.0000.00717.63
8.1.10.0000.00817.59
8.1.00.0000.00817.51
8.0.300.0040.00422.04
8.0.290.0000.00816.75
8.0.280.0030.00318.45
8.0.270.0040.00416.93
8.0.260.0040.00416.93
8.0.250.0070.00016.91
8.0.240.0000.00817.04
8.0.230.0040.00417.03
8.0.220.0040.00316.85
8.0.210.0040.00416.98
8.0.200.0030.00316.98
8.0.190.0030.00316.92
8.0.180.0030.00516.96
8.0.170.0030.00616.99
8.0.160.0000.00717.03
8.0.150.0040.00416.91
8.0.140.0030.00516.90
8.0.130.0000.00613.44
8.0.120.0070.00016.91
8.0.110.0080.00016.99
8.0.100.0020.00516.85
8.0.90.0050.00216.96
8.0.80.0060.01016.94
8.0.70.0000.00716.84
8.0.60.0080.00016.91
8.0.50.0040.00416.74
8.0.30.0070.01016.86
8.0.20.0130.01016.98
8.0.10.0040.00417.00
8.0.00.0120.00816.79
7.4.330.0020.00215.55
7.4.320.0040.00416.42
7.4.300.0060.00016.42
7.4.290.0000.00716.60
7.4.280.0040.00416.54
7.4.270.0030.00316.55
7.4.260.0020.00516.38
7.4.250.0000.00716.45
7.4.240.0000.00716.49
7.4.230.0070.00016.71
7.4.220.0000.00716.70
7.4.210.0060.01116.54
7.4.200.0040.00416.48
7.4.160.0110.00516.56
7.4.140.0140.00417.86
7.4.130.0110.00716.44
7.4.120.0090.00916.59
7.4.110.0060.01216.66
7.4.100.0100.00716.48
7.4.90.0120.00616.39
7.4.80.0140.00419.39
7.4.70.0090.00916.50
7.4.60.0120.00916.55
7.4.50.0030.01416.36
7.4.40.0030.01516.43
7.4.00.0070.01014.85
7.3.330.0000.00513.15
7.3.320.0000.00613.13
7.3.310.0000.00716.19
7.3.300.0000.00716.21
7.3.290.0030.00316.20
7.3.280.0020.01316.26
7.3.260.0090.00916.45
7.3.240.0090.01116.41
7.3.230.0120.00816.34
7.3.210.0140.00416.38
7.3.200.0060.00916.37
7.3.190.0090.00916.58
7.3.180.0110.00416.27
7.3.170.0070.01416.52
7.3.160.0130.00916.57
7.3.120.0070.01114.71
7.3.110.0070.01014.63
7.3.100.0120.00614.79
7.3.90.0090.00914.64
7.3.80.0000.01214.94
7.3.70.0120.00414.62
7.3.60.0030.01014.81
7.3.50.0070.01014.98
7.3.40.0030.01314.84
7.3.30.0090.00914.70
7.3.20.0410.00415.31
7.3.10.0390.00715.25
7.3.00.0320.00815.24
7.2.330.0070.01716.48
7.2.320.0110.00616.38
7.2.310.0030.01616.47
7.2.300.0070.01716.46
7.2.290.0120.00616.63
7.2.250.0090.00914.96
7.2.240.0130.00714.88
7.2.230.0060.01314.98
7.2.220.0000.01114.78
7.2.210.0090.00315.19
7.2.200.0070.01014.79
7.2.190.0030.00914.94
7.2.180.0080.00415.10
7.2.170.0070.00714.78
7.2.150.0560.00814.69
7.2.140.0490.01014.77
7.2.130.0550.00714.54
7.2.120.0560.00514.34
7.2.110.0840.00714.57
7.2.100.0440.00714.52
7.2.90.0660.00914.61
7.2.80.0600.00814.90
7.2.70.0560.00714.74
7.2.60.0650.00714.52
7.2.50.0660.00814.71
7.2.40.0390.01114.77
7.2.30.0570.00614.76
7.2.20.0460.00514.61
7.2.10.0440.00514.63
7.2.00.0520.00814.70
7.1.330.0070.00715.52
7.1.320.0040.01115.69
7.1.310.0000.01115.75
7.1.300.0030.01315.63
7.1.290.0030.01015.71
7.1.280.0070.01015.72
7.1.270.0030.01315.70
7.1.260.0090.00615.86
7.1.250.0500.01013.66
7.1.240.0730.01313.84
7.1.230.0610.01213.96
7.1.220.0560.00713.63
7.1.210.0610.00714.04
7.1.200.0550.01014.04
7.1.190.0570.00314.03
7.1.180.0630.01014.00
7.1.170.0790.00313.97
7.1.160.0730.00313.61
7.1.150.0600.01113.91
7.1.140.0640.00714.07
7.1.130.0520.01113.85
7.1.120.0450.01514.01
7.1.110.0610.00614.05
7.1.100.0730.01413.89
7.1.90.0670.00913.88
7.1.80.1030.01013.74
7.1.70.0630.01113.86
7.1.60.0590.00713.67
7.1.50.0330.01713.90
7.1.40.0490.00713.56
7.1.30.0600.01513.91
7.1.20.0610.00613.72
7.1.10.0490.01213.87
7.1.00.0570.00313.61
7.0.330.0720.01013.71
7.0.320.0570.00013.75
7.0.310.0500.00313.36
7.0.300.0750.00313.50
7.0.290.0610.00713.55
7.0.280.0510.01813.61
7.0.270.0500.00713.34
7.0.260.0630.00713.59
7.0.250.0600.01113.64
7.0.240.0670.00713.27
7.0.230.0660.00613.75
7.0.220.0540.01313.45
7.0.210.0600.00713.55
7.0.200.0370.00913.39
7.0.190.0430.01413.74
7.0.180.0600.01313.46
7.0.170.0580.00413.41
7.0.160.0610.00713.29
7.0.150.0450.00713.23
7.0.140.0510.00913.61
7.0.130.0430.01313.41
7.0.120.0500.01313.46
7.0.110.0620.00313.60
7.0.100.0550.00713.67
7.0.90.0430.00313.53
7.0.80.0680.00013.35
7.0.70.0510.00313.41
7.0.60.0540.00413.43
7.0.50.0440.01013.48
7.0.40.0490.00613.60
7.0.30.0420.00613.73
7.0.20.0900.00613.76
7.0.10.0560.01313.66
7.0.00.0650.00713.69
5.6.380.0210.00414.31
5.6.370.0090.00913.94
5.6.360.0080.01614.25
5.6.350.0170.00714.54
5.6.340.0130.00814.18
5.6.330.0140.01114.61
5.6.320.0090.01314.54
5.6.310.0190.01414.09
5.6.300.0060.01614.52
5.6.290.0120.01214.20
5.6.280.0160.01014.30
5.6.270.0090.00514.31
5.6.260.0130.01013.91
5.6.250.0150.00614.23
5.6.240.0080.02014.18
5.6.230.0150.01214.16
5.6.220.0200.00414.25
5.6.210.0180.00714.46
5.6.200.0200.00814.32
5.6.190.0040.02614.33
5.6.180.0080.00614.12
5.6.170.0070.01814.37
5.6.160.0060.01214.42
5.6.150.0140.01014.05
5.6.140.0150.00514.17
5.6.130.0210.00914.17
5.6.120.0110.00714.40
5.6.110.0040.01213.99
5.6.100.0110.01114.26
5.6.90.0150.00613.92
5.6.80.0070.00714.09
5.6.70.0030.01014.23
5.6.60.0060.00914.29
5.6.50.0030.01014.12
5.6.40.0050.00814.29
5.6.30.0000.02114.20
5.6.20.0090.00614.09
5.6.10.0130.00314.07
5.6.00.0120.00614.45
5.5.380.0080.00411.19
5.5.370.0000.01310.95
5.5.360.0150.00711.15
5.5.350.0080.01211.08
5.5.340.0040.01711.12
5.5.330.0130.00611.17
5.5.320.0110.00011.04
5.5.310.0050.01010.84
5.5.300.0090.00911.20
5.5.290.0140.00311.00
5.5.280.0040.00811.18
5.5.270.0060.00911.01
5.5.260.0080.00010.90
5.5.250.0060.00810.86
5.5.240.0000.01011.09
5.5.230.0100.00010.73
5.5.220.0000.01010.96
5.5.210.0100.01011.21
5.5.200.0040.00410.83
5.5.190.0120.00610.91
5.5.180.0150.00610.96
5.5.170.0080.01111.09
5.5.160.0090.01210.86
5.5.150.0140.00311.10
5.5.140.0100.00610.86
5.5.130.0030.01011.20
5.5.120.0070.00511.21
5.5.110.0060.00610.91
5.5.100.0090.00310.82
5.5.90.0070.01010.95
5.5.80.0080.00511.02
5.5.70.0090.01310.79
5.5.60.0130.00011.06
5.5.50.0070.01410.91
5.5.40.0140.00511.13
5.5.30.0090.00610.88
5.5.20.0110.00310.64
5.5.10.0000.00911.01
5.5.00.0090.00911.23
5.4.450.0060.00911.02
5.4.440.0070.00411.10
5.4.430.0140.00511.01
5.4.420.0080.00010.78
5.4.410.0070.00310.90
5.4.400.0060.00310.96
5.4.390.0030.00611.06
5.4.380.0060.01010.75
5.4.370.0030.01010.60
5.4.360.0080.00011.10
5.4.350.0060.00910.93
5.4.340.0110.00610.96
5.4.330.0070.01010.85
5.4.320.0040.00811.02
5.4.310.0030.00710.67
5.4.300.0100.00010.92
5.4.290.0100.00210.89
5.4.280.0190.00010.99
5.4.270.0020.01110.64
5.4.260.0060.00610.87
5.4.250.0030.00510.67
5.4.240.0070.01010.90
5.4.230.0000.01010.80
5.4.220.0120.00010.88
5.4.210.0150.00011.06
5.4.200.0180.00011.06
5.4.190.0130.00410.59
5.4.180.0050.00511.14
5.4.170.0130.00010.95
5.4.160.0140.00710.90
5.4.150.0090.00410.91
5.4.140.0180.00011.02
5.4.130.0140.00711.08
5.4.120.0100.00010.96
5.4.110.0000.01210.85
5.4.100.0090.00910.96
5.4.90.0150.01110.68
5.4.80.0060.00911.00
5.4.70.0050.00511.00
5.4.60.0110.00410.63
5.4.50.0130.01010.76
5.4.40.0080.00810.70
5.4.30.0130.01010.86
5.4.20.0110.00410.73
5.4.10.0100.00311.07
5.4.00.0150.00310.79
5.3.290.0060.00310.43
5.3.280.0160.00210.41
5.3.270.0080.00410.31
5.3.260.0110.00310.32
5.3.250.0120.00010.54
5.3.240.0070.00710.45
5.3.230.0060.00610.19
5.3.220.0060.01210.46
5.3.210.0100.00310.47
5.3.200.0060.00610.45
5.3.190.0060.00610.52
5.3.180.0110.00010.61
5.3.170.0120.00610.66
5.3.160.0120.00410.43
5.3.150.0130.00310.56
5.3.140.0150.00410.50
5.3.130.0090.01010.43
5.3.120.0080.00410.60
5.3.110.0070.00410.54
5.3.100.0100.00210.51
5.3.90.0060.00610.25
5.3.80.0090.00510.13
5.3.70.0100.00010.21
5.3.60.0040.00810.36
5.3.50.0090.00610.30
5.3.40.0140.00310.46
5.3.30.0160.00010.48
5.3.20.0130.00310.57
5.3.10.0070.00710.26
5.3.00.0110.00010.27
5.2.170.0070.0079.54
5.2.160.0000.0089.52
5.2.150.0040.0049.54
5.2.140.0100.0039.51
5.2.130.0080.0029.54
5.2.120.0080.0039.43
5.2.110.0070.0039.20
5.2.100.0070.0049.32
5.2.90.0060.0039.48
5.2.80.0050.0059.36
5.2.70.0050.0069.46
5.2.60.0070.0009.30
5.2.50.0060.0069.40
5.2.40.0060.0039.46
5.2.30.0020.0059.44
5.2.20.0130.0039.32
5.2.10.0060.0039.10
5.2.00.0070.0009.14
5.1.60.0050.0028.17
5.1.50.0050.0038.52
5.1.40.0080.0008.51
5.1.30.0040.0048.68
5.1.20.0090.0008.59
5.1.10.0030.0038.64
5.1.00.0050.0008.51
5.0.50.0060.0067.63
5.0.40.0050.0057.46
5.0.30.0050.0027.29
5.0.20.0080.0047.29
5.0.10.0070.0007.29
5.0.00.0060.0037.29
4.4.90.0060.0007.29
4.4.80.0060.0007.29
4.4.70.0030.0067.29
4.4.60.0040.0047.29
4.4.50.0040.0047.29
4.4.40.0040.0007.29
4.4.30.0020.0027.29
4.4.20.0000.0047.29
4.4.10.0000.0047.29
4.4.00.0000.0067.29
4.3.110.0000.0057.29
4.3.100.0060.0007.29
4.3.90.0060.0037.29
4.3.80.0030.0037.29
4.3.70.0000.0057.29
4.3.60.0000.0047.29
4.3.50.0030.0007.29
4.3.40.0040.0007.29
4.3.30.0070.0037.29
4.3.20.0090.0037.29
4.3.10.0060.0007.29
4.3.00.0050.0057.29

preferences:
49.45 ms | 403 KiB | 5 Q